document.write('<script lang="javascript" src="/js/platform.js"></script>\n');
document.write('<script lang="javascript" src="/odnmain/js/common.js"></script>\n');
document.write('<script type="text/javascript" src="http://home.on.cc/adv/web/corp/js/unicorp_v2.js"></script>');
document.title = '昔日東方 - 東方日報';
//ODN FIXAD
var adMap = new Object();
//Top
adMap["com,top"]  = 1;
adMap["fnd,top"]  = 1;
adMap["polling,top"] 	= 1;
adMap["srch,top"]  = 1;
adMap["hot,top"]  = 1;
adMap["hrs,top"]  = 1;

//x01
adMap["new,x01"]  = 1;
adMap["fin,x01"]  = 1;
adMap["ent,x01"]  = 1;
adMap["spt,x01"]  = 1;
adMap["fea,x01"]  = 1;

//x25
adMap["new,x25"]  = 1;
adMap["fin,x25"]  = 1;
adMap["ent,x25"]  = 1;
adMap["spt,x25"]  = 1;
adMap["fea,x25"]  = 1;
adMap["com,x25"]  = 1;
adMap["fnd,x25"]  = 1;
adMap["polling,x25"] 		= 1;
adMap["srch,x25"]  = 1;
adMap["hot,x25"]  = 1;
adMap["hrs,x25"]  = 1;

//Right
adMap["new,right"]  = 1;
adMap["fin,right"]  = 1;
adMap["ent,right"]  = 1;
adMap["spt,right"]  = 1;
adMap["fea,right"]  = 1;
adMap["com,right"]  = 1;
adMap["fnd,right"]  = 1;
adMap["polling,right"] 		= 1;
adMap["srch,right"]  = 1;
adMap["hot,right"]  = 1;
adMap["hrs,right"]  = 1;


if (! (RN))
{
	var RN = new String (Math.random());
	var RNS = RN.substring (2,11);
}

var fixAdServer = "ad2.on.cc";

function showbanner (page, position, width, height) {
			var _version='11';
			var site = 'www.orientaldaily.com.hk';
			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;

			var isFixAd = 0 ;									//RECORD RECEIVE PAGE AND POSITION IS FIXAD OR BANNER AD ,
																				//0 = BANNER AD , 1 = FIXAD
																				//DEFAULT IS BANNER AD (0)

			index = page.indexOf("_");				//GET THE "_" TO SPLIT THE PAGE eg adult_h , news_h , news_i
			if(index > 0){										//IF "_" FIND IN THE PAGE
				page = page.substring(0,index);	//GET THE STRING BEFORE "_" eg . adult , news
			}

			check = page +','+position.toLowerCase();
			if (adMap[check]){								//CHECK WHETHER THE PAGE AND POSITION IS FIXAD OR BANNER AD
				isFixAd = 1;
			}

			if(isFixAd){

				var advPosition = position.toLowerCase();
				eval("var jsfile = 'odn_" + page + "_" + advPosition +"'");
				document.write("<script language=Javascript src='http://"+ fixAdServer +"/html/"+jsfile+".js'></script>");
			}
			else{

				if (position == 'TopLeft')
				{

		//  document.write('<a href ="http://on.cc/odnreaders/" target="_blank"><img src="/adv/odn_topleft.gif" width=90 height=110 border =0></a>');
		  document.write('<a href ="http://210.177.167.146/odnmain/" target="_blank"><img src="/adv/odnpic02.gif" width=90 height=110 border =0></a>');

          }

        else if (position == 'Middle1')

         {

          document.write('<a href ="http://www.orientaldaily.com.hk/adv/index.html"><img src="/adv/odn_middle1.gif" width=60 height=60 border =0></a>');

          }

        else if (position == 'Middle2')

         {

          document.write('<a href ="http://on.cc/sup/odn0917_click1.html" target="_blank"><img src="/adv/odn_middle2.gif" width=468 height=60 border =0></a>');

          }

        else if (position == 'Middle3')

         {

          document.write('<a href ="http://www.the-sun.com.hk/" target="_blank"><img src="/adv/odn_middle3.gif" width=60 height=60 border =0></a>');

          }

        else if (position == 'Bottom1')

         {

          document.write('<a href ="http://the-sun.com.hk/recruit/index.html" target="_blank"><img src="/adv/recruit.gif" width=103 height=60 border =0></a>');

          }

        else if (position == 'Bottom2')

         {

          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 == 'Bottom3')

         {

          document.write('<a href ="http://on.cc/" target="_blank"><img src="/adv/epaper.gif" width=103 height=60 border =0></a>');

          }

				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 ('\<\/SCRIPT\>');
					document.write ('\<\!-- --\>');
				}
		} //ELSE OF if(isFixAd)
}

