﻿function Print(_pic, _url) {
    document.write('<a href="' + _url + '" target=\"_blank\"><img src="' + _pic + '"></a>');
}
function PrintDIY(_cont) {
    document.write(_cont);
}
function PicAd(_ad) {
    switch (_ad) {
        case "webdm":
            //{srart:2010-05-20}{end:2010-06-20}{$:150}
            Print("/images/dayouhui.gif", "http://www.webdm.cn/");
            break;
        case "50it":
            //{srart:2010-05-20}{end:2010-06-20}{$:150}
            Print("/themes/ad/lizi02.gif", "http://www.50it.net/");
            break;
        case "D1":
            //{srart:}{end:}{$:}
            PrintDIY("<iframe src=\"/themes/ad/baidu_468_60.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:468px;height:60px;\"></iframe>");
            break;
        case "D2":
            //{srart:}{end:}{$:}
            PrintDIY("<iframe src=\"/themes/ad/baidu_234_60.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:234px;height:60px;\"></iframe>");
            //PrintDIY("<iframe id=\"baiduSpFrame\" class=\"adCss\" border=\"0\" vspace=\"0\" hspace=\"0\" marginWidth=\"0\" marginHeight=\"0\" frameSpacing=\"0\" frameBorder=\"0\" scrolling=\"no\" width=\"234\" height=\"60\" src=\"http://spcode.baidu.com/spcode/spstyle/style4150.jsp?tn=kuikui520_sp&ctn=0&styleid=4150\"></iframe>");
            break;
        case "D5":
            //{srart:}{end:}{$:}
            PrintDIY("<iframe src=\"/themes/ad/baidu_234_60.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:234px;height:60px;\"></iframe>");
            break;
        case "D6":
            //{srart:}{end:}{$:}
            PrintDIY("<iframe src=\"/themes/ad/baidu_960_60.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:960px;height:60px;\"></iframe>");
            break;
        case "i1":
            //{srart:}{end:}{$:}
            PrintDIY("<iframe src=\"/themes/ad/baidu_300_250.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:300px;height:250px;\"></iframe>");
            break;
        case "i2":
            //{srart:}{end:}{$:}
            PrintDIY("<iframe src=\"/themes/ad/baidu_300_250.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:300px;height:250px;\"></iframe>");
            break;
        case "i3":
            //{srart:}{end:}{$:}
            PrintDIY("<iframe src=\"/themes/ad/baidu_640_60.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:650px;height:60px;\"></iframe>");
            break;
        case "c1":
            //{srart:}{end:}{$:}
            PrintDIY("<iframe src=\"/themes/ad/youdao_300_250.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:350px;height:250px;\"></iframe>");
            break;
        case "c2":
            //{srart:}{end:}{$:}
            PrintDIY("<iframe src=\"/themes/ad/gg_300_250.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:300px;height:250px;\"></iframe>");
            break;
        case "c3":
            //{srart:}{end:}{$:}
            PrintDIY("<iframe src=\"/themes/ad/baidu_468_60.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:468px;height:60px;\"></iframe>");
            break;
        case "c4":
            //{srart:}{end:}{$:}
            PrintDIY("<iframe src=\"/themes/ad/baidu_640_60.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:630px;height:60px;\"></iframe>");
            break;
        case "baiduyouxi":
            PrintDIY("<iframe border=\"0\" frameBorder=\"0\" frameSpacing=\"0\" class=\"adCss\" height=\"80\" hspace=\"0\" marginHeight=\"0\" marginWidth=\"0\" scrolling=\"no\" src=\"http://spcode.baidu.com/spcode/spstyle/style4162.jsp?tn=kuikui520_sp&amp;ctn=0&amp;styleid=4162\" vspace=\"0\" width=\"960\"></iframe>");
            break;
        //{srart:2011-8-25}{end:2011-9-25}{$:118}   
        case "Now":
            PrintDIY("<a href=\"http://www.now.cn/?now_wuyun_webdm\" target=\"_blank\"><img alt=\"时代互联\" src=\"http://b.now.cn/data/NOWA/1682.gif\" border=\"0\" /></a>");
            break;
        //{srart:2011-8-30}{end:2011-9-30}{$:100}  
        case "EnKj":
            PrintDIY("<a href=\"http://www.enkj.com\" target=\"_blank\"><img alt=\"伊恩科技\" src=\"http://www.webdm.cn/themes/ad/EnIdcAd.gif\" border=\"0\" /></a>");
            break;
        case "Wy01":
            PrintDIY("<iframe src=\"/themes/ad/Wy1.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:960px;height:80px;\"></iframe>");
            break;
        case "Wy02":
            PrintDIY("<iframe src=\"/themes/ad/Wy2.htm\" class=\"adCss\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" style=\"width:960px;height:100px;\"></iframe>");
            break;
        case "Fk":
            PrintDIY("<a href=\"http://www.vancl.com/?source=moderntea&psId=53\" target=\"_blank\"><img src=\"http://union.vancl.com/adpics.aspx?psId=53&source=moderntea\" width=\"960\" height=\"100\" border=\"0\" /></a>");
            break;
    }
}
function WritePicAd() {
    //document.writeln("<div class=\"ipad-p\"><script type=\"text/javascript\">PicAd('Now');</script></div>");
    //document.writeln("<div class=\"ipad-p\"><script type=\"text/javascript\">PicAd('EnKj');</script></div>");
    //document.writeln("<div class=\"ipad-p\"><script type=\"text/javascript\">PicAd('baiduyouxi');</script></div>");
    //document.writeln("<div class=\"ipad-p\"><script type=\"text/javascript\">PicAd('webdm');</script></div>");
    document.writeln("<div class=\"ipad-p\"><script type=\"text/javascript\">PicAd('50it');</script></div>");
    //document.writeln("<div class=\"ipad-p\"><script type=\"text/javascript\">PicAd('Wy01');</script></div>");
    //document.writeln("<div class=\"ipad-p\"><script type=\"text/javascript\">PicAd('Wy02');</script></div>");
    document.writeln("<div class=\"ipad-p\"><script type=\"text/javascript\">PicAd('Fk');</script></div>");
}
