function load_flash(path,w,h){
	document.write('<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height='+h+' width='+w+' classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 >') ;
    document.write('<param name="movie" value='+path+' />') ;
    document.write('<param name="quality" value="high" />') ;
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />') ;
	document.write('<param name="swLiveConnect" value="true" />') ;
    document.write('<embed src='+path+' wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowScriptAccess="sameDomain" swLiveConnect="true" width='+w+' height='+h+'></embed>') ;
    document.write('</object>') ;
}
function load_flash_pic(path,focus_width,focus_height,text_height,pics,links,texts){
	//path为动画路径,focus_width为动画宽度,text_height为动画底部文本高度,pics为图片路径,links为鼠标点击链接,texts为图片说明
	var swf_height = focus_height+text_height;
	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">') ;
	document.write('<param name="swLiveConnect" value="true" />') ;
	document.write('<param name="movie" value="'+path+'">') ;
	document.write('<param name="quality" value="high">') ;
	document.write('<param name="menu" value="false">') ;
	document.write('<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="'+path+'" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" swLiveConnect="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
	/*
	//用法
	<script type="text/javascript">
		imgUrl1="images/1.jpg";
		imgtext1="中保康联人寿保险有限公司"
		imgLink1=escape("");
		imgUrl2="images/2.jpg";
		imgtext2="前沿私人酒店集团"
		imgLink2=escape("");
		imgUrl3="images/3.jpg";
		imgtext3="英国保诚集团"
		imgLink3=escape("");
		imgUrl4="images/4.jpg";
		imgtext4="交银施罗德基金管理有限公司"
		imgLink4=escape("");
		var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4
		var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4
		var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4
		load_flash_bg("images/focus.swf",240,200,18,pics,links,texts) ;
	</script>
	*/
}
function load_flash_flv(path,focus_width,focus_height,file_list,file_title,logo_path){
	var swf_height = focus_height;
	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" id="flv" width="'+ focus_width +'" height="'+ swf_height +'">');
	document.write('<param name="allowScriptAccess" value="sameDomain">') ;
	document.write('<param name="swLiveConnect" value="true" />') ;
	document.write('<param name="allowFullScreen" value="true" />') ;
	document.write('<param name="movie" value="'+path+'">') ;
	document.write('<param name="quality" value="high">') ;
	document.write('<param name="menu" value="false">') ;
	document.write('<param name="wmode" value="opaque">');
	document.write('<param name="FlashVars" value="vcastr_file='+file_list+'&vcastr_title='+file_title+'&IsAutoPlay=0&IsShowBar=1&LogoUrl='+logo_path+'&DefaultVolume=100&IsContinue=0">');
	document.write('<embed src="'+path+'" wmode="opaque" FlashVars="vcastr_file='+file_list+'&vcastr_title='+file_title+'&IsAutoPlay=0&IsShowBar=1&LogoUrl='+logo_path+'&DefaultVolume=100&IsContinue=0" menu="false" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" swLiveConnect="true" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
	/*参数说明*/
	/*
	vcastr_file 方法2传递影片flv文件地址参数，多个使用|分开 空 
	vcastr_title 影片标题参数，多个使用|分开，与方法2配合使用 空 
	vcastr_xml 方法3 传递影片flv文件地址参数，样板参考 http://www.ruochi.com/product/vcastr2/vcastr.xml  vcastr.xml 
	IsAutoPlay 影片自动播放参数：0表示不自动播放，1表示自动播放 0 
	IsContinue 影片连续播放参数：0表示不连续播放，1表示连续循环播 1 
	IsRandom 影片随机播放参数：0表示不随机播放，1表示随机播放 0 
	DefaultVolume 默认音量参数 ：0-100 的数值，设置影片开始默认音量大小 100 
	BarPosition 控制栏位置参数 ：0表示在影片上浮动显示，1表示在影片下方显示 0 
	IsShowBar 控制栏显示参数 ：0表示不显示；1表示一直显示；2表示鼠标悬停时显示；3表示开始不显示，鼠标悬停后显示 2 
	BarColor 播放控制栏颜色，颜色都以0x开始16进制数字表示 0x000033 
	BarTransparent 播放控制栏透明度 60 
	GlowColor 按键图标颜色，颜色都以0x开始16进制数字表示 0x66ff00 
	IconColor 鼠标悬停时光晕颜色，颜色都以0x开始16进制数字表示 0xFFFFFF 
	TextColor 播放器文字颜色，颜色都以0x开始16进制数字表示 0xFFFFFF 
	LogoText 可以添加自己网站名称等信息(英文) 空 
	LogoUrl 可以从外部读取logo图片,注意自己调整logo大小,支持图片格式和swf格式 空 
	EndSwf 影片播放结束后,从外部读取swf文件，可以添加相关影片信息，影片分享等信息，需自己制作 空 
	BeginSwf 影片开始播放之前,从外部读取swf文件，可以添加广告，或者网站信息，需自己制作 空 
	IsShowTime 是否显示时间 : 0表示不显示时间，1表示显示时间 1 
	BufferTime 影片缓冲时间，单位（秒） 2
	此内容信息转载自〖胶南信息港〗,最具人性化的网站尽在胶南信息港！原信息URL：http://www.jiaonan.net/html/blog/1/27665.htm
	*/
}
function load_flash_flv_xml(path,focus_width,focus_height,xml_path){
	var swf_height = focus_height;
	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" id="flv" width="'+ focus_width +'" height="'+ swf_height +'">');
	document.write('<param name="allowScriptAccess" value="sameDomain">') ;
	document.write('<param name="swLiveConnect" value="true" />') ;
	document.write('<param name="allowFullScreen" value="true" />') ;
	document.write('<param name="movie" value="'+path+'">') ;
	document.write('<param name="quality" value="high">') ;
	document.write('<param name="menu" value="false">') ;
	document.write('<param name="wmode" value="opaque">');
	document.write('<param name="FlashVars" value="vcastr_xml='+xml_path+'">');
	document.write('<embed src="'+path+'" wmode="opaque" FlashVars="vcastr_xml='+xml_path+'" menu="false" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" swLiveConnect="true" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
	document.write('</object>');
}
function load_movie_window(w,h,path){
	document.write('<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="movie_window" width="'+w+'" height="'+h+'">') ;
	document.write('<param name="URL" value="'+path+'">') ;
	document.write('<param name="rate" value="1">') ;
	document.write('<param name="balance" value="0">') ;
	document.write('<param name="currentPosition" value="0">') ;
	document.write('<param name="defaultFrame" value>') ;
	document.write('<param name="playCount" value="1">') ;
	document.write('<param name="autoStart" value="-1">') ;
	document.write('<param name="currentMarker" value="0">') ;
	document.write('<param name="invokeURLs" value="-1">') ;
	document.write('<param name="baseURL" value>') ;
	document.write('<param name="volume" value="100">') ;
	document.write('<param name="mute" value="0">') ;
	document.write('<param name="uiMode" value="full">') ;
	document.write('<param name="stretchToFit" value="0">') ;
	document.write('<param name="windowlessVideo" value="-1">') ;
	document.write('<param name="enabled" value="-1">') ;
	document.write('<param name="enableContextMenu" value="-1">') ;
	document.write('<param name="fullScreen" value="0">') ;
	document.write('<param name="SAMIStyle" value>') ;
	document.write('<param name="SAMILang" value>') ;
	document.write('<param name="SAMIFilename" value>') ;
	document.write('<param name="captioningID" value>') ;
	document.write('<param name="enableErrorDialogs" value="0">') ;
	document.write('</object>') ;
}
function change_movie(id,path){
	var videoWindow=document.getElementById(id);
	videoWindow.URL=path;
}
function setDivSize(iid,w,h){
	document.getElementById(iid).style.width=w+'px';
	document.getElementById(iid).style.height=h+'px';
}
function setDivDisplay(iid,off){
	document.getElementById(iid).style.display=off;
}
function div_middle(iid){
	//iid为全局div变量
	document.getElementById(iid).style.position = "absolute" ;
	document.getElementById(iid).style.top=((document.documentElement.clientHeight==0?document.body.clientHeight:document.documentElement.clientHeight)-document.getElementById(iid).offsetHeight)/2+"px";
	document.getElementById(iid).style.left=((document.body.clientWidth==0?document.documentElement.clientWidth:document.body.clientWidth)-document.getElementById(iid).offsetWidth)/2+"px";
}
function selectByValue(sID,sVal){
	var opt=document.getElementById(sID).getElementsByTagName('option');
	for(i=0;i<opt.length;i++){
		if(opt[i].value==sVal) {
			opt[i].selected=true;
			return ;
		}
	}
}
function selectByText(sID,sVal){
	var opt=document.getElementById(sID).getElementsByTagName('option');
	for(i=0;i<opt.length;i++){
		if(opt[i].innerText==sVal) {
			opt[i].selected=true;
			return ;
		}
	}
}
function setImageSize(w,sID){
	var maxw=w;
	var w=document.getElementById(sID).offsetWidth;
	if(w>maxw){
		document.getElementById(sID).width=maxw;
	}
}
function open_window(url){
    window.open(url, '','width=750,height=500,resizable=1,scrollbars=1') ;
}
/*浮动div代码
function float_middle(){
	//iid为全局div变量
	document.getElementById(iid).style.position = "absolute" ;
	var h = document.documentElement.clientHeight==0?document.body.clientHeight:document.documentElement.clientHeight ;
	var w = document.body.clientWidth==0?document.documentElement.clientWidth:document.body.clientWidth ;		document.getElementById(iid).style.top=(document.documentElement.scrollTop+document.body.scrollTop+(h-document.getElementById(iid).offsetHeight)/2)+"px";
	document.getElementById(iid).style.left=(document.documentElement.scrollLeft+document.body.scrollLeft+(w-document.getElementById(iid).offsetWidth)/2)+"px";
}
function float_left_top(){
	document.getElementById(iid).style.position = "absolute" ;
	document.getElementById(iid).style.top=(document.documentElement.scrollTop+document.body.scrollTop)+"px";
	document.getElementById(iid).style.left=(document.documentElement.scrollLeft+document.body.scrollLeft)+"px";
}
function float_left_bottom(){
	document.getElementById(iid).style.position = "absolute" ;
	var h = document.documentElement.clientHeight==0?document.body.clientHeight:document.documentElement.clientHeight ;
	var w = document.body.clientWidth==0?document.documentElement.clientWidth:document.body.clientWidth ;
	document.getElementById(iid).style.top=(document.documentElement.scrollTop+document.body.scrollTop+h-document.getElementById(iid).offsetHeight)+"px";
	document.getElementById(iid).style.left=(document.documentElement.scrollLeft+document.body.scrollLeft)+"px";
}
function float_right_top(){
	document.getElementById(iid).style.position = "absolute" ;
	var h = document.documentElement.clientHeight==0?document.body.clientHeight:document.documentElement.clientHeight ;
	var w = document.body.clientWidth==0?document.documentElement.clientWidth:document.body.clientWidth ;
	document.getElementById(iid).style.top=(document.documentElement.scrollTop+document.body.scrollTop)+"px";
	document.getElementById(iid).style.left=(document.documentElement.scrollLeft+document.body.scrollLeft+w-document.getElementById(iid).offsetWidth)+"px";
}
function float_right_bottom(){
	document.getElementById(iid).style.position = "absolute" ;
	var h = document.documentElement.clientHeight==0?document.body.clientHeight:document.documentElement.clientHeight ;
	var w = document.body.clientWidth==0?document.documentElement.clientWidth:document.body.clientWidth ;
	document.getElementById(iid).style.top=(document.documentElement.scrollTop+document.body.scrollTop+h-document.getElementById(iid).offsetHeight)+"px";
	document.getElementById(iid).style.left=(document.documentElement.scrollLeft+document.body.scrollLeft+w-document.getElementById(iid).offsetWidth)+"px";
}*/