
var temArry=new Array();

	function omsOver(id)
	{	var clarAry1=new Array();
		if(id=="none")
		{	
			if(temArry.length>0){
			document.getElementById(temArry[0]).style.display="none";
			temArry=clarAry1}
		}
		else{
			if(temArry.length>0)
			{
				document.getElementById(temArry[0]).style.display="none";
				temArry=clarAry1
			}
			var tempid=id.split("_");
			var left=0;
			var top=0;
			var xy=getPosition(document.getElementById(tempid[0]),document.body);
			var w=document.getElementById(tempid[0]).offsetWidth;
			var h=document.getElementById(tempid[0]).offsetHeight;
			//left=parseInt(xy.x)/*-parseInt(w)+5;
			left=parseInt(xy.x)-15
			top=parseInt(xy.y)+parseInt(h)
			document.getElementById(id).style.position="absolute";
			document.getElementById(id).style.left=left;
			document.getElementById(id).style.top=top;
			document.getElementById(id).style.color="white";
			document.getElementById(id).style.display="block";		
			temArry.push(id)
		}
	}
	function Dhmo()
	{

		document.getElementById(temArry[0]).style.display="none";
	}

//首页头部样式
 //需判断IE/FF


//检测IE||FF
	var userAgent=navigator.userAgent;
	var appVersion=parseFloat(navigator.appVersion);
	var isOpera=userAgent.indexOf("Opera")>-1;
	var isIE=userAgent.indexOf("compatible")>-1 && userAgent.indexOf("MSIE")>-1 &&! isOpera;
	var rowId=[];
    addEvent(window,"resize",function (){
    	for(var i=0,l=motion.cAry.length;i<l;i++)
    		motion.cAry[i].toCenter();},false);


function qhPic(id)
{
	var temp=id.split("_");
	document.getElementById("qhPic1").src=(img[temp[1]])
	document.getElementById("title-1-Value").innerHTML=title1Value[temp[1]]
	if(ary.length>0)
	{
		document.getElementById(ary[0]).style.backgroundColor="E6E6E6";
		document.getElementById(ary[0]).style.color="black";
	}
	document.getElementById(temp[0]+temp[1]).style.backgroundColor="black";
	document.getElementById(temp[0]+temp[1]).style.color="white";
	ary[0]=temp[0]+temp[1]
	PicI=temp[1];
}

/****************************************************************************************************************************************************/