function resolution() {
        var message = "本 網 頁 的 最 佳 閱 讀 效 果 為 1024 x 768 解 晰 度<br>";
        document.write(message);
}
function print_bottom() {
var html = '';
html = '<div id="bottomNavCTN">' +
	'<div class="layout">' +
		'<div class="contentBox clear">' +
        '<ul class="clearList menu">' +
        	'<li><a href="/cnt/news/">要聞港聞</a></li>' +
            '<li><a href="/cnt/china_world/">兩岸國際</a></li>' +
            '<li><a href="/cnt/finance/">財經</a></li>' +
            '<li><a href="/cnt/entertainment/">娛樂</a></li>' +
            '<li><a href="/cnt/lifestyle/">副刊</a></li>' +
            '<li><a href="/cnt/adult/">男極圈</a></li>' +
            '<li><a href="/cnt/sport/">體育</a></li>' +
            '<li><a href="http://racing.on.cc/" target="_blank">馬經</a></li>' +
            '<li><a href="http://football.on.cc/" target="_blank">波經</a></li>' +
            '<li><a href="/cnt/commentary/">社論專欄</a></li>' +
            '<li><a href="/cnt/charity/">慈善基金</a></li>' +
            '<li><a href="/cnt/sitemap/">新聞總覽</a></li>' +
            '<li><a href="/archive/">昔日東方</a></li>' +
        	'<li><a href="http://orientaldaily.on.cc">今日東方</a></li>' +
        '</ul>' +
        '<div class="rightPanel">' +
        '<ul class="clearList menu">' +
            '<li class="first"><a href="#top_arc" class="goTop">返回頁頂</a></li>' +
        '</ul>' +
        '</div>' +
        '</div>' +
    '</div>' +
'</div>';

html += '<div id="footerCTN">' +
'<div class="layout">' +
'<div class="contentBox">';
document.write(html);
document.write('<div class="menu">');
pbmenu('odn');
document.write('</div>');
document.write('<div class="slogan">');
document.write($ONCC.footer.getSlogan('odn'));
document.write('</div>');
document.write('<div class="copyright">');
pyear('odn');
document.write('</div>');


html = '</div>' +
'</div>' +
'</div>';
document.write(html);
	/*
	document.write("<script>var pub='odn';</script>");
	document.write("<script>pyear(pub);</script>");
	*/
	// CONTENT TEXT AD
	//chgContent();
}
function print_bottom_menu() {
	/*
	document.write("<script>var pub='odn';</script>");
	document.write("<script>pbmenu(pub);</script>");
	*/
}

function print_footer_text() {
	/*
	var footer_text = '東方日報必然首選 香港人的報紙 連續33年全港銷量第一';
        document.write(footer_text);
	*/
}

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);
}
function formaction2(currDate,sect,file) {
abc = '';
kk = '<title></title><body  bgcolor="white"><center><a href=javascript:top.window.close()><img src=/photo/'+ currDate + '/' + sect +'/' + file + ' border=0></a></center></body></html>';
msgWin = window.open(abc, 'formwin', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width=500,height=500');
msgWin.focus();
msgWin.document.write(kk);
msgWin.document.close();
}

function photoPopup(currDate,  sect,  file) {
	var popupURLStr = '';
	var htmlpath = window.location.pathname;
	var sub = htmlpath.charAt(htmlpath.indexOf(sect+'_')+(sect+'_').length);
	popupURLStr += '/photoPopup.html?c='+currDate+'&s='+sect+'&f='+file+'&sub='+sub+'&r='+(Math.random()*10000000000000000);
	var msgWin = window.open(popupURLStr, 'formwin', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes');
	msgWin.focus();
	msgWin.document.close();
}

function overture_search(id, numOfCol) {
	if (id != null) {
		document.write( '<SCRIPT type="text/javascript" language="javascript" ');
		//document.write( 'SRC="http://cmhtml.hk.overture.com/d/search/p/standard/hk/js/flat/ctxt/rlb/?accountFilters=orientaldaily_hk&Partner=orisun_hk_ctxt&ctxtId=' + id + '&maxCount=' + numOfCol + '">');
		document.write( 'SRC="http://cmh.hk.overture.com/js_flat_1_0/?config=3269468278&source=orisun_hk_ctxt&ctxtId=' + id + '&maxCount=' + numOfCol + '">');		
		document.write( '</SCRIPT>');
	}
}
function print_overture_result() {
	var i=6;
	if (typeof(zSr) != "undefined") {
		document.write('<table bgcolor="#CCCCCC" cellpadding="5" cellspacing="1" ><tr valign="top">');
		while (i < zSr.length) {
			var descr = zSr[i++]; // listing description
			var unused1 = zSr[i++]; // (ignore)
			var clickURL = zSr[i++]; // listing link
			var title = zSr[i++]; // listing title
			var sitehost = zSr[i++]; // advertiser’s domain name
			var unused2 = zSr[i++]; // (ignore)
			document.write('<td bgcolor="#EEF7FF"><P><A TARGET="_new" HREF="' + clickURL + '">');
			document.write('<STRONG>' + title + '</STRONG></A>');
			document.write('<BR>' + descr + '<BR>');
			document.write('<I>(' + sitehost + '</I>)</P></td>');
		}
	document.write('</tr></table>');
	}
}


// 20060807, Kin, flashplayer version control
//var MM_contentVersion = 8;
//var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
//
//if ( plugin ) {
//	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
//	for (var i = 0; i < words.length; ++i) {
//		if (isNaN(parseInt(words[i])))
//			continue;
//		var MM_PluginVersion = words[i]; 
//	}
//	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
//} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
//	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
//	document.write('on error resume next \n');
//	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
//	document.write('</SCR' + 'IPT\> \n');
//}
//
//if (!(MM_FlashCanPlay)) {
//	var answer = confirm ("您需要安裝最新版本的 Macromedia Flash Player 才可正常瀏覽此網頁，是否立即進行安裝？");
//	if (answer) {
//		window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P2_Platform=Win32&P3_Browser_Version=MSIE";
//	} 
//}

document.write('<script src="http://ad2.on.cc/html/AC_RunActiveContent.js"></script>\n');

function clickTAG_120x90(){
	window.open('http://ad1.on.cc/phpAdsNew/adclick.php?bannerid=3575');
}

//s:2009 ODN Revamp
//e:2009 ODN Revamp