<!--

var fixAdServer = "210.177.167.105";

var search_text ="東方/太陽網頁";

function print_disclaimer() {

	var disclaimer = '<div align="left"><font color="#333333" size="2">' +

			 '波經所提供之資訊概以較新版本為準，並已力求精確可靠，但不保證絕對無誤。<br>' +

			 '資料只供參考用途，如有錯漏而導致閣下蒙受損失，本公司概不負責。 ' +

			 '</font></div>	';

	document.write(disclaimer);

}

function print_bottommenu() {

	document.write("<script>var pub='oncc';</script>");
	document.write("<script>pbmenu(pub);</script>");
//chgContent();
}



function print_resbar() {



	var resbar = '<map name="Map">' +	

	  					 '<area shape="rect" coords="1,1,59,18" href="/football/res/current/fbresa0001x0.html" target="_self" alt="即場賽果">'+

  						 '<area shape="rect" coords="60,1,119,18" href="/football/res/current/fbresc0001x0.html" target="_self" alt="完場賽果">'+

  						 '<area shape="rect" coords="120,2,203,18" href="/football/res/current/fbrese0001x0.html" target="_self" alt="首名入球球員">'+

  						 '<area shape="rect" coords="204,2,306,18" href="/football/res/current/fbresg0001x0.html" target="_self" alt="孖寶半全膽派彩">'+

  						 '<area shape="rect" coords="307,1,407,18" href="/football/res/current/fbresf0001x0.html" target="_self" alt="6寶半全場派彩">'+

							 '</map>';



	/*var resbar = '<map name="Map">' +

							 '<area shape="rect" coords="49,1,104,16"  href="/football/res/current/fbresa0001x0.html" target="_self">' +

							 '<area shape="rect" coords="110,2,165,16" href="/football/res/current/fbresc0001x0.html" target="_self">' +

							 '<area shape="rect" coords="271,2,362,17" href="/football/res/current/fbresf0001x0.html" target="_self">' +

							 '<area shape="rect" coords="168,2,267,16" href="/football/res/current/fbresg0001x0.html" target="_self">' +

							 '</map>';

	*/

	document.write(resbar);

}



function print_logbar() {



	var logbar = 	'<img src="/football/img/bar_login.gif" width="627" height="43" border="0">';

	document.write(logbar);

}



function print_eurbar() {



	var eurbar = '<map name="Map">' +

				'<area shape="rect" coords="162,2,238,15" href="/football/eur/current/fbeurj0001x0.html" target="_self">' +

				'<area shape="rect" coords="244,2,313,16" href="/football/eur/current/fbeurk0001x0.html" target="_self">' +

				'<area shape="rect" coords="320,2,390,16" href="/football/eur/current/fbeurl0001x0.html" target="_self">' +

				'<area shape="rect" coords="398,2,454,16" href="/football/eur/current/fbeurm0001x0.html" target="_self">' +

				'<area shape="rect" coords="9,17,72,32" href="/football/odd/current/fboddo0001x0.html">' +

				'<area shape="rect" coords="79,17,167,32" href="/football/tip/current/fbtipf0001x0.html">' +

				'<area shape="rect" coords="173,17,243,31" href="/football/eur/current/fbeurn0001x0.html">' +

				'<area shape="rect" coords="250,17,307,31" href="/football/eur/current/fbeuro0001x0.html">' +

				'<area shape="rect" coords="9,2,78,16" href="/football/eur/current/fbeurb0001x0.html" target="_self">' +

				'<area shape="rect" coords="87,2,156,15" href="/football/eur/current/fbeurp0001x0.html" target="_self">' +

				'</map>';

				document.write(eurbar);

}

function print_bottom() {

document.write("<script>var pub='orisun';</script>");

document.write("<script>pyear(pub);</script>");

}


<!--

if (! (RN))

 {

        var RN = new String (Math.random());

        var RNS = RN.substring (2,11); }



function banner (page, position)

