var tearpageClosedURL="tearpageClosed.swf"
var tearpageClosedWidth=100
var tearpageClosedHeight=100
var tearpageOpenedURL="tearpageOpened.swf"
var tearpageOpenedWidth=675
var tearpageOpenedHeight=450

document.ns = navigator.appName == "Netscape"
function tearpage_load()
{
if (navigator.appName == "Netscape")
{document.tearpagelogo.pageY=pageYOffset;
document.tearpagelogo.pageX=0;
tearpage_move();
}
else
{
tearpagelogo.style.top=document.body.scrollTop;
tearpagelogo.style.right=document.body.clientWidth-tearpageClosedWidth;
streamlayer.style.top=document.body.scrollTop;
streamlayer.style.right=document.body.clientWidth-tearpageOpenedWidth;
tearpage_move();
}
}
function tearpage_move()
{
if(document.ns)
{
document.tearpagelogo.top=pageYOffset
document.tearpagelogo.right=document.body.clientWidth-tearpageClosedWidth;
setTimeout("tearpage_move();",100)
}
else
{
tearpagelogo.style.top=document.body.scrollTop;
tearpagelogo.style.right=document.body.clientWidth-tearpageClosedWidth;
streamlayer.style.top=document.body.scrollTop;
streamlayer.style.right=document.body.clientWidth-tearpageOpenedWidth;

setTimeout("tearpage_move();",100)
}
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)

function show_tearpage()
{
	tearpagelogo.style.visibility='hidden';
	streamlayer.style.visibility='visible';
	window.document.tearpagehide.Play();
}

function close_tearpage()
{
	tearpagelogo.style.visibility='visible';
	streamlayer.style.visibility='hidden';
}
function tearpage_open()
{	
	document.write("<div id=tearpagelogo style='position: absolute;width:64;top:300;visibility: hidden;z-index: 1'><EMBED src='"+tearpageClosedURL+"' quality=high  WIDTH="+tearpageClosedWidth+" HEIGHT="+tearpageClosedHeight+" TYPE='application/x-shockwave-flash' wmode='transparent' id='tearpageicon'></EMBED></div>"+"<div id=streamlayer style='position: absolute;visibility:hidden;z-index:30'><EMBED src='"+tearpageOpenedURL+"' quality=high  WIDTH="+tearpageOpenedWidth+" HEIGHT="+tearpageOpenedHeight+" TYPE='application/x-shockwave-flash' wmode='transparent' id='tearpagehide' name='tearpagehide'></EMBED></div>");
	tearpage_load();
	
}

tearpage_open();
//第一次运行时，打开撕页广告
setTimeout("show_tearpage()",1000);
