function Show()
{
	
	if(this.id!='' && $("#" + this.id + "_ctn"))
	{
		var objid = "#" + this.id + "_ctn"
		//alert($(this).offset().top + this.offsetHeight)
		$(objid).show()
		$(objid).css("top",$(this).offset().top + this.offsetHeight-5);
		$(objid).css("left",$(this).offset().left);
	}
}

function Hide()
{
	
	if(this.id!='' && $("#" + this.id + "_ctn"))
	{
		var objid = "#" + this.id + "_ctn"
		
		$(objid).hide()
		
	}
}


$(document).ready(function(){

	 $("#nav li").mouseover(Show);	 
	 $("#nav li").mouseout(Hide);
	 $("#navCt div").mouseover(function(){$(this).show();});
	 $("#navCt div").mouseout(function(){ $(this).hide();});
}
)

function doZoom(size){
 document.getElementById('zoomz').style.fontSize=size+'px'
}



function createXmlHttpRequest()     
{
    var xmlHttp;
    if(window.XMLHttpRequest)    //非IE浏览器
    {
        xmlHttp=new XMLHttpRequest();
        
        if(xmlHttp.overrideMimeType)
        {
            xmlHttp.overrideMimeType("text/xml");
        }
    }
    else if(window.ActiveXObject)   //如果是IE浏览器
    {
        try
        {
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");   
        }
        catch(e)
        {
            xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");   
        }
    }
    if(!xmlHttp)
    {
        window.alert("你的浏览器不支持创建XMLhttpRequest对象");
    }
    return xmlHttp;
}

function flashAd()
{
    var xmlHttp=createXmlHttpRequest();
    var url="AdAjax.aspx?id=1";
    xmlHttp.open("GET",url,true);
    xmlHttp.onreadystatechange=function(){
            
        if(xmlHttp.readyState==4&&xmlHttp.status==200)
        {
            document.getElementById("flashAd").innerHTML=xmlHttp.responseText;
        }
    };
        
    xmlHttp.send(null);
}