{

		if (page=="" && position=="") {

			return;

		}

		

        var height=60;

	var sec=page.substring(0,2);

        if (position == "Top")  {

                width="468";

        }

        else if (position == "TopRight")  {

                width="113";

        }

        else if ( (position == "Right1") || (position == "Right2") || (position == "Right3") )  {

                width="90";

                height="110";

        }

        else {

                width="102";

        }

        var _version='11';

        var site = 'www.on.cc';

        var server = '210.177.167.145';

        if (navigator.userAgent.indexOf('Mozilla/3') != -1)

        {

                _version='10';

        }

        var oas='http://' + server + '/RealMedia/ads/' ;

        var oaspage= site + '/' + page + '/1' + RNS + '@' + position;



        if (position == 'BottomLeft')

         {

		if (sec != 'rj') {

		    if (page != 'racing') {

          		document.write('<a href ="http://on.cc/odnreaders/" target="_blank"><img src="/adv/odnreaders.gif" width=103 height=60 border =0></a>');

			    }

			}

        }

        else if (position == 'Bottom1')

         {

		if (sec != 'rj') {

		    if (page != 'racing') {

		          document.write('<a href ="http://on.cc/racing/" target="_blank"><img src="/adv/racing.gif" width=103 height=60 border =0></a>');

			    }

			}

        }

        else if (position == 'Bottom2')

         {

		if (sec != 'rj') {

		    if (page != 'racing') {

		          document.write('<a href ="http://orientaldaily.com.hk/" target="_blank"><img src="/adv/odn.gif" width=103 height=60 border =0></a>');

		    	}

			}

        }

        else if (position == 'Bottom3')

         {

		if (sec != 'rj') {

		    if (page != 'racing') {

		          document.write('<a href ="http://the-sun.com.hk" target="_blank"><img src="/adv/sun.gif" width=103 height=60 border =0></a>');

			    }

			}

        }

        else if (position == 'BottomRight')

         {

		if (sec != 'rj') {

		    if (page != 'racing') {

		          document.write('<a href ="http://on.cc/" target="_blank"><img src="/adv/epaper.gif" width=103 height=60 border =0></a>');

		    }

		}

          }

    else if (position == 'Right1'){  //FIXAD SETTING

			if (sec != 'rj') {

		    if (page != 'racing') {

					var advPosition = position.toLowerCase();

					eval("var jsfile = 'orisun_football_" + advPosition +"'");

					document.write("<script language=Javascript src='http://"+ fixAdServer +"/adv/orisun/js/"+jsfile+".js'></script>");

				}

			}

    }

    else if (_version < 11)
        {

                document.write ('<A HREF="' + oas + 'click_nx.ads/' + oaspage + '" TARGET="_Blank" ><IMG SRC="' + oas + 'adstream_nx.ads/' + oaspage + '" BORDER= "0" + WIDTH="' + width + '" HEIGHT="' + height + '" ALT=" "></a>');

        }
        else
        {
                document.write ('<SCRIPT LANGUAGE="JavaScript"1.1" SRC="' + oas +  'adstream_jx.ads/'+ oaspage + '" >');

                document.write ('\<\!-- --\>');

                document.write ('\<\/SCRIPT\>');

                document.write ('\<\!-- --\>');

        }

}

function chgad(item){

      parent[0].location=item;

}

function minwin(link, width, height) {

	window.open(link,'popup','location=no,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width='+width+',height='+height);

}

function popupwin(link, width, height) {

	window.open(link,'popupdetail','location=no,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width='+width+',height='+height);

}

document.write("<script language=\"javascript\" src=\"/football/js/corpbar.js\"></script>");

function print_top_memu_bar(){

	document.write("<script>print_corp_bar(\"6\",\"left\")</script>");

}

function print_sch_notice()
{
		var notice = 	'<div class="redstitle" align="center">＊由於上述賽程隨時更改，最新賽程資料概以 '+

									'<a class="redstitle" href="/football/sch/current/fbscha0001x0.html">&gt;&gt;賽程表</a> '+

									'為準。 </div>';

		document.write(notice);
}



