/*------------------------------------------------------

 JSImport.js
 
 jQuery required (tested on 1.3.2)

 nori (norimania@gmail.com)
 5509 - http://moto-mono.net/
 Licensed under the MIT

 $Date: 2009-03-05 03:30

-------------------------------------------------------*/

$.JSImport=function(a){this.name="import.js";var h=$("script[src*='"+this.name+"']").attr("src"),g="_vImage.jpg",e,f=h.match(/\.\.\//g),d=h.match(/(\w+\:\/\/[^\/]+\/?)/)?"":f!=null?f.length:"",b=new Image();b.src=g;$("body").append("<img src='"+b.src+"' id='_vImage' />");e=$("#_vImage").attr("src").replace(g,"");$("#_vImage").remove();if(d>0){for(var c=0;c<d;c++){e=e.replace(/[^\/]+\/$/,"");}}$(a).each(function(){if(this.match(/\w+\:\/\/[^\/]+\/?/)){$.getScript(this);}else{try{$.getScript(e+this);}catch(j){var i=document.createElement("script");i.type="text/javascript";i.src=e+this;document.getElementsByTagName("head")[0].appendChild(i);}}});};
