var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;		// true if we're on ievar isMG = (navigator.userAgent.indexOf("Gecko") != -1) ? true : false;		// true if we're on Mozilla-Gecko enginevar isNN = (navigator.appName.indexOf("Netscape") != -1) ? true : false;		// true if we're on Netscape enginevar isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; // true if we're on windowsvar isMac = (navigator.appVersion.indexOf("Mac") != -1) ? true : false; // true if we're on mac	//centralcontrolif(isMG || isNN){	var	hi = screen.availHeight-50;//	alert("Moz");} else if (isWin && isIE) {	var	hi = screen.height-30;//	alert("IE")} else  {	var	hi = screen.height;//	alert("IE")} /*	if (isMac && (isMG || isNN)) {//	alert("Moz-Mac");	var hi = screen.availHeight-50;}*/var xPos = screen.width/2 - 512;var yPos = hi/2 - 390;function miniWin()    {     newwin=window.open('centralcontrol/cc800.html','ba','screenX=0,screenY=0,left=0,top=0,width=785,height='+hi+'')     if(isIE){     newwin.resizeTo(785,hi)     }}        function midiWin()    {     newwin=window.open('centralcontrol/cc1000.html','ba','menue=yes,location=no,status=yes,screenX=0,screenY=0,left=0,top=0, width=1005,height='+hi+'')     if(isIE){     newwin.resizeTo(1005,hi);        }}     function maxiWin()    {     newwin=window.open('centralcontrol/cc1000.html','ba','menue=yes,location=no,status=yes,screenX='+xPos+',screenY='+yPos+',left='+xPos+',top='+yPos+', width=1024,height=768')     if(isIE){     newwin.resizeTo(1024,768)     }}          // take control over browser windowfunction inControl() {	if (screen.width < 1000) {		miniWin();	} else if (screen.width == 1024) {		midiWin(); 	} else if (screen.width > 1024) {		maxiWin() ;	}}		     function eControl() {	if (screen.width < 1000) {		miniWin();	} else if (screen.width == 1024) {		midiWin(); 	} else if (screen.width > 1024) {		maxiWin() ;	}	window.close();}	