function print_main_bar(sectionId)
{
		var strDisplay = "";

		var strNew = "<a href=\"/football/new/current/fbnewa0001x0.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image1','','/football/img/btn_01_over.gif',1)\"><img src=\"/football/img/btn_01.gif\" width=\"42\" height=\"27\" border=\"0\" name=\"Image1\"></a>";

		var strOdd = "<a href=\"/football/odd/current/fbodda0001x0.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image2','','/football/img/btn_02_over.gif',1)\"><img src=\"/football/img/btn_02.gif\" width=\"42\" height=\"27\" border=\"0\" name=\"Image2\"></a>";

		var strRes = "<a href=\"/football/res/current/fbresa0001x0.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image3','','/football/img/btn_03_over.gif',1)\"><img src=\"/football/img/btn_03.gif\" width=\"42\" height=\"27\" border=\"0\" name=\"Image3\"></a>";

		var strTip = "<a href=\"/football/tip/current/fbtipa0001x0.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image4','','/football/img/btn_04_over.gif',1)\"><img src=\"/football/img/btn_04.gif\" width=\"42\" height=\"27\" border=\"0\" name=\"Image4\"></a>";

		var strSch = "<a href=\"/football/sch/current/fbscha0001x0.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image5','','/football/img/btn_05_over.gif',1)\"><img src=\"/football/img/btn_05.gif\" width=\"57\" height=\"27\" border=\"0\" name=\"Image5\"></a>";

		var strTab = "<a href=\"/cgi-bin/football/view.cgi?s=football&u=tab&d=current&f=fbtabb0001x0\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image6','','/football/img/btn_06_over.gif',1)\"><img src=\"/football/img/btn_06.gif\" width=\"57\" height=\"27\" border=\"0\" name=\"Image6\"></a>";

		var strPol = "<a href=\"/cgi-bin/football/polling/polling.cgi?s=football&u=pol&d=current&f=fbpola0001x0\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image7','','/football/img/btn_07_over.gif',1)\"><img src=\"/football/img/btn_07.gif\" width=\"42\" height=\"27\" border=\"0\" name=\"Image7\"></a>";

		var strGam = "<a href=\"/football/gam/current/fbgama0001x0.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image8','','/football/img/btn_08_over.gif',1)\"><img src=\"/football/img/btn_08.gif\" width=\"57\" height=\"27\" border=\"0\" name=\"Image8\"></a>";

		var strEur = "<img src=\"/football/img/topbar.gif\" width=\"87\" height=\"27\" border=\"0\" name=\"Image9\">";

		var strIndexBar = "<img src=\"/football/img/bar_index.gif\" width=\"627\" height=\"27\" border=\"0\" usemap=\"#MapMap\">";

		var strfbIndexArr = new Array();

		var strfbIndex = "";

		var sectcode = 99;


    strfbIndexArr[0] = "<area shape=\"rect\" coords=\"2,3,37,27\" href=\"/football/new/current/fbnewa0001x0.html\" target=\"_self\" alt=\"新聞\">";

    strfbIndexArr[1] = "<area shape=\"rect\" coords=\"42,3,80,25\" href=\"/football/odd/current/fbodda0001x0.html\" target=\"_self\" alt=\"賠率\">";

    strfbIndexArr[2] = "<area shape=\"rect\" coords=\"82,3,124,25\" href=\"/football/res/current/fbresa0001x0.html\" target=\"_self\" alt=\"賽果\">";

    strfbIndexArr[3] = "<area shape=\"rect\" coords=\"125,3,166,25\" href=\"/football/tip/current/fbtipa0001x0.html\" target=\"_self\" alt=\"推介\">";

    strfbIndexArr[4] = "<area shape=\"rect\" coords=\"168,4,224,24\" href=\"/football/sch/current/fbscha0001x0.html\" target=\"_self\" alt=\"賽程表\">";

    strfbIndexArr[5] = "<area shape=\"rect\" coords=\"226,4,280,24\" href=\"/cgi-bin/football/view.cgi?s=football&u=tab&d=current&f=fbtabb0001x0\" target=\"_self\" alt=\"資料庫\">";    

    strfbIndexArr[6] = "<area shape=\"rect\" coords=\"283,4,324,24\" href=\"/cgi-bin/football/polling/polling.cgi?s=football&u=pol&d=current&f=fbpola0001x0\" target=\"_self\" alt=\"投票\">";

    strfbIndexArr[7] = "<area shape=\"rect\" coords=\"325,2,380,25\" href=\"/football/gam/current/fbgama0001x0.html\" target=\"_self\" alt=\"遊戲區\">";



	switch(sectionId){

			case "new":

				strIndexBar = "<img src=\"/football/img/bar_new2.gif\" width=\"627\" height=\"27\" border=\"0\" name=\"Image1\" usemap=\"#MapMap\">";

				sectcode = 0;

				strDisplay = strIndexBar;

				break;

			case "odd":

				strIndexBar = "<img src=\"/football/img/bar_odd2.gif\" width=\"627\" height=\"27\" border=\"0\" name=\"Image2\" usemap=\"#MapMap\">";

				sectcode = 1;

				strDisplay = strIndexBar;

				break;

			case "res":

				strIndexBar = "<img src=\"/football/img/bar_res2.gif\" width=\"627\" height=\"27\" border=\"0\" name=\"Image3\" usemap=\"#MapMap\">";

				sectcode = 2;

				strDisplay = strIndexBar;

				break;

			case "tip":

				strIndexBar = "<img src=\"/football/img/bar_tip2.gif\" width=\"627\" height=\"27\" border=\"0\" name=\"Image4\" usemap=\"#MapMap\">";

				sectcode = 3;

				strDisplay = strIndexBar;

				break;

			case "sch":

				strIndexBar = "<img src=\"/football/img/bar_sch2.gif\" width=\"627\" height=\"27\" border=\"0\" name=\"Image5\" usemap=\"#MapMap\">";

				sectcode = 4;

				strDisplay = strIndexBar;				

				break;

			case "tab":

				strIndexBar = "<img src=\"/football/img/bar_tab2.gif\" width=\"627\" height=\"27\" border=\"0\" name=\"Image6\" usemap=\"#MapMap\">";

				sectcode = 5;

				strDisplay = strIndexBar;				

				break;

			case "pol":

				strIndexBar = "<img src=\"/football/img/bar_poll2.gif\" width=\"627\" height=\"27\" border=\"0\" name=\"Image7\" usemap=\"#MapMap\">";


				sectcode = 6;

				strDisplay = strIndexBar;

				break;

			case "gam":

				strIndexBar = "<img src=\"/football/img/bar_gam2.gif\" width=\"627\" height=\"27\" border=\"0\" name=\"Image8\" usemap=\"#MapMap\">";

				sectcode = 7;

				strDisplay = strIndexBar;

				break;

				

			case "eur":

				strDisplay =  strNew + strOdd + strRes  + strTip + strSch + strTab + strPol + strGam + strEur;

				break;

			default :

				strIndexBar = "<img src=\"/football/img/bar_index.gif\" width=\"627\" height=\"27\" border=\"0\" usemap=\"#MapMap\">";

				strDisplay = strIndexBar;

				strNew = "<font size = \"2\">Section ID ("+ sectionId +")Error </font>";

		}

		document.write(strDisplay);

		document.write('<map name="MapMap">');

		for (a=0; a < strfbIndexArr.length; a++){

			if (a != sectcode){  

				strfbIndex += strfbIndexArr[a];  

			}

		}

		document.write(strfbIndex);

		document.write('</map>');

}

