var s = document.getElementsByTagName("script");
var js_path="";
for(i=0;i<s.length;i++){
	var r = s[i].src.match(/(.*)_init\.js$/);
	if(r){
	var js_path = r[1];
	if(js_path){
		//document.write('<script type="text/javascript" src="'+js_path+'prototype.js"><\/script>');
		document.write('<script type="text/javascript" src="'+js_path+'effects.js"><\/script>');
		document.write('<script type="text/javascript" src="'+js_path+'builder.js"><\/script>');
		document.write('<script type="text/javascript" src="'+js_path+'dragdrop.js"><\/script>');
		document.write('<script type="text/javascript" src="'+js_path+'slider.js"><\/script>');
		document.write('<script type="text/javascript" src="'+js_path+'_global.js"><\/script>');
	}
	}
}
function require(file){
	document.write('<script type="text/javascript" src="'+js_path+file+'"><\/script>');
}
try {
	document.execCommand('BackgroundImageCache', false,true);
} catch(e) {};



/* if(window.attachEvent){

	function fixUnload() {  
     // Is there things still loading, then fake the unload event  
		 if (document.readyState == 'interactive') {  
			 function stop() {  
				 // Prevent memory leak  
				 document.detachEvent('onstop', stop);  
	   
				 // Call unload handler  
				 unload();  
			 };  
	   
			 // Fire unload when the currently loading page is stopped  
			 document.attachEvent('onstop', stop);  
	   
			 // Remove onstop listener after a while to prevent the unload function  
			 // to execute if the user presses cancel in an onbeforeunload  
			 // confirm dialog and then presses the stop button in the browser  
			 window.setTimeout(function() {  
				 document.detachEvent('onstop', stop);  
			 }, 0);  
		 }  
	 };  
   
	 function unload() {  
		
	 };  
	 
	 window.attachEvent('onunload', unload);  
	 window.attachEvent('onbeforeunload', fixUnload); 
 }*/