// News 标签

var waitInterval;
var MDelayTime=1000;
function ADMenu(index){
			clearTimeout(waitInterval);
			waitInterval=window.setTimeout("getShow("+index+");",MDelayTime);
}

function getShow(index){
			clearTimeout(waitInterval);
			for(var i=0;i<2;i++){/* 最多支持2个标签 */
				if(GetObj("newsCon"+i)&&GetObj("ADm"+i)){
					GetObj("newsCon"+i).style.display = 'none';
					GetObj("ADm"+i).className = "qNewsbg1";
				}
			}
			if(GetObj("newsCon"+index)&&GetObj("ADm"+index)){
				GetObj("newsCon"+index).style.display = 'block';
				GetObj("ADm"+index).className = "qNewsbg";
			}
			//window.SetTimeout("ADMenu();",12000)
		}
// play 标签
		function GetObj(objName){
			if(document.getElementById){
				return eval('document.getElementById("' + objName + '")');
			}else if(document.layers){
				return eval("document.layers['" + objName +"']");
			}else{
				return eval('document.all.' + objName);
			}
		}
		function PLAYMenu(index,flag){
			for(var i=0;i<4;i++){/* 最多支持4个标签 */
				if(GetObj("pCon"+i)&&GetObj("qPlay"+i)){
					GetObj("pCon"+i).style.display = 'none';
					GetObj("qPlay"+i).className = "qpTag1";
				}
			}
			if(GetObj("pCon"+index)&&GetObj("qPlay"+index)){
				GetObj("pCon"+index).style.display = 'block';
				GetObj("qPlay"+index).className = "qpTag";
			}
		}

function JSAddFavorite()
{
        if ( window.sidebar && "object" == typeof( window.sidebar ) && "function" == typeof( window.sidebar.addPanel ) )
        {
                //  firefox
                window.sidebar.addPanel( '青州信息港', 'http://www.yd0536.com/', '' );
        }
        else if ( document.all && "object" == typeof( window.external ) )
        {
                //  ie
                window.external.addFavorite( 'http://www.yd0536.com/', '青州信息港' );
        }
}
function flash_fn(width, height, url, value){
		document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
		document.write("	codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
		document.write("	width='"+width+"' height='"+height+"' align='middle'>");
		document.write("	<param name='bgcolor' value='#ffffff' /> ");
		document.write("	<param name='movie'	value='"+url+"' /> ");
		document.write("	<param name='quality' value='high' /> ");
		document.write("	<param name='wmode'	value='transparent'> ");
		document.write("	<param name='flashVars'	value='"+value+"'> ");
		document.write("	<embed flashVars='"+value+"' src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
		document.write("		allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ");
		document.write("		pluginspage='http://www.macromedia.com/go/getflashplayer' />");
		document.write("</object>");
	}