function printWindow() {

	bV = parseInt(navigator.appVersion);

	if (bV >= 4) window.print();

}

function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}

function print_submain_bar() {

	var subbar = '<map name="subMap">' +

			'<area shape="rect" coords="6,1,80,16" href="/football/wcp/current/fbwcpa0301x0.html" target="_self">' +

			'<area shape="rect" coords="90,1,128,15" href="/football/wcp/current/fbwcpb0001x0.html" target="_self">' +

			'<area shape="rect" coords="137,0,211,16" href="/football/wcp/current/fbwcpc0001x0.html" target="_self">' +

			'<area shape="rect" coords="223,0,299,17" href="/football/wcp/current/fbwcpd0001x0.html" target="_self">' +

			'<area shape="rect" coords="308,1,374,16" href="/football/wcp/current/fbwcpe0001x0.html" target="_self">' +

			'<area shape="rect" coords="382,1,445,16" href="/football/wcp/current/fbwcpf0001x0.html" target="_self">' +

			'<area shape="rect" coords="544,1,626,15" href="/football/wcp/current/fbwcpa0301x0.html" target="_self">' +

			'</map>';

	document.write(subbar);

}

function chk_domain() {
	

	var domain = document.location.href;

	var newdomain = "";

	newdomain = domain.replace("http:\/\/155.155.4.48:81\/football","http:\/\/155.155.4.48:95");

	newdomain = newdomain.replace("http:\/\/210.177.167.32:81\/football","http:\/\/210.177.167.32:95");

	newdomain = newdomain.replace("http:\/\/on.cc\/football","http:\/\/football.on.cc");

	newdomain = newdomain.replace("http:\/\/www.on.cc\/football","http:\/\/football.on.cc");

	if (!(newdomain == domain)) {

		document.location.href = newdomain;

	}

}

