﻿// JScript 文件
function TopAd()
{
    var strTopAd="";
	
	//定义小图片内容
    var topSmallBanner="<div style=\"margin:0px auto 0px auto;\"><a href=\"http://www.bfxd.com/shoesInfo/newsDetails.aspx?newsid=7671\" target=_blank><img src=\"1/2012_small.jpg\" border=\"0\" /></a></div>";
	
	//判断在那些页面上显示大图变小图效果，非这些地址只显示小图（或FLASH）
    if (location == "http://www.bfxd.com" || location == "http://bfxd.com"  || true)
    {
		//定义大图内容
        strTopAd="<div id=adimage style=\"width:1004px;margin:0px auto 0px auto;\">"+
                    "<div id=adBig><a href=\"http://www.bfxd.com/shoesInfo/newsDetails.aspx?newsid=7671\" " + 
                    "target=_blank><img title=2012北方鞋都招聘 "+
                    "src=\"1/2012_big.jpg\" " +
                    "border=0></A></div>"+
                    "<div id=adSmall style=\"display: none\">";
        //strTopAd+=  topFlash;     
		strTopAd+=  topSmallBanner;  
        strTopAd+=  "</div></div>";
    }
    else
    {
        //strTopAd+=topFlash;
		strTopAd+=  topSmallBanner;  
    }
    strTopAd+="<div style=\"height:7px; clear:both;overflow:hidden\"></div>";
    return strTopAd;
}
document.write(TopAd());
$(function(){
	//过两秒显示 showImage(); 内容
    setTimeout("showImage();",3000);
    //alert(location);
});
function showImage()
{
    $("#adBig").slideUp(1000,function(){$("#adSmall").slideDown(1000);});
}


