// JavaScript Document

var newwindow = '';

function openImage(theImg,x,y,w,h,indexNumber,ui,puname) {
	if (!newwindow.closed && newwindow.location) {
		//window is already open, code to go to correct image
		newwindow.document.theImage.src = theImg;
		newwindow.currentIndx = indexNumber;
		newdescription = newwindow.MyDesc[indexNumber];
		newwindow.ChangeDesc(newdescription);
	} else {
		var s
		//	s = "/PopUpTemplates/temp" + ui + "/image_window" + newpopUp + ".asp?img=" + theImg + "&name=" + puname
		t = puname + "?image=" + theImg + "&theIndex=" + indexNumber;
		newwindow = window.open(t, 'NewWind', 'height=' + h + ',width=' + w + ', menubar=no, resizable=no, scrollbars=no , status=no, titlebar=no, toolbar=no, left=320, top=50');
		}
	if (window.focus) {newwindow.focus()}
	//return false;
}


//var browser=navigator.appName + " " + navigator.appVersion;

function popUp(infoPage)

   {
   if (browser.substring(0, 8)=="Netscape")
      {
      var newWind=window.open(infoPage,'info','width=450,height=400,SCROLLBARS');
      if (newWind.closed){
	  	if (newWind.opener == null)
         { newWind.opener = window; }
      	else
         {
         if (browser.substring(0, 12)=="Netscape 3.0")
            newWind.focus();
         if (browser.substring(0, 12)=="Netscape 2.0")
            newWind.document.forms[0].display.focus();
		  }
		}
	  else {newWind.focus()}
      }
   else
      {
      var newWind=window.open(infoPage,'info','toolbar=no,location=no,status=no,menubar=no,resizable=no,scrollbars=no,left=80,top=80,width=500,height=500');
	if (newWind.closed){
      if (newWind.opener == null)
         { newWind.opener = window; }
      }
	else {newWind.focus()}  
    }
}

function openFlash(ClipName,w,h,popUp,ui,puname){
var s
s = "/PopUpTemplates/temp"+ui+"/flash_window"+popUp+".asp?ClipName="+ClipName+"&w="+w+"&h="+h+"&name="+puname+""
window.open(s, "NewWindow","width=" + w +",height=" + h + ",menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,left=320,top=100")
}
var x
x=239;