chk_domain();

document.write('<div id=contentAdLayer style=position:absolute;visibility:hidden;left=20px;top=0px;width=0;height=0;Z-index:10; onmouseOver="showimage2(this);" onmouseOut="hideimage2(this)"><span id="contentAdLink"><a href="http://210.177.167.21/phpAdsNew/adclick.php?bannerid=2811" target="_new"><img src="/football/adv/120x90_a.gif" border=0></a></span></div>');

//New function :S

var curSubNav = "";
var siteRootPath = "/football/";

function init_mainNav()
{
	var so = new SWFObject(siteRootPath+"img/nav.swf?subnav_name="+curSubNav+"&root_path="+siteRootPath, "menu", "970", "122", "8", "#000000");
	so.addParam("wmode", "transparent");
	so.write("mainNav");
}

function print_disclaimer() {
	var disclaimer = '波經所提供之資訊概以較新版本為準，並已力求精確可靠，但不保證絕對無誤。<br>資料只供參考用途，如有錯漏而導致閣下蒙受損失，本公司概不負責。';
	document.write(disclaimer);
}

function print_oddsSubMenu()
{
	var subMenuHTML = '<div class="subMenu"><a href="'+siteRootPath+'tip/current/fbtipa0001x0.html"><img src="'+siteRootPath+'img/odds/btnColumnist.gif" border="0" width="91" height="28" align="absmiddle" /></a> <a href="#" onclick="javascript:popup_calculator();"><img src="'+siteRootPath+'img/odds/btnCalculator.gif" border="0" width="100" height="28" align="absmiddle" /></a></div>';
	document.write(subMenuHTML);
}

function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) - 10;
	var wint = 0;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	win.focus();
}

function popup_email(link) {
	popFixWindow(440, 390, siteRootPath+'emailToFirend.html?articleLink='+link);
}

function popup_calculator()
{
	popFixWindow(440, 370, siteRootPath+'calculator.html');
}

function popup_smsDetails(newsLink)
{
	popFixWindow(440, 370, newsLink);
}

function popFixWindow(pWidth, pHeight, pURL)
{
	var padding = 10;
	var posX = (screen.availWidth - (pWidth + padding + 10));
	var posY = padding;
	var popupWin = window.open(pURL,'_blank','scrollbars=yes,resizable=no,width='+pWidth+',height='+pHeight+',left='+posX+',top='+posY);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function QueryString (name,value) {
	this.name = name;
	this.value = value;
	this.getValue = function () { return this.value; };
	this.getName = function () { return this.name; };
}

function getParameter () {
	var qs = location.search.replace("?","");
	var tmpItems = qs.split("&");
	var pairs = Array();
	
	for (var i=0;i<tmpItems.length;i++) {
    var tmpPairs = tmpItems[i].split("=");

    pairs[i] = new QueryString(tmpPairs[0],tmpPairs[1]);	        
	}
	
	return pairs;
}

function findParameter(pairs,name) {
	for (var i=0; i<pairs.length; i++) {
		if (pairs[i].getName() == name) {
			return pairs[i].getValue();
		}
	}
	
	return;
}


//New function :E

// -->

