<!--
popup_handle = new Object;
popup_ID = 0;

popup2_handle = new Object;
popup2_ID = 0;


popupA_handle = new Object;
popupA_ID = 0;

function popup(w,h,t,l,target) {
	if(parseInt(navigator.appVersion) >= 4) {
	 	l = (screen.width - w) / 2;
	 	t = (screen.height - h) / 2;
	}
	
	var loc = 'width=' + w + ',height=' + h + ',top=' + t + ',left=' + l;
	popup_handle = window.open(target,"popup",",,,,,scrollbars,," + loc);
	
	if(parseInt(navigator.appVersion) >= 4) {
		popup_handle.window.focus();
	}
	
	if (popup_ID == 0) { 
		popup_ID = window.setTimeout("popup_ID = 0; if(popup_handle != null) { popup_handle.close();} ",3600000); 
	}
}

function popup4(w,h,t,l,target) {
	if(parseInt(navigator.appVersion) >= 4) {
	 	l = (screen.width - w) / 2;
	 	t = (screen.height - h) / 2;
	}
	
	var loc = 'width=' + w + ',height=' + h + ',top=' + t + ',left=' + l;
	popup_handle = window.open(target,"popup",",,,,,scrollbars,resizable," + loc);
	
	if(parseInt(navigator.appVersion) >= 4) {
		popup_handle.window.focus();
	}
	
	if (popup_ID == 0) { 
		popup_ID = window.setTimeout("popup_ID = 0; if(popup_handle != null) { popup_handle.close();} ",3600000); 
	}
}


function popupA(w,h,t,l,target) {
	if(parseInt(navigator.appVersion) >= 4) {
	 	l = (screen.width - w) / 2;
	 	t = (screen.height - h) / 2;
	}
	
	var loc = 'width=' + w + ',height=' + h + ',top=' + t + ',left=' + l;
	popupA_handle = window.open(target,"popupA",",,,,,scrollbars,resizable," + loc);
	
	if(parseInt(navigator.appVersion) >= 4) {
		popupA_handle.window.focus();
	}
	
	if (popupA_ID == 0) { 
		popupA_ID = window.setTimeout("popupA_ID = 0; if(popupA_handle != null) { popupA_handle.close();} ",3600000); 
	}
} 


function popup2(w,h,t,l,target) {
        var targetStart = target.indexOf("?");
	              if (targetStart == -1) {
	                	if(parseInt(navigator.appVersion) >= 4) {
				 	l = (screen.width - w) / 2;
				 	t = (screen.height - h) / 2;
	}
	              } else {
	              sourcePage = target.substring(0, targetStart);
	              
	                if (sourcePage == "product_demo.php" || sourcePage == "../product_demo.php" || sourcePage == "http://www.i3dthemes.com/store/product_demo.php") {
                          if (document.layers){
			      w=window.outerWidth;
			      h=window.outerHeight;
                          } else {
                          
                           // w = document.body.clientWidth;
          	            //h = document.body.clientHeight;
          			w = screen.width - 15;
          			h = screen.height - 70;
          			//t = 0;
          			//l = 0
          		  }
          		} 
	               } 
	               
	             
	               
    


	
	var loc = 'width=' + w + ',height=' + h + ',top=' + t + ',left=' + l;
	popup2_handle = window.open(target,"popup2",",,,,,scrollbars,resizable," + loc);
	
	if(parseInt(navigator.appVersion) >= 4) {
		popup2_handle.window.focus();
	}
	
	if (popup2_ID == 0) { 
		popup2_ID = window.setTimeout("popup2_ID = 0; if(popup2_handle != null) { popup2_handle.close();} ",3600000); 
	}
}

function popupFull_1(w,h,t,l,target) {

	if (document.layers){
		w=window.outerWidth;
		h=window.outerHeight;
	} else {
		
		 // w = document.body.clientWidth;
		//h = document.body.clientHeight;
		w = screen.width - 15;
		h = screen.height - 70;
		//t = 0;
		//l = 0
	}
        
	               
	             
	               
    


	
	var loc = 'width=' + w + ',height=' + h + ',top=' + t + ',left=' + l;
	popup2_handle = window.open(target,"popup2",",,,,,scrollbars,resizable," + loc);
	
	if(parseInt(navigator.appVersion) >= 4) {
		popup2_handle.window.focus();
	}
	
	if (popup2_ID == 0) { 
		popup2_ID = window.setTimeout("popup2_ID = 0; if(popup2_handle != null) { popup2_handle.close();} ",3600000); 
	}
}


-->