//The mouseover function
function doMouseover(value, ID, linkColor){
	var red = document.getElementById(ID);
	red.style.display = "table-header-group";
	if(value == "show"){
		//document.body.style.backgroundColor = "#000000";
		//document.getElementById("orange").src = "img/swid-logo_black_white.gif";
		//document.getElementById('pos').style.display = 'none';
		//red.style.display = "table-header-group";
		for(var i=1; i<5; i++){
			if(document.getElementsByTagName("a")[i].id != linkColor){
				var link = document.getElementsByTagName("a")[i];
				//link.style.color = "#F46F21";
			}
		}
	}
	else{
		//document.body.style.backgroundColor = "#F46F21";
		//document.getElementById("orange").src = "img/swid-logo_orange.gif";
		//document.getElementById('pos').style.display = 'inline';
		red.style.display = "none";
		for(var i=1; i<5; i++){
			var link = document.getElementsByTagName("a")[i];
			//link.style.color = "White";
		}
	}
}

// open a window with a specific size
function openWin(url,winName,wW,wH,opts) {

	if(!opts) opts = "toolbar=1,location=1,directories=0,status=1,menuBar=1,resizable=1,scrollBars=1";
			
	if (wW && wH) {
		
		// add margin to the requested size
		wW = parseInt(wW) + 40; // IE always shows vert. scrollbars
		wH = parseInt(wH) + 15; 
		
		// get screen dimensions
		sW = screen.availWidth - 80;
		sH = screen.availHeight - 60;

		// scrollbar width definition
		sbH = 40;
		sbW = 40;
		
		if (sW < wW) { // screen-width is smaller than requested
			wW = sW;     // set window-width to screen-width
			wH = parseInt(wH)+sbH; // window is smaller than requested, so most likely a  vertical scrollbar will appear, add space for it to height
		}
	
		if (sH < wH) { // screen-height is smaller than requested window-height
			wH = sH;     // set window-height to screen-height
			wW = parseInt(wW)+sbW; // window is smaller than requested, so most likely a  vertical scrollbar will appear, add space for it to width;
		}
		
		// if window is smaller than requested show scrollbars
		// if (sbW || sbH) opts = opts + ",scrollBars=1";
		// else opts = opts + ",scrollBars=0";
		
		
		// position of the window
		wleft = Math.floor(((screen.availWidth-wW)/2)-15);
		if (wleft<0) wleft=0;
		wtop = Math.floor(((screen.availHeight-wH)/2)-30);
		if (wtop<0) wtop=0;
		opts = "width="+wW+",height="+wH+",left="+wleft+",top="+wtop+opts;
	}

	var win = window.open(url,"_blank",opts); // use this if you want a special window look
	if (parseInt(navigator.appVersion) >= 4) win.window.focus();
	
}

