<!--
var showad = true;
var Toppx = 220;			//上端位置
var AdDivW = 91;		//?度
var AdDivH = 105;		//高度
var PageWidth = 850;	//?面多少?度象素下正好不出?左右???
var MinScreenW = 1024;	//?示?告的最小屏幕?度象素

var ClosebuttonHtml = '<div align="right" style="position: absolute;top:0px;right:0px;margin:-16px 0 0 0;padding:2px;z-index:2000;"><a href="javascript:;" onclick="hidead()" style="color:#000000;text-decoration:none;font-size:12px;">關閉</a></div>'

var AdContentHtml_r = '<div align="center"><a target="_blank" href="/news/news1215_1.htm"><img border="0" src="/images/price_a1.gif" width="91" height="105"></a></div>';
var AdContentHtml_l = '<div align="center"><a target="_blank" href="/news/news1215_2.htm"><img border="0" src="/images/price_a2.gif" width="91" height="105"></a></div>';
document.write ('<div id="Javascript.LeftDiv" style="position: absolute;border: 0px solid #336699;background-color:#EEEEE2;z-index:1000;width:'+AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml_r+'</div></div>');
document.write ('<div id="Javascript.RightDiv" style="position: absolute;border: 0px solid #336699;background-color:#EEEEE2;z-index:1000;width:'+AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml_l+'</div></div>');
function scall(){
	if(!showad){return;}
	if (window.screen.width<MinScreenW){
		alert("抱歉,\n\n您的電腦解析度小於"+MinScreenW+",無法顯示測邊廣告");
		showad = false;
		document.getElementById("Javascript.LeftDiv").style.display="none";
		document.getElementById("Javascript.RightDiv").style.display="none";
		return;
	}
	var Borderpx = ((window.screen.width-PageWidth)/2-AdDivW)/2;

	document.getElementById("Javascript.LeftDiv").style.display="";
	document.getElementById("Javascript.LeftDiv").style.top=document.body.scrollTop+Toppx;
	document.getElementById("Javascript.LeftDiv").style.left=document.body.scrollLeft+Borderpx;
	document.getElementById("Javascript.RightDiv").style.display="";
	document.getElementById("Javascript.RightDiv").style.top=document.body.scrollTop+Toppx;
	document.getElementById("Javascript.RightDiv").style.left=document.body.scrollLeft+document.body.clientWidth-document.getElementById("Javascript.RightDiv").offsetWidth-Borderpx;
}

function hidead()
{
	showad = false;
	document.getElementById("Javascript.LeftDiv").style.display="none";
	document.getElementById("Javascript.RightDiv").style.display="none";
}
window.onscroll=scall;
window.onresize=scall;
window.onload=scall;
//-->
