function mOver (strImageName){
	//alert(strImageName);
	document.all["LogoImage"].src = "/ISSF/images/TeamStainless/TS_08" + strImageName + ".jpg";
}

// Function to force PDF's to be SAVEd rather than displayed
// Only works in IE
function downloadme(fileURL, fileName){
	myTempWindow = window.open(fileURL,"tempSaveWindow"); // to put it off screen use ,"left=10000,screenX=10000");
	myTempWindow.document.execCommand("SaveAs", null, "fileName.pdf" );
    //myTempWindow.close();
}

function spawnWindow(targetUrl, xWidth, yHeight){
	strWindowOptions = "menubar=1, resizable=1, alwaysRaised=1, width="+xWidth+", height="+yHeight;
	myWindow = window.open (targetUrl, "childWindow", strWindowOptions);
	myWindow.focus();
}

function popAnimationWindow(path,w,h,wname) {
   sw = screen.width
   sh = screen.height
   cx = (.5*sw) - (w*.5)
   cy = (.5*sh) - (h*.5)
   var  prop = 'status=no,'+'width='+w+','+'height='+h+',' + 'screenX=' +cx+','+'screenY='+cy+','+'left='+cx+','+'top='+cy+','+'scrollbars=no'
   Pop=window.open(path,wname,prop);
   
}

function popAnimationScalableWindow(path,w,h,wname) {
   sw = screen.width
   sh = screen.height
   
   // check to see if the window fits on the screen
   if ( (w > sw) || (h > sh) ) 
   {
		alert ( "need to resize animation window" )
		
		var wScale = (sw/w) * 0.5
		var hScale = (sh/h) * 0.5
		
		if ( wScale > hScale )
		{
			w = w * hScale
			h = h * hScale
		}
		else 
		{
			w = w * wScale
			h = h * wScale
		}
		
		alert ("Width is: " + w + ", and Height is: " + h + " and sh/h")
   }
   cx = (.5*sw) - (w*.5)
   cy = (.5*sh) - (h*.5)
   
   var  prop = 'status=no,'+'width='+w+','+'height='+h+',' + 'screenX=' +cx+','+'screenY='+cy+','+'left='+cx+','+'top='+cy+','+'scrollbars=no'
   //alert (prop)
   Pop=window.open(path,wname,prop);
   
}