
function flashWrite(url,w,h,id,bg,win,scale,salign){ 

var flashStr=
"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
"<param name='movie' value='"+url+"' />"+
"<param name='wmode' value='transparent'>"+
"<param name='menu' value='false'>"+
"<param name='quality' value='high'>"+
"<param name='bgcolor' value='"+bg+"' />"+
"<param name='scale' value='"+scale+"'>"+
"<param name='salign' value='"+salign+"'>"+
"<param name='allowScriptAccess' value='always'>"+
"<embed src='fla/main_visual.swf' width='"+w+"' height='"+h+"' type='application/x-shockwave-flash' allowScriptAccess='always' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>"+
"</object>";
 
 document.write(flashStr);
 
}


function GNB(num)
{
	switch(num)
	{
		case "0": document.location.href="./"; 
			break;
		case "012": document.location.href="./"; 
			break;


		case "11": var subpop = window.open("/golf.htm","topb",""); 
		subpop.focus();
			break;
		case "12": document.location.href="./";
			break;
		case "13": document.location.href="./";
			break;
		case "14": document.location.href="./";
			break;
		case "15": document.location.href="./";
			break;
		case "16": document.location.href="./";
			break;
		case "17": var subpop = window.open("/tennis.htm","topb",""); 
		subpop.focus();
			break;
		case "18": document.location.href="./";
			break;	
		case "19": document.location.href="./";
			break;	


		case "20":  var subpop = window.open("/horse.htm","topb",""); 
		subpop.focus();
			break;
		case "21": document.location.href="./44";
			break;
		case "22": document.location.href="./";
			break;
		case "23": document.location.href="./";
			break;
		case "24": document.location.href="./";
			break;
		case "25": document.location.href="./";
			break;

			// °ٌاء
		case "26": document.location.href="./55";
			break;
		case "27": document.location.href="./";
			break;
		case "28": document.location.href="./";
			break;
		case "29": document.location.href="./";
			break;
		case "210": document.location.href="./";
			break;
		case "211": document.location.href="./";
			break;

	
		case "31":  var subpop = window.open("/tennis.htm","topb",""); 
		subpop.focus();
			break;
		case "32":  document.location.href="./";
			break;
		case "33":  document.location.href="./";
			break;
		case "34": document.location.href="./";
			break;
		case "35": document.location.href="./";
			break;
	
	
		case "41": var subpop = window.open("/company.htm","topb",""); 
		subpop.focus();
			break;
		case "42":  document.location.href="./";
			break;
		case "43":  document.location.href="./";
			break;
		case "44":  document.location.href="./";//FAQ
			break;


		case "51":  document.location.href="./77";
			break;
		case "52":  document.location.href="./";
			break;
		case "53":  document.location.href="./";
			break;
		case "54":  document.location.href="./";
			break;
			
		
	
		case "61":  document.location.href="./88";
			break;
		case "62":  document.location.href="./";
			break;
		case "63":  document.location.href="./";
			break;
		case "64":  document.location.href="./";
			break;

	
		case "71":   var subpop = window.open("/company.htm","topb",""); 
		subpop.focus();
			break;
		case "72":  document.location.href="./";
			break;
		case "73":  document.location.href="./";
			break;
		case "74":  document.location.href="./";
			break;
		case "75":  document.location.href="./";
			break;

	
		case "811":   var subpop = window.open("/news.htm","topb",""); 
		subpop.focus();
			break;
		case "812":  document.location.href="./";
			break;
		case "813":  document.location.href="./";
			break;

		case "84":   var subpop = window.open("/golf.htm","topb",""); 
		subpop.focus();
			break;
		case "85":   var subpop = window.open("/horse.htm","topb",""); 
		subpop.focus();
			break;
		case "86":  var subpop = window.open("/tennis.htm","topb",""); 
		subpop.focus();
			break;
		case "87":  var subpop = window.open("/tennis.htm","topb",""); 
		subpop.focus();
			break;
		case "88":   var subpop = window.open("/contact.htm","topb",""); 
		subpop.focus();
			break;	
		case "89":  document.location.href="./";//sitemap
			break;					

	}
}




