var win = null;function centrepop(mypage,myname,w,h,scroll,resize)
{leftedge = (screen.width) ? (screen.width-w)/2 : 0;topedge = (screen.height) ? (screen.height-h)/2 : 0;settings ='height='+h+',width='+w+',top='+topedge+',left='+leftedge+',scrollbars='+scroll+',resizable='+resize+''win = window.open(mypage,myname,settings)
}

function openWindow(url)
{var availheight=screen.availHeight;var availwidth=screen.availWidth;winStats='toolbar=no,location=no,directories=no,menubar=no,';winStats+='scrollbars=no,width='+availwidth+',height='+availheight;if (navigator.appName.indexOf("Microsoft")>=0) {    winStats+=',left=0,top=0';    }else{    winStats+=',screenX=0,screenY=0';    }floater=window.open(url,"",winStats)}

function embedFlash(playerUrl,playerWidth,playerHeight,playerBgColor) { 
var postUrl=location.search; 
if (playerUrl.indexOf("?")!=-1 && postUrl  !="") { 
av_player=playerUrl+"&"+postUrl.split("?")[1]; 
} else { 
av_player=playerUrl+postUrl; 
} 
object= "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+playerWidth+"' height='"+playerHeight+"' id='player'>"; 
object+="<param name='movie' value='"+av_player+"' />"; 
object+="<param name='quality' value='high' />"; 
object+="<param name='BGCOLOR' value='"+playerBgColor+"' />"; 
if(playerBgColor == ""){ 
object+="<param name='wmode' value='transparent'>"; 
} 
object+="<embed src='"+av_player+"' width='"+playerWidth+"' height='"+playerHeight+"' name='player' swliveconnect='true' "; 
if(playerBgColor == ""){ 
object+="wmode='transparent'"; 
} 
object+="quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' bgcolor='"+playerBgColor+"'></embed></object>"; 
document.write(object); 
} function writeFlash(playerUrl,playerWidth_1,playerHeight_1,playerWidth_2,playerHeight_2,playerBgColor){	var x=screen.availWidth;  	var y=screen.availHeight;	if(x<=800 && y<=600){		embedFlash(playerUrl,playerWidth_1,playerHeight_1,playerBgColor);	} else {		embedFlash(playerUrl,playerWidth_2,playerHeight_2,playerBgColor);	}}

