//<!--


	        ver4 = (document.layers || document.all) ? 1 : 0;
	
	        if (document.images) {
	            arImageSrc = new Array (
				"/admin/pubserv/copy/uniprint/images/about_over.gif",
				"/admin/pubserv/copy/uniprint/images/locations_over.gif",
				"/admin/pubserv/copy/uniprint/images/payment_over.gif",
				"/admin/pubserv/copy/uniprint/images/sizeprice_over.gif",
				"/admin/pubserv/copy/uniprint/images/support_over.gif")
	
	            arImageList = new Array ();
	            for (counter in arImageSrc) {
	                arImageList[counter] = new Image();
	                arImageList[counter].src = arImageSrc[counter];
	            }
	        };
	
	        function rollOver(imName,over) {
	            if (!document.images) {return};
	            whichIm = document.images[imName];
	            if (over) { whichIm.src = "/admin/pubserv/copy/uniprint/images/" + imName + "_over.gif" }
	                 else { whichIm.src = "/admin/pubserv/copy/uniprint/images/" + imName + "_out.gif" };
	        }

	
var DHTML = (document.getElementById || document.all || document.layers);

function getObj(name)	{
	  if (document.getElementById)	{    	// DOM level 1 browsers: IE 5+, NN 6+
	  	this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	  }
	  else if (document.all)	{  			// IE 4
		this.obj = document.all[name];
		this.style = document.all[name].style;
	  }
	  else if (document.layers)  { 			// NN 4
	   	this.obj = document.layers[name];
	   	this.style = document.layers[name];
	  }
}

// this function makes the image visible
function showpic(visiblechunk) {
		if (!DHTML){
		 alert ('Sorry, your browser can\'t show the map!');
		 return;
		}
		
		var displayedpic = new getObj(visiblechunk);
		displayedpic.style.visibility = 'visible';
	}

// this function makes the image visible
function showpic2(visiblechunk, xx, yy, loc) {
		if (!DHTML){
		 alert ('Sorry, your browser can\'t show the map!');
		 return;
		}
		xx = xx - 220;
		yy = yy;
		var displayedpic = new getObj(visiblechunk);
		displayedpic.style.visibility = 'visible';
		displayedpic.style.left = xx + 'px';
		displayedpic.style.top = yy + 'px';
		
		// We also need to write the location out to the hidden field for later ...
		document.printparams.printlocation.value = loc;
	}
		
	// this function makes the image invisible	
	function hidepic(invisiblechunk) {
			if (!DHTML){
			 alert ('Sorry, your browser can\'t hide the map!');
			 return;
			}
		
			var hiddenpic = new getObj(invisiblechunk);
			
			hiddenpic.style.visibility = 'hidden';
		}
		
	function getLarge(imgg){
	    ////// POSITIONING MENUS OFF MAIN CORE IMAGE
	    var left = 0;
	    var top = 0;
	 
	    var thisImg;
	    for(var i=0; i< document.images.length; i++){
	        if(document.images[i].name == imgg){
	            thisImg = document.images[i];
	            }
	        }
	 
	    // NETSCAPE COMPAT
	    if(thisImg.offsetParent){
	        for( var posX = 0, posY = 0; thisImg.offsetParent; thisImg = thisImg.offsetParent ) {
	              posX += thisImg.offsetLeft;
	              posY += thisImg.offsetTop;
	            }
	        top = (posY);
	        left = (posX);
	         }
	 
	     // DOM COMPAT
	     else{
	         left = (thisImg.y);
	         top = (thisImg.x);
	         }
			 
			// Draw menu
			showpic2('locoptions', left, top, imgg);
	    }
		
		function printOpts(strLoc, driver) {
			document.printparams.strLocName.value = strLoc;
			document.printparams.printlocation.value = driver;
			// Then close the menu
			hidepic('maplayer');
			// hidepic('locoptions');
			
			CurCont = "<p><strong>You've chosen to print to " + strLoc + ".</strong></p>";
			document.getElementById("step2_Conf").innerHTML = CurCont;
			showpic('driver');
			
			//alert ("You have requested " + sindbl + " prints from Copy Center " + loc);
		}
		
		function printOptsUWB() {
		
			for (var i = 0; i < document.printerLocations.uwb.length; ++i)
			  if (document.printerLocations.uwb[i].text == 'Second')
		    document.printerLocations.uwb.selectedIndex = i;
			
			var strLoc;
			var driver;
			
			strLoc = document.printerLocations.uwb.options[document.printerLocations.uwb.selectedIndex].text;
			driver = document.printerLocations.uwb.options[document.printerLocations.uwb.selectedIndex].value;
			
			printOpts(strLoc, driver)
		}
		
		function printOptsUWT() {
		
			for (var i = 0; i < document.printerLocations.uwt.length; ++i)
			  if (document.printerLocations.uwt[i].text == 'Second')
		    document.printerLocations.uwt.selectedIndex = i;
			
			var strLoc;
			var driver;
			
			strLoc = document.printerLocations.uwt.options[document.printerLocations.uwt.selectedIndex].text;
			driver = document.printerLocations.uwt.options[document.printerLocations.uwt.selectedIndex].value;
			
			printOpts(strLoc, driver)
		}
		
		function download_driver() {
			var driver;
			driver = document.printparams.printlocation.value;
			//alert(driver);
			newWin = window.open(driver,'newWin','toolbar=no, scrollbars=no, width=10,height=10');
			hidepic('driver');
			
			// Update the location parameter for the thank you screen.
			var strLocation = document.printparams.strLocName.value;
			CurCont = "<p>You're ready to print to " + strLocation + ".</p>";
			document.getElementById("strLoc").innerHTML = CurCont;
			
			showpic('thanks');
		}

//-->