function $(id) {return document.getElementById(id);}
//婢跺嫮鎮奌TML缁嬪绨敍宀冾唨JavaScript閸欘垯浜掗崷銊ф暏閹撮顏潻鎰攽
var setInnerHTML = function (iEl, htmlCode) {
	var el=$(iEl);var ua = navigator.userAgent.toLowerCase();el.innerHTML="";
    if (ua.indexOf('msie') >= 0 && ua.indexOf('opera') < 0) {
        htmlCode = '<div style="display:none">for IE</div>' + htmlCode;
        htmlCode = htmlCode.replace(/<script([^>]*)>/gi,'<script$1 defer>');
        el.innerHTML = htmlCode;el.removeChild(el.firstChild);
    } else {
        var el_next = el.nextSibling;var el_parent = el.parentNode;
        el_parent.removeChild(el);el.innerHTML = htmlCode;
        if (el_next) {el_parent.insertBefore(el, el_next)
        } else {el_parent.appendChild(el);}
    }
}
//FLASH閹绢厽鏂乯avascript
function getFlash(strId,setWidth,setHeight,setUrl){
	var strText = "";
	strText ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width='+setWidth+' height='+setHeight+'>';
	strText +='<param name="movie" value='+setUrl+'>';
	strText +='<param name="wmode" value="transparent">';
	strText +='<param name="quality" value="high">';
	strText +='<embed src='+setUrl+' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+setWidth+' height='+setHeight+'>';
	strText +='</embed></object>';
	setInnerHTML(strId,strText);
}


//瀵邦喛钂嬮崷銊у殠閹绢厽鏂侀崳锟�
function getPlay(strId,setUrl,setWidth,setHeight){
	var strText="<object title=\"www.kaili.gov.cn\" align=\"middle\" classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" class=\"object\" id=\"MediaPlayer\" width="+setWidth+" height="+setHeight+">";
		strText = strText+"<param name=\"AUTOSTART\" value=\"true\"/>";
		strText = strText+"<param name=\"ShowStatusBar\" value=\"-1\"/>";
		strText = strText+"<param name=\"Filename\" value="+setUrl+">";
		strText = strText+"<param name=\"DisplaySize\" value=\"0\"> ";
		strText = strText+"<param name=\"ShowCaptioning\" value=\"0\">";
		strText = strText+"<param name=\"ShowControls\" value=\"0\">";
		strText = strText+"<param name=\"ShowAudioControls\" value=\"0\">";
		strText = strText+"<param name=\"ShowGotoBar\" value=\"0\">";
		strText = strText+"<embed title=\"www.kaili.gov.cn\" type=\"application/x-oleobject\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" flename=\"mp\" src="+setUrl+"  width=320 height=240 >";
		strText = strText+"</embed>";
		strText = strText+"</object>";
		
		setInnerHTML(strId,strText);
}
//FLV閹绢厽鏂侀崳锟�
function getFlv(strId,w,h,t,f){
	var swf_width=w //445
	var swf_height=h //301
	var texts=t //''
	var files=f//'http://www.kaili.gov.cn'
	
	var strText = "";
	
	strText = strText+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"';
	strText = strText+'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+swf_height +'">';
	strText = strText+'<param name="movie" value="images/vcastr22.swf"><param name="quality" value="high">';
	strText = strText+'<param name="menu" value="false"><param name="allowFullScreen" value="true" />';
	strText = strText+'<param name="FlashVars" value="vcastr_file='+files+'&IsAutoPlay=0&IsContinue=0&BarColor=#000000">';
	strText = strText+'<embed src="images/vcastr22.swf" allowFullScreen="true" FlashVars="vcastr_file='+files+'&IsAutoPlay=1&IsContinue=0&BarColor=#000000"';
	strText = strText+' menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash"';
	strText = strText+' pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';

	setInnerHTML(strId,strText);
}
//娑撳銆夌憴鍡涱暥閹绢厽鏂�
function flv_pay(str){
	var t = str.split(".");
	if(t[t.length - 1]=="flv"){
		getFlv('shiping','292','185','',str);
	}else{
		getPlay('shiping',str,'292','185');
	}
}

//妫ｆ牠銆夐張锟芥煀閸斻劍锟絋aB
<!-- 
				function swap_tab(n){
				for(var i=1;i<=3;i++){
					var curC=document.getElementById("tab_"+i);
					var curB=document.getElementById("tab_t"+i);
					if(n==i){
						curC.style.display="block";
						curB.className="active"+i;
					}else{
						curC.style.display="none";
						curB.className="normal"+i;
					}
				}
			} 
			//-->
function setidval(id,value)
{ 
    document.getElementById(id).innerHTML = value;
}
function fontZoom(size)
{
	$('contents').style.fontSize=size+'px'
}
