 function ChangeLangTo(tolang)
 {
      var loc = location.href;
      if(tolang == 'en')
      {
      	window.location =loc.replace("/tc/","/en/");
      }
      else
      {
      	window.location =loc.replace("/en/","/tc/");
      }

 }
function print_bottom() {
	//var bottom = "Best viewed with IE 5.5 or above and 1024 x 768 resolution are recommended.<br>Copyright &copy; 2007 Orisun.com (HK) Ltd. All rights reserved.";
	//document.write(bottom);
	document.write("<script>var pub='corp_eng';</script>");
	document.write("<script>pyear(pub);</script>");
}

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 print_bottomLink(){
	var bottom_link = '<a class="LowLink" href="http://life.orisun.com/life/disclaimer/index.html" class="LowLink" target="_blank">免責聲明  | </a>'+
	                  '<a href="http://orisun.com/orimain/orisunfaq/index.html" target="_blank" class="LowLink"></a>'+
	                  '<a class="LowLink" href="https://orisun.com/cgi-bin/mem/newuser_terms.cgi?came_from=OL" target="popupdetail">登記成為orisun.com會員 | </a>'+
	                  '<a href="http://orisun.com/edm/accept.html" class="LowLink" target="_blank">免費會員尊訊 | </a>'+	                  
	                  '<a href="http://orisun.com/faq/hkfonts_bottom.html" class="LowLink" target="_blank">下載字庫 | </a>'+
	                  '<a class="LowLink" href="http://orisun.com/ratecard/" target="_blank">廣告查詢 | </a>'+
	                  '<a class="LowLink" href="http://orisun.com/copyright/" target="_blank">版權收費機制 | </a>' +
	                  '<a class="LowLink" href="http://classified.on.cc/list.html?cid=15" target="_blank">招聘人才 | </a>'+
	                  '<a class="LowLink" href="http://orisun.com/orimain/contactus/contactus.html" target="_blank">聯絡我們 | </a>'+
	                  '<a class="LowLink" href=\'javascript:popupwin("http://orisun.com/orimain/contactus/index.html", "501", "421");\'>意見查詢 | </a>'+
	                  '<a class="LowLink" href="http://orisun.com/orimain/aboutus/aboutus.html" target="_blank">關於orisun.com |</a>'+
	                  '<a href="http://orisun.com/orimain/orisunfaq/index.html" target="_blank" class="LowLink"> 常見問題</a>'+
	                  '<a class="LowLink" href="#"></a>';
	                  
	document.write(bottom_link);
	
}
<!--if (! (RN))
 {
        var RN = new String (Math.random());
        var RNS = RN.substring (2,11); }


function banner (page, position)
{
        var height=60;
        var sec=page.substring(0,2);

         if (position == "x20")  {
                width="728";
        }
        else if ( (position == "Right") || (position == "Right1"))  {
                width="90";
                height="110";
        }
        else {
                width="468";
        }

        var _version='11';
        var site = 'www.orisun.com';
        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')
         {
         document.write('<a href ="http://orisun.com/odnreaders/" target="_blank"><img src="/adv/odnreaders.gif" width=103 height=60 border =0></a>');
         }
        else if (position == 'Bottom1')
         {
         document.write('<a href ="http://orisun.com/racing/" target="_blank"><img src="/adv/racing.gif" width=103 height=60 border =0></a>');
          }
        else if (position == 'Bottom2'){
        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')
         {
        document.write('<a href ="http://the-sun.com.hk" target="_blank"><img src="/adv/sun.gif" width=728 height=90 border =0></a>');
        }
        else if (position == 'BottomRight')
         {
        document.write('<a href ="http://orisun.com/" 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 ('\<\!-- --\>');
                document.write ('\<\/SCRIPT\>');
                document.write ('\<\!-- --\>');
                }
}

function phpBanner (zone){
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://210.177.167.21/phpAdsNew/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:"+zone);
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
}

//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";
//	} 
//}

// -->
