/**
* Filename: 
* Date created: 2005-10-21
*/

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function fnGoToUrl(obj, MID) {
	if (obj.value != 0) {
		switch (obj.value){
			case "STRATA": window.location = 'projector_mount_strata.asp';
				break;
			case "spyder": window.location = 'projector_mount_spyder.asp';
				break;
			case "PDR": window.location = 'projector_mount_UPM50.asp';
				break;
			case "RPAU": window.location = 'projector_mount_rpau.asp';
				break;
			default : window.location = 'projector_mounts_options.asp?PID=' + obj.value + '&MID=' + MID;
		}
		/*if (obj.value == "spyder"){
			window.location = 'projector_mount_spyder.asp';
		} else {
			window.location = 'projector_mounts_details.asp?PID=' + obj.value + '&MID=' + MID;
		}*/
	}
}