function getPosition(elm,obj)
{
	var pos={x:0,y:0,w:0,h:0};
	pos.w=elm.offsetWidth;
	pos.h=elm.offsetHeight;
	do{
		pos.x+=elm.offsetLeft;
		pos.y+=elm.offsetTop;
		elm=elm.offsetParent;
	  }
	while(elm!=obj&&elm);
	return pos;
}
/******************************************************************************************************************************/
   
 function changeImg(img)
 {
	document.getElementById("yhlv").src="http://ad.fx234.com/Admin/"+img		 
 }
 /********http://ad.fx234.com/Admin*********/
 /*********************************************************************************************************************************************/
 function about()
    {
        location.href="about.aspx";
    }
    function  Zhaoxian()
    {
        location.href="Zhaoxian.aspx";
    }
    function  Zhenggao()
    {
        location.href="Zhenggao.aspx";
    }
    function  Lianxi()
    {
        location.href="Lianxi.aspx";
    } 
     function  bqsm()
    {
        location.href="bqsm.aspx";
    } 
     function  index()
    {
        location.href="index.aspx";
    }
    function  guanggao()
    {
        location.href="advertise.aspx";
    }
    function  qq()
    {
        window.open('qq.html','name1','width=380,height=400,toolbar=no,scrollbars=no,menubar=no');
    }
    function  msn()
    {
        window.open('msn.html','name1','width=380,height=400,toolbar=no,scrollbars=no,menubar=no');
    }
    function zhuce()
    {
        window.open('register.aspx');
    }
    function luntan()
    {
        window.open('http://bbs.fx234.com');
    }
    function jrlt()
    {
        window.open('http://bbs.fx234.com');
    }
    function ltzc()
    {
        window.open('http://bbs.fx234.com/register.aspx');
    }
    function jrblog()
    {
        window.open('http://blog.fx234.com');
    }
    function blogzc()
    {
        window.open('http://blog.fx234.com/index.asp?T=reg');
    }
    function ptswdc()
    {
        window.open('ptswdc.aspx');
    }
    function zjgd()
    {
       window.open('zjgd.aspx');
    }
    function xwsd()
    {
        window.open('xwsd.aspx');
    }
    function jgks()
    {
        window.open('jgks.aspx');
    }
    function jdts()
    {
        window.open('jdts.aspx');
    }
    function whzc()
    {
        window.open('whzc.aspx');
    }
    function leave()
    {
        location.href="leave.aspx";
    }
    function fx_table()
    {
        window.open('information_table.aspx');
    }
    function updateuser()
    {
        window.open('updateUser.aspx');
    }
    function hjzq()
    {
        window.open('hjzq.aspx');
    }
    function jzpx()
    {
        window.open('jzpx.aspx');
    }
    function ztsl()
    {
        window.open('ztsl.aspx');
    }
    function zysd()
    {
        window.open('http://search.book.dangdang.com/search.aspx?key=%CD%E2%BB%E3&catalog=01&SearchFromTop=1');
    }
    function whlc()
    {
        window.open('whlc.aspx');
    }
    function rmbyj()
    {
        window.open('rmbyj.aspx');
    }
    function sjbj()
    {
        window.open('sjbj.aspx');
    }
    function wyyc()
    {
        window.open('fx_analyst.aspx');
    }
    function sstw()
    {
        window.open('sstw.aspx');
    }
    function wytw()
    {
        window.open('wytw.aspx');
    }
    function wyhd()
    {
        window.open('wyhd.aspx');
    }
    function wdxc()
    {
        window.open('http://blog.fx234.com');
    }
    function wdsp()
    {
        
    }
    function fbrz()
    {
        window.open('http://blog.fx234.com');
    }
    function wdyc()
    {
        
    }
    function hjlt()
    {
        window.open('http://bbs.fx234.com/showforum-61.aspx');
    }
    function hjxw()
    {
        window.open('hjxw.aspx');
    }
    function hjpl()
    {
        window.open('hjpl.aspx');
    }
    function more_pm()
    {
        window.open('fxpb.aspx');
    }
    function jg_more()
    {
        window.open('content_allJg.aspx');
    }
    function vip_more()
    {
        window.open('content_alllist.aspx');
    }
    function whxy_moer()
    {
        window.open('whxy.aspx');
    }
    function jyrj()
    {
        window.open('down_jyrj.aspx');
    }
    function tzbk()
    {
        window.open('tzbk.aspx');
    }
    function more_hjxw()
    {
        window.open('hjxwMore.aspx')
    }
////////////////////////////////////////////////////////////////////////
function jsz(id)
	{
			var tempid=id;
			var tempDiv=document.createElement("div");
			tempDiv.setAttribute("id","jsz");
			document.body.appendChild(tempDiv);
			var left=0;
			var top=0;
			var xy=getPosition(document.getElementById(tempid),document.body);
			var w=document.getElementById(tempid).offsetWidth;
			var h=document.getElementById(tempid).offsetHeight;
			left=parseInt(xy.x)+35
			top=parseInt(xy.y)-51
			document.getElementById("jsz").style.backgroundImage="url(image/jsz.gif)"
			document.getElementById("jsz").style.position="absolute"
			document.getElementById("jsz").style.width="60px"
			document.getElementById("jsz").style.height="51px"
			document.getElementById("jsz").style.zIndex="0"
			document.getElementById("jsz").style.left=left;
			document.getElementById("jsz").style.top=top;
	}
	function Deljsz()
	{
			document.body.removeChild(document.getElementById("jsz")); 
	}
     
