﻿// JScript 文件
function TopAd(smallStr,largeStr) {
    if (smallStr != "" && largeStr != "") {
        var strTopAd = "";

        //定义小图片内容
        var topSmallBanner = smallStr;  //"<div><a href=\"http://www.henanchengshizhaoming.com/\" target=_blank><img src=\"news/images/top_090901_s.gif\" /></a></div>";

        //判断在那些页面上显示大图变小图效果，非这些地址只显示小图（或FLASH）
        if (location == "http://www.henanchengshizhaoming.com" || location == "http://henanchengshizhaoming.com" || location == "http://bbs.henanchengshizhaoming.com/" || true) {
            //定义大图内容
//            strTopAd = "<div id=adimage style=\"width:960px\">" +
//                    "<div id=adBig><a href=\"http://www.henanchengshizhaoming.com/\" " +
//                    "target=_blank><img title=热烈庆祝河南城市照明网上线 " +
//                    "src=\"/news/images/top_lanrentuku_b.jpg\" " +
//                    "border=0></A></div>" +
            //                    "<div id=adSmall style=\"display: none\">";
            strTopAd = "<div id=adimage style=\"width:960px\">" +
                    "<div id=adBig>"+ largeStr +"</div>" +
                    "<div id=adSmall style=\"display: none\">";
            //strTopAd+=  topFlash;     
            strTopAd += topSmallBanner;
            strTopAd += "</div></div>";
        }
        else {
            //strTopAd+=topFlash;
            strTopAd += topSmallBanner;
        }
        strTopAd += "<div style=\"height:0px; clear:both;overflow:hidden\"></div>";
        document.write(strTopAd);
        //return strTopAd;
    }
}
//document.write(TopAd());
$(function(){
	//过两秒显示 showImage(); 内容
    setTimeout("showImage();",2000);
    //alert(location);
});
function showImage()
{
    $("#adBig").slideUp(1000,function(){$("#adSmall").slideDown(1000);});
}