function network(num)
{
	switch(num)
	{
		case "10": var subpop = window.open("company.htm","topb",""); 
			subpop.focus();
			break;
		case "11":  
			break;
		//case "12":  var subpop = window.open("/news.htm","subVisual","width=980,height=700"); 
		case "12":  var subpop = window.open("/news.htm","subVisual",""); 
			subpop.focus();
			break;
		//case "13":  var subpop = window.open("/network4","subVisual","width=980,height=700"); 
			//subpop.focus();
			//break;
		case "13":  var subpop = window.open("/golf.htm","subVisual",""); 
			subpop.focus();		
			break;
		case "14":  //var subpop = window.open("/network5","subVisual","width=980,height=700"); 
			//subpop.focus();
			break;
		case "15":  var subpop = window.open("/horse.htm","topb",""); 
			subpop.focus();
			break;
		case "16":  //var subpop = window.open("/network7","subVisual","width=980,height=700"); 
			//subpop.focus();
			break;
		case "17":  //var subpop = window.open("/networkl8","subVisual","width=980,height=700"); 
			//subpop.focus();
			break;
		case "18":  var subpop = window.open("/contact.htm","subVisual",""); 
			subpop.focus();
			break;
		case "19": // var subpop = window.open("/horse.htm","topb",""); 
			//subpop.focus();
			break;
		case "20":  var subpop = window.open("/tennis.htm","subVisual",""); 
			subpop.focus();
			break;
		case "21": 		
			break;
	}
}




function GetCookie(name) {
	var nameOfCookie=name+'=';
	var x=0;
	while(x<=document.cookie.length) {
		var y=(x+nameOfCookie.length);
		if(document.cookie.substring(x,y)==nameOfCookie ) {
			if((endOfCookie=document.cookie.indexOf(';',y))==-1) endOfCookie = document.cookie.length;
			return unescape(document.cookie.substring(y,endOfCookie));
		}
		x=document.cookie.indexOf(' ',x)+1;
		if(x==0) break;
	}
	return '';
}

function openPopUp(ckName, filename,p_width,p_height,scrll,l,t) {
	var left = l ? l : 0;
	var top = t ? t : 0;

	if (GetCookie(ckName) != "done") {
		window.open(filename, ckName,"resizable=no,scrollbars="+scrll+",width="+p_width+",height="+p_height+",left=" + left + ", top=" + top);
	}
}



function WinOpen(filename,p_width,p_height,scrll)
{
	
	var filename,p_width,p_height,scrll,search,winLeft,winTop	
	var winLeft = (screen.width - p_width) / 2; 
	var winTop = (screen.height - p_height) / 2; 

	win = window.open(filename, "","resizable=no,scrollbars="+scrll+",width="+p_width+",height="+p_height+",left="+winLeft+",top="+winTop);
}


winObj=null; 
function WinOpen(imgname)
{
 img = new Image();
 img.src=imgname; 
 draw();
}
     
function draw()
{
 if(img.complete == false) 
 {
  setTimeout("draw()", "100");
  return;
 }
     
 width=img.width //+ 20; 
 height=img.height// + 25; 
      
 var attr ="width="+width + ",height="+height
      
 if(winObj != null && winObj.closed == false) 
 { 
  winObj.close(); 
 }
      
 winObj = window.open("","imgwindow",attr + ',top=200' + ',left=400' );
 winObj.document.open()
 winObj.document.write("<html><body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>")
 winObj.document.write("<img alt='' src=" + img.src + " style='cursor: hand;'" + " onClick='self.close()'" )
 winObj.document.write("<body><html>")
 winObj.document.close()
} 



function GetObject(ObjectId) {
	 if (document.getElementById && document.getElementById(ObjectId)) {
	  return document.getElementById(ObjectId);
	 } else if (document.getElementByName && document.getElementByName(ObjectId)) {
	  return document.getElementByName(ObjectId);
	 } else if (document.all && document.all(ObjectId)) {
	  return document.all(ObjectId);
	 } else if (document.layers && document.layers[ObjectId]) {
	  return document.layers[ObjectId];
	 } else {
	  return false;
	 }
}

