function swf(ad,w,h){
    var flash="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\""+w+"\" height=\""+h+"\">";
    flash+="<param name=\"movie\" value=\""+ad+"\" />";
    flash+="<param name=\"quality\" value=\"high\" />";
	flash+="<param name=\"menu\" value=\"false\" />";
	flash+="<param name=\"wmode\" value=\"transparent\" />";
    flash+="<embed src=\""+ad+"\"  quality=\"high\" wmode=\"transparent\"  menu=\"false\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\""+w+"\" height=\""+h+"\"></embed>";
   flash+="</object>";
   document.write(flash);
}

//allblur
var myAnchors=document.all.tags("A"); 
function allblur() {
	for (i=0;i<myAnchors.length;i++) { 
		myAnchors[i].onfocus=new Function("myAnchors["+i+"].blur()");
	} 
}

//
function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

//Top Menu
function openGuide()
{	
	var nWidth = 900;
	var nHeight = 670;
	var l = (screen.availWidth - 1024)/2;
	var t = (screen.availHeight - 768)/2;
	window.open('/gameGuide/gwGuide/gwGuide.asp','','left=' + l + ',top=' + t + ',width='+nWidth+',height='+nHeight+' ,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no');
}
function topMenu43(){
    location.href = "/gameGuide/knack/knackListA.asp";
}
function newEvent(){
    location.href = "/event/championshipII/event.asp";
}

//Knack Menu
function knackA(){
    location.href = "/gameGuide/knack/knackListA.asp";
}
function knackB(){
    location.href = "/gameGuide/knack/knackListB.asp";
}
function knackC(){
    location.href = "/gameGuide/knack/knackListC.asp";
}

//preview site
function openFactions()
{
	var nWidth = 1000;
	var nHeight = 680;
	var l = (screen.availWidth - 1024)/2;
	var t = (screen.availHeight - 768)/2;
	window.open('/preview/factions/main.asp','','left=' + l + ',top=' + t + ',width='+nWidth+',height='+nHeight+' ,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no');
}

//manual
function openManual()
{
	var nWidth = 1000;
	var nHeight = 680;
	var l = (screen.availWidth - 1024)/2;
	var t = (screen.availHeight - 768)/2;
	window.open('/gameGuide/manual/manual.asp','','left=' + l + ',top=' + t + ',width='+nWidth+',height='+nHeight+' ,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no');
}