
function CloseCache()
{
    return Date.parse(new Date());
}

//合作头
function HezuoTou()
{

     var domain = window.location.host;

     if(domain !='d.lotour.com')
     {
	    var strFile = domain.substring(0,domain.indexOf('.'));
    	
	    //样式
        var link = document.createElement('link');
        link.href="http://d.lotour.com/hezuo/css/"+strFile+".css";
        link.rel="stylesheet";
        link.type="text/css";
        document.getElementsByTagName('head')[0].appendChild(link);

        //内容
        var neirong=document.createElement('script');
        neirong.src="http://d.lotour.com/api/hezuotouwei.ashx?file="+strFile+"top";
        neirong.type='text/javascript';
        document.getElementsByTagName('head')[0].appendChild(neirong);        
       document.getElementById("divTop").style.height="auto";

     }
      document.getElementById("divTop").style.display="block";
}

//合作尾
function HezuoWei()
{    
     var domain = window.location.host;
     if(domain !='d.lotour.com')
     {
	    var strFile = domain.substring(0,domain.indexOf('.'));
    	
        //内容
        var neirong=document.createElement('script');
        neirong.src="http://d.lotour.com/api/hezuotouwei.ashx?file="+strFile+"bottom";
        neirong.type='text/javascript';
        document.getElementsByTagName('head')[0].appendChild(neirong);       
         document.getElementById("divTopAd").style.margin="0 auto 0 auto";
         document.getElementById("divTopAd").style.display="none";
          document.getElementById("divChaoshi").style.display="none";
          if(domain =='cri.d.lotour.com'){
          document.getElementById("divHezuomtw").style.display="none";
          }
        document.getElementById("divBanner").style.display="none";
       //  alert("dd66");
   
         
     
    	
     }
}

//判断如果域名是d.lotour.com不显示头部广告
function IsTopAd()
{
     var domain = window.location.host;
     if(domain !='d.lotour.com')
     {
        document.getElementById("divTopAd").style.display = "none";
     }
}

