//加载FLASH(优化代码，减少页面代码量)
//elm显示DIV 的ID，url FLASH地址，w FLASH宽,h FLASH高,wm 是否FLASH透明默认为false, btnID flash按钮ID，btnActUrl 跳转URL，target 打开方式；
function insertFlash(elm,url,w,h,wm,btnID,btnActUrl,target) {
    if (!document.getElementById(elm)) return;
    var strCode = '';
    if(btnActUrl!=null || btnActUrl!=undefined){
    strCode += '<button type="button" id="'+btnID+'" style="width:'+w+';height:'+h+';background:transparent;border:0;padding:0;cursor:pointer;" ';
        if(target=="_blank"){
            strCode += 'onclick="window.open(\''+btnActUrl+'\')"/>';
        }else{
            strCode += 'onclick="window.location.href=\''+btnActUrl+'\'"/>'; 
        }
    }
    strCode += '<object width="'+ w +'" height="'+ h +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">';
	
    strCode += '<param name="movie" value="'+ url +'">';
    if(wm){
        var wmv="transparent";
    }else{
        var wmv="opaque";
    }
    
    strCode += '<param name="wmode" value="'+wmv+'">';

    strCode += '<param name="quality" value="autohigh">';
    strCode += '<embed width="'+ w +'" height="'+ h +'" src="'+ url +'" quality="autohigh" wmode="'+wmv+'" type="application/x-shockwave-flash" plugspace="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>';
    strCode += '</object>';
    document.getElementById(elm).innerHTML = strCode;
}



function divR_LHH(div1,div2){
    var h0;
    if(isFirefox=navigator.userAgent.indexOf("Firefox")>0) h0=2;
    if(isFirefox=navigator.userAgent.indexOf("MSIE")>0) h0=0;
    $div1=document.getElementById(div1);
    $div2=document.getElementById(div2);
	
	$div2.clientHeight<$div1.clientHeight ? $div2.style.height=$div1.scrollHeight-h0+"px" : $div1.style.height=$div2.scrollHeight-h0+"px";
	
}


function fontZoom(size){
 document.getElementById('content').style.fontSize=size+'px'
}
