// JavaScript Document
function showFlash(Fwidth,FHeight,THeight,strImgPath,strLinks,strImgTitle,strVar){
	var focus_width= Fwidth //Flash图片宽度
	var focus_height= FHeight //Flash图片高度
	var text_height= THeight //标题文字高度
	var swf_height = focus_height+text_height//Flash高度=图片高度+文字高度
					
	/*
	关键：图片、链接、文字传输参数设置;以“|”号分隔
	显示的图片序数以pics图片张数为准，links、texts可以为空或少于pics数
	但可能会导至链接或标题出错
	*/
	var pics = strImgPath
			
	var links = strLinks
	
	//window.alert(pics)
							
	var texts = strImgTitle
								
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
	document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+strVar+'flash/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
	document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	//关键：参数传入
	document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
	document.write('<embed src="'+strVar+'flash/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

document.write('<div id="img" style="position:absolute;z-index=99;">');
document.write('<img src="/images/pf.gif" alt="img" onClick="pause_resume();" style="cursor:pointer"></div>');
 
 

<!-- Begin 
var xPos = document.body.clientWidth-20; 
var yPos = document.body.clientHeight/2; 
var step = 1; 
var delay = 30; 
var height = 0; 
var Hoffset = 0; 
var Woffset = 0; 
var yon = 0; 
var xon = 0; 
var pause = true; 
var interval; 
img.style.top = yPos; 
function changePos() { 
width = document.body.clientWidth; 
height = document.body.clientHeight; 
Hoffset = img.offsetHeight; 
Woffset = img.offsetWidth; 
img.style.left = xPos + document.body.scrollLeft; 
img.style.top = yPos + document.body.scrollTop; 
if (yon) { 
yPos = yPos + step; 
}else { 
yPos = yPos - step; 
} 
if (yPos < 0) { 
yon = 1; 
yPos = 0; 
} 
if (yPos >= (height - Hoffset)) { 
yon = 0; 
yPos = (height - Hoffset); 
} 
if (xon) { 
xPos = xPos + step; 
}else { 
xPos = xPos - step; 
} 
if (xPos < 0) { 
xon = 1; 
xPos = 0; 
} 
if (xPos >= (width - Woffset)) { 
xon = 0; 
xPos = (width - Woffset); 
} 
} 

function start() { 
img.visibility = "visible"; 
interval = setInterval('changePos()', delay); 
} 
function pause_resume() { 
	
	window.open("http://swt.zoosnet.net/LR/chatwin.aspx?id=swt37039396&k=6339467558291275007409&lng=cn&nk=6339467558291275007409&p=http%3A//www.bjlrwh.com/&rf1=&rf2=&e=%E6%9D%A5%E8%87%AA%E9%A6%96%E9%A1%B5%E7%9A%84%E5%AF%B9%E8%AF%9D&d=1259051451734","_blank");
} 
start(); 
// End --> 

