﻿
// Common Footer FlashArea Script : start
if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){
    cot_t1_DOCtp="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}";
}else{
    cot_t1_DOCtp="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}";
}
var cot_tl_bodyCSS='* html {background:url() fixed;background-position: right bottom;}';
var foo_fixedCSS='#foo_fixed{position:fixed;';
var foo_fixedCSS=foo_fixedCSS+'_position:absolute;';
var foo_fixedCSS=foo_fixedCSS+'z-index:100;';
var foo_fixedCSS=foo_fixedCSS+'width:100%;';
var foo_fixedCSS=foo_fixedCSS+'text-align:center;';
var foo_fixedCSS=foo_fixedCSS+'bottom:0px;';
var foo_fixedCSS=foo_fixedCSS+'right:0px;';
var foo_fixedCSS=foo_fixedCSS+'clip:rect(0 100% 100% 0);';
var foo_fixedCSS=foo_fixedCSS+cot_t1_DOCtp;
document.write('<style type="text/css">'+cot_tl_bodyCSS+foo_fixedCSS+'</style>');
// Common Footer FlashArea Script : end

function vodview(vlink){
	var vod_tag = "";
	vod_tag = '<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" id="Player" type="application/x-oleobject" width="320" height="280" standby="Loading Microsoft Windows Media Player components..."> ';
	vod_tag += '<param name="FileName" value="' + vlink + '">';
	vod_tag += '<param name="enablecontextmenu" value="0">';
	vod_tag += '<param name="ShowStatusBar" value="true">';
	vod_tag += '<embed src="' + vlink + '" quality="high" width="320" height="280" wmode="transparent" allowScriptAccess="sameDomain" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>';
	document.write(vod_tag);

}

//--Main Flash
function mainflash(fid,fnm,wid,hei,bgc,wmd) {
	var flash_tag = "";
	flash_tag = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+wid+'" height="'+hei+'" id="'+fid+'" align="middle">';
	flash_tag +='<param name="allowScriptAccess" value="always" />';
	flash_tag +='<param name="allowFullScreen" value="false" />';
	flash_tag +='<param name="movie" value="'+fnm+'" />';
	flash_tag +='<param name="quality" value="high" />';
	flash_tag +='<param name="bgcolor" value="'+bgc+'" />';
	flash_tag +='<param name="wmode" value="'+wmd+'" />';
	flash_tag +='<embed src="'+fnm+'" quality="high" bgcolor="'+bgc+'" wmode="'+wmd+'" width="'+wid+'" height="'+hei+'" name="'+fid+'" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	flash_tag +='</object>';
	
	document.write(flash_tag);
}



function Win_pop(newwin,winname,w,h) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'width='+w+',height='+h+',top='+wint+',left='+winl+',resizable=no,scrollbars=no,toolbars=no,status=no,menu=no';
  win = window.open(newwin, winname, winprops)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
