////////////////////////////////////////////////////////////////////																          ////	Weill Cornell Medical College in Qatar		 	      	 ////	global JavaScript 									//// header.js				   								      	////	Author														   ////		Zahara K Velji    										   ////																		//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////																					////	Browser sniffer. Script will only be enabled in compliant	////	browsers.																	////																					///////////////////////////////////////////////////////////////////////////var isMac = (navigator.userAgent.indexOf("Macintosh") != -1);var isWin = (navigator.userAgent.indexOf("Windows 95") != -1 || navigator.userAgent.indexOf("Windows NT") != -1);var isNS =  (navigator.appName == "Netscape");var isIE =  (navigator.userAgent.indexOf("MSIE") != -1);var ieWin = (navigator.userAgent.indexOf("MSIE") != -1 && (navigator.userAgent.indexOf("Windows 95") != -1 || navigator.userAgent.indexOf("Windows NT") != -1));browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))////////////////////////////////////////////////////////////////////																////	Popup window opener											////																////////////////////////////////////////////////////////////////////function openNote(URL){	aWindow=window.open(URL,"wcmcq_conact","toolbar=no, width=450, height=350,menubar=no status=no, scrollbars=yes, resizable=no");	}function openContact(URL){	aWindow=window.open(URL,"wcmcq_conact","toolbar=no, width=525, height=240,menubar=no status=no, scrollbars=yes, resizable=no");	}function openMedia(URL){	aWindow=window.open(URL,"wcmcq_media","toolbar=no, width=630, height=540,menubar=yes, status=yes, scrollbars=yes, resizable=no");	}function openGallery(URL){	aWindow=window.open(URL,"wcmcq_gallery","toolbar=no, width=620, height=600,menubar=yes, status=yes, scrollbars=yes, resizable=no");	}function openForm(URL){	aWindow=window.open(URL,"wcmcq_form","toolbar=no, width=720, height=600,menubar=yes, status=yes, scrollbars=yes, resizable=yes");	}function openApps(URL){	aWindow=window.open(URL,"wcmc_press","toolbar=no, width=900, height=700,menubar=no, status=yes, scrollbars=yes, resizable=yes");	}function openPhoneBook(URL){	aWindow=window.open(URL,"wcmcq_phonebook","toolbar=yes, width=900, height=700,menubar=no, status=yes, scrollbars=yes, resizable=yes");	}function openPress(URL){	aWindow=window.open(URL,"","toolbar=no, width=900, height=600,menubar=yes, status=yes, scrollbars=yes, resizable=yes");	}function openHR(URL){	aWindow=window.open(URL,"wcmc_press","toolbar=no, width=890, height=800,menubar=yes, status=yes, scrollbars=yes, resizable=yes");	}function openBioJob(URL){	aWindow=window.open(URL,"wcmc_press","toolbar=no, width=785, height=800,menubar=yes, status=yes, scrollbars=yes, resizable=yes");	}function openCalendar(URL){	aWindow=window.open(URL,"wcmc_press","toolbar=no, width=800, height=900,menubar=yes, status=yes, scrollbars=yes, resizable=no");	}function openVirtualTour(URL){	aWindow=window.open(URL,"wcmcq_vrt","toolbar=no, width=700, height=730,menubar=yes, status=yes, scrollbars=yes, resizable=no");	}function openEventGallery(URL){	aWindow=window.open(URL,"wcmc_press","toolbar=no, width=636, height=555,menubar=yes, status=yes, scrollbars=no, resizable=no");	}function openPressPack(URL){	aWindow=window.open(URL,"wcmc_press","toolbar=no, width=920, height=800,menubar=yes, status=yes, scrollbars=yes, resizable=no");	}function openElib(URL){	aWindow=window.open(URL,"","toolbar=yes, width=650, height=600,menubar=yes, status=yes, scrollbars=yes, resizable=yes");	}function printPreview(myDiv){		var win = window.open(document.location,'win', "toolbar=yes, width=800, height=600,menubar=yes, status=yes, scrollbars=yes, resizable=yes");	}function doCreateNewWindowWithContent ( inUrl, inWidth, inHeight, inName, inContent ){	var winl = (screen.availWidth - inWidth) / 2;	var wint = (screen.availHeight - inHeight) / 2 - 40;		content="<html><head><title>"+inName+"<\/title><\/head>"+inContent+"<noframes><body><\/body><\/noframes><\/html>";	newWin = window.open ( inUrl, 'popupwindow', "scrollbars=yes,resizable,width=" + inWidth +",height=" + inHeight + ",top="+wint+",left="+winl+",screenX="+wint+",screenY="+winl );	newWin.document.write(content);	newWin.document.close();}////////////////////////////////////////////////////////////////////																////	Flash sniffer												////																////////////////////////////////////////////////////////////////////FlashMode = 0;var plgIn = "Shockwave Flash";var autoGo = true;var ok=false;document.MM_returnValue = false;var plgIn = 'Shockwave Flash';var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);with (navigator){	if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)){		if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 6){			ok = true;		} else {			ok = false;		}	} else if (appVersion.indexOf('3.1')==-1) { 	//not Netscape or Win3.1		if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) {			ok=window.MM_flash;		} else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) {			ok=window.MM_dir;		} else {			ok=autoGo;		}	}}if (!ok) {	FlashMode = 0;} else {	FlashMode = 1;}