// ----------------------------------------------
// Sbruno bruno@hecube.net
// - - - - - - - - - - - - - - - - - - - - - - -
// For the details, visit site:
// http://www.hecube.net/
/*----------------------------POPUP FOR THE RT PICTURES BEGIN --------------------------------------- */
var pop //create global variable without assigning a value so that its value is null

function popUp( URL, widthValue, heightValue){
	if(pop!=null && !pop.closed){ // if popUp has been opened, and popUp hasn't already been closed	
		pop.close() //close it in order to re-assign properties
		}
		
			/*position*/
			var halfScreenWidth=((screen.width-widthValue)/2);
			var halfScreenHeight=((screen.height-heightValue)/2);
			var winPosLeft = halfScreenWidth;
			var winPosTop = halfScreenHeight;
			
			/* resize and scroll */
			var resizeValue="no";
			var scrollValue="no";
		//alert (" top="+winPosTop+", left="+winPosLeft+", width="+widthValue+", height="+heightValue+", resizable="+resizeValue+", scrollbars="+scrollValue+" ")
		
		pop = window.open(URL,"popUpSize"," top="+winPosTop+", left="+winPosLeft+", width="+widthValue+", height="+heightValue+", resizable="+resizeValue+", scrollbars="+scrollValue+"")
		pop.focus() 
	}
/*----------------------------POPUP FOR THE RT PICTURES END --------------------------------------- */

/* ##################################################### FOR THE NAVIGATION ONLY */
window.onload=show;
function show(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}
/* ##################################################### FOR THE NAVIGATION ONLY */

	/*------------------------------ NONO ----------------------------------------*/
if (document.images) {

//p1
p1_On = new Image();
p1_On.src = "img/p1_over.jpg";
p1_Over = new Image();
p1_Over.src = "img/p1.jpg";

//p2
p2_On = new Image();
p2_On.src = "img/p2_over.jpg";
p2_Over = new Image();
p2_Over.src = "img/p2.jpg";

//p3
p3_On = new Image();
p3_On.src = "img/p3_over.jpg";
p3_Over = new Image();
p3_Over.src = "img/p3.jpg";

//p4
p4_On = new Image();
p4_On.src = "img/p4_over.jpg";
p4_Over = new Image();
p4_Over.src = "img/p4.jpg";


	}
	function imgOn(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "_On.src"); 
	} 
}

	function imgOff(imgName) { 
if (document.images) { 
document[imgName].src = eval(imgName + "_Over.src"); 
	} 
}

/******************************************** END ************************************************************/
