<!--
function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0
 var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,'; else
  windowProperties+='toolbar=yes,'; if(loc==false) windowProperties+='location=no,'; 
 else windowProperties+='location=yes,'; if(sts==false) windowProperties+='status=no,';
 else windowProperties+='status=yes,'; if(menu==false) windowProperties+='menubar=no,';
 else windowProperties+='menubar=yes,'; if(scroll==false) windowProperties+='scrollbars=no,';
 else windowProperties+='scrollbars=yes,'; if(resize==false) windowProperties+='resizable=no,';
 else windowProperties+='resizable=yes,'; if(w!="") windowProperties+='width='+w+',';
 if(h!="") windowProperties+='height='+h; if(windowProperties!="") { 
  if( windowProperties.charAt(windowProperties.length-1)==',') 
   windowProperties=windowProperties.substring(0,windowProperties.length-1); } 
 window.open(url,name,windowProperties);
}

function OpWin(UrlStr){
FP_openNewWindow('', '', false, false, false, false, true, true, 'Flash', /*href*/''+UrlStr)
}
function setImgSizeWH(theURL,sImage,imgW,imgH){
var imgObj;
imgObj = new Image();
imgObj.src = theURL;
if ((imgObj.width != 0) && (imgObj.height != 0)) {
	
	if(imgObj.width>imgW || imgObj.height>imgH){
		
		var iHeight = imgObj.height*imgW/imgObj.width;
		
		if(iHeight<=imgH){
			sImage.width=imgW;
			sImage.height=iHeight;
		}else{
		var iWidth=imgObj.width*imgH/imgObj.height;
		sImage.width=iWidth;
		sImage.height=imgH;
		}
	}else{
	sImage.width=imgObj.width;
	sImage.height=imgObj.height;
	}

}else{
sImage.width = imgW;
sImage.height= imgH;
}
}
// -->


