var imgheight_close
document.ns = navigator.appName == "Microsoft Internet Explorer"
var bdy = (document.documentElement && document.documentElement.clientWidth)?document.documentElement:document.body;

window.screen.width>800 ? imgheight_close=350:imgheight_close=350
 function myload()
{
myright.style.top=bdy.scrollTop+bdy.offsetHeight-imgheight_close;
myright.style.left=bdy.offsetWidth-150;
mymove();
}
 function mymove()
 {
 myright.style.top=bdy.scrollTop+bdy.offsetHeight-imgheight_close;
 myright.style.left=bdy.scrollLeft+bdy.offsetWidth-160;
 setTimeout("mymove();",50)
 }

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 close_float_right(){
	myright.style.visibility='hidden';
}

if(document.ns){
document.write("<div id='myright' style='position: absolute;width:105;visibility: visible;z-index: 1'>\
<table border='0' cellpadding='0' cellspacing='0'><tr><td>");

if(ad_float_right_type!="swf")
document.writeln("<table id=\"01\" width=\"136\" height=\"266\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td><img src=\"http:\/\/www.shanhaijian.com\/Html\/images\/pp_r2_c2.gif\" width=\"138\" height=\"123\"><\/td><\/tr><tr><td><a href=\"http:\/\/wpa.qq.com\/msgrd?v=3&uin=1247057002&Site=山海间视觉摄影&Menu=yes\"><img src=\"http:\/\/www.shanhaijian.com\/Html\/images\/pp_r3_c2.gif\" width=\"138\" height=\"31\" border=\"0\"><\/a><\/td><\/tr><tr><td><a href=\"http:\/\/15907.kf.qycn.com\/vclient/chat\/?websiteid=15907&visitorid=26535103&leavemsgclerkid=0&groupid=0&sessionid=2132850414829220&clerkid=0&clienturl=http:\/\/www.shanhaijian.com\"><img src=\"http:\/\/www.shanhaijian.com\/Html\/images\/pp_r4_c2.gif\" width=\"138\" height=\"31\" border=\"0\"><\/a><\/td><\/tr><tr><td><a href=\"http:\/\/www.shanhaijian.com\/About.asp?ID=27\"><img src=\"http:\/\/www.shanhaijian.com\/Html\/images\/pp_r5_c2.gif\" width=\"138\" height=\"28\" border=\"0\"><\/a><\/td><\/tr><tr><td><a href=\"http:\/\/bbs2.shanhaijian.com\/forumdisplay.php?fid=5\"><img src=\"http:\/\/www.shanhaijian.com\/Html\/images\/pp_r6_c2.gif\" width=138 height=31 border=\"0\"><\/a><\/td><\/tr><tr><td><A onclick=CloseQQ() href=\"javascript:close_float_right();void(0);\" shape=circle coords=91,16,12><IMG height=23 src=\"http:\/\/www.shanhaijian.com\/Html\/images\/pp_r7_c2.gif\" width=138 border=0><\/a><\/td><\/tr><\/table>");
else{
	document.write("<div id='ad_float_right_div'></div>");
	var objFlash = new sinaFlash(ad_float_right_src, "ad_float_right", "129", "206", "7", "#ffffff");
	objFlash.addParam("quality", "high");
	objFlash.addParam("wmode", "opaque");
	objFlash.write("ad_float_right_div");
}

document.write("</td></tr><tr><td width='140' style='text-align:right;padding-top:2px;padding-right:3px;'></td></tr>\
</table>\
</div>");

myload()
}
function webopen(url)
{
window.open(url,'','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=555,height=186,left=250,top=200')	
}

