/* ########## launch the three pop-up for details on synthesis ########## */

/*for the content*/
function popWin(url, popName) 

/* begin function */
	{

/*for the focus on the image*/
if (popName == "reportcapture") {
	
	/*values for focus*/
	var popName="reportcapture";
	var widthValue="660";
	var heightValue="445";
	
	/*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";
	
	/*reportcapture_1 */
	} else if (popName == "reportcapture_text1") {
	
	/*values for focus*/
	var popName="reportcapture_1";
	var widthValue="734";
	var heightValue="445";
	
	/*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="yes";
	
	/*send doc */
	} else if (popName == "reportcapture_2") {
	
	/*values for focus*/
	var popName="reportcapture_2";
	var widthValue="420";
	var heightValue="566";
    //var heightValue="800";
	
	/*position*/
	var halfScreenWidth=((screen.width-widthValue)/2);
	var halfScreenHeight=((screen.height-heightValue)/2);
	var winPosLeft = halfScreenWidth;
	var winPosTop = halfScreenHeight;
	
	/* resize and scroll */
	var resizeValue="yes";
	var scrollValue="no";
	
    /* reportcapture_3 */
	} else if (popName == "reportcapture_3") {
	
	/*values for focus*/
	var popName="reportcapture_3";
	var widthValue="520";
	var heightValue="414";
    //var heightValue="800";
	
	/*position*/
	var halfScreenWidth=((screen.width-widthValue)/2);
	var halfScreenHeight=((screen.height-heightValue)/2);
	var winPosLeft = halfScreenWidth;
	var winPosTop = halfScreenHeight;
	
	/* resize and scroll */
	var resizeValue="yes";
	var scrollValue="no";
	
	/* download */
	} else if (popName == "download") {
	
	/*values for focus*/
	var popName="download";
	var widthValue="700";
	var heightValue="400";
	
	/*position*/
	var halfScreenWidth=((screen.width-widthValue)/2);
	var halfScreenHeight=((screen.height-heightValue)/2);
	var winPosLeft = halfScreenWidth;
	var winPosTop = halfScreenHeight;
	
	/* resize and scroll */
	var resizeValue="yes";
	var scrollValue="yes";
	
    /* copyright */
	} else if (popName == "copyright") {
	
	/*values for focus*/
	var popName="copyright";
	var widthValue="600";
	var heightValue="400";
	
	/*position*/
	var halfScreenWidth=((screen.width-widthValue)/2);
	var halfScreenHeight=((screen.height-heightValue)/2);
	var winPosLeft = halfScreenWidth;
	var winPosTop = halfScreenHeight;
	
	/* resize and scroll */
	var resizeValue="yes";
	var scrollValue="yes";
	
    /* copyright */

	/* bio */
	} else if 	(popName == "bio") {
	
	/*values for focus*/
	var popName="bio";
	var widthValue="450";
	var heightValue="300";
	
	/*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="yes";
	
	} else if 	(popName == "focusart") {
	
	/*values for focus*/
	var popName="focusart";
	var widthValue="600";
	var heightValue="400";
	
	/*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="yes";
	
	}
	
	/* ##################### ADD THE POP UP HERE ABOVE ##################### */
	/* open the pop */

	/* open the pop */
	win=window.open(url,''+popName+'','top='+winPosTop+',left='+winPosLeft+',width='+widthValue+',height='+heightValue+',resizable='+resizeValue+',scrollbars='+scrollValue+'');
	win.focus();	
	/* end fucntion */
	}
/*---------------------------- other pop-up --------------------------------------- */
function disableMouse(e) { 
	if (document.layers) {
		if (e.which == 3 || e.which == 2) return false;
	}
	else if (document.getElementById && document.all) {
		document.oncontextmenu = function() {
			return false;
		}
	}
	else if (document.getElementById) {
		document.onmouseup = function(e) {
			if (e.button == 3) return false
		}
	}
	else if (document.all) {
		if (event.button == 2 || event.button == 3) return false; 
	}
} 
document.onmousedown=disableMouse; 
window.onmousedown=disableMouse; 
if (document.layers) {
	window.captureEvents(Event.MOUSEDOWN);
	window.onmousedown=disableMouse;
	}
/*----------------------------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="yes";
		//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 --------------------------------------- */
