/*首页FLASH图片*/
<!-- 
function FlashImg(pics,texts,links,focus_width,focus_height,text_height){
var interval_time=5 ;
var text_mtop = 0;
var text_lm = 0;
var textmargin = text_mtop+"|"+text_lm;
var textcolor = "#ffffff|0xffffff";
var text_align= 'center'; 
var swf_height = focus_height+text_height+text_mtop; 
var text_size = 0;
var borderStyle="0|0x15151c|100";
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="/template/Black/images/FlashImg.swf"> <param name="quality" value="high"><param name="Wmode" value="transparent">');
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+'&textmargin='+textmargin+'&textcolor='+textcolor+'&borderstyle='+borderStyle+'&text_align='+text_align+'&interval_time='+interval_time+'&textsize='+text_size+'">');
document.write('<embed src="/template/Black/images/FlashImg.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&textmargin='+textmargin+'&textcolor='+textcolor+'&borderstyle='+borderStyle+'&text_align='+text_align+'&interval_time='+interval_time+'&textsize='+text_size+'" menu="false" bgcolor="#ffffff" 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>');
}
//-->


/*选项卡*/
function CarVTag(Tag,TagContent,Count,Num) {
    for(i=1; i<=Count; i++) {
	var TagId=document.getElementById(Tag+i);
	var TagContentId=document.getElementById(TagContent+i);
	if(TagId&&TagContentId){
		if (i==Num) {
			TagId.className="D";
			TagContentId.style.display="block";
			}
		else {
			TagId.className="UD";
			TagContentId.style.display="none";
			}
		}
	}
}


function showlight(e){ 
	var sWidth,sHeight; 
	sWidth=screen.width; 
	sHeight=screen.height; 
	
	var obj = document.getElementById(e);
	obj.style.display = "block"; 
	obj.style.position = "absolute"; 
	obj.style.zIndex = "999";
	var width = parseInt(getRealStyle(e,'width')); //弹出框的宽度 
	var height = parseInt(getRealStyle(e,'height')); //弹出框的高度
	if(!height){
		height =parseInt(obj.offsetHeight); //弹出框的高度 
	}
	obj.style.width = width + "px";
	obj.style.height = height + "px"; 
	var Position = getPosition(); 
	leftadd = (Position.width-width)/2; 
	topadd = (Position.height-height)/2; 
	obj.style.top = (Position.top + topadd) + "px"; 
	obj.style.left = (Position.left + leftadd) + "px"; 
	
	window.onscroll = function (){ 
	var Position = getPosition(); 
	obj.style.top = (Position.top + topadd) +"px"; 
	obj.style.left = (Position.left + leftadd) +"px"; 
	}; 
	
	var bgObj=document.createElement("div"); 
		bgObj.setAttribute('id','bgDiv'); 
		bgObj.style.position="absolute"; 
		bgObj.style.top="0"; 
		bgObj.style.background="#cccccc"; 
		bgObj.style.filter="alpha(opacity=60)"; 
		bgObj.style.opacity="0.6"; 
		bgObj.style.left="0"; 
		bgObj.style.top="0"; 
		bgObj.style.width=document.body.clientWidth + "px"; 
		bgObj.style.height=document.body.scrollHeight + "px"; 
		if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ 
		bgObj.style.position="fixed"; 
		}
		bgObj.style.zIndex = "998"; 
		document.body.appendChild(bgObj); 
}

function hidePop(e){ 
	if(document.getElementById(e)!=null) 
	{ 
		document.getElementById(e).style.display = "none"; 
	}
	document.body.removeChild(document.getElementById('bgDiv'));
	} 
function getRealStyle(id,styleName) { 
	var element = document.getElementById(id); 
	var realStyle = null; 
	if (element.currentStyle) 
	realStyle = element.currentStyle[styleName]; 
	else if (window.getComputedStyle) 
	realStyle = window.getComputedStyle(element,null)[styleName]; 
	return realStyle; 
	} 
function getPosition() { 
	var top = document.documentElement.scrollTop; 
	var left = document.documentElement.scrollLeft; 
	var height = document.documentElement.clientHeight; 
	var width = document.documentElement.clientWidth; 
	return {top:top,left:left,height:height,width:width}; 
	}
function setHomePage(obj){
		var aUrls=document.URL.split("/");
		var SDomainName="http://"+aUrls[2]+"/";
		try{//IE
			obj.style.behavior="url(#default#homepage)";
			obj.setHomePage(SDomainName);
		}catch(e){//other
			if(window.netscape) {//ff
				try {
						netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
				} 
				catch (e) { 
						alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为'true'"); 
				}
				var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
				prefs.setCharPref('browser.startup.homepage',SDomainName);
			 }
		}
		if(window.netscape)alert("ff");
	}
	function addFavorite(){
		var aUrls=document.URL.split("/");
		var vDomainName=window.location.href;
		var description=document.title;
		try{//IE
			window.external.AddFavorite(vDomainName,description);
		}catch(e){//FF
			window.sidebar.addPanel(description,vDomainName,"");
		}
	}
