function banner_click_ns1_DoFSCommand(command, args) {
    var add_url_1 = "";
    if(ttnet_URL_1.indexOf("http") == -1){
        if(ttnet_URL_1.indexOf("cttnet") == -1){
            add_url_1 = "http://www.ttnet.net";
        }else{
            add_url_1 = "http://wenbi.ttnet.net";
        }
    }
    if (command == "banner_click"){
//        window.open(add_url_1+ttnet_URL_1);
    }
}

function show_banner1() {
    var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
    if ( plugin ) {
	    plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 3;
    }else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && navigator.userAgent.indexOf("Windows")>=0) {
        document.write('<script language=vbscript\>\non error resume next\nSub banner_click_ns1_FSCommand(ByVal command, ByVal args)\ncall banner_click_ns1_DoFSCommand(command, args)\nend sub</script\>\n');
    }
    if ( plugin || navigator.appName.indexOf('Netscape') || navigator.appName.indexOf('MSIE') ) {
        document.write('<button style="width:'+ ttnet_width_1 +'px;height:'+ttnet_height_1+'px;border:none;padding:0px;background:transparent" onclick="window.open(ttnet_URL_1);" ><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
        document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
        document.write(' ID=banner_click_ns1 WIDTH='+ttnet_width_1+' HEIGHT='+ttnet_height_1+'>');
        document.write(' <PARAM NAME=movie VALUE="'+ ttnet_flashfile_1 +'"><param name=wmode value=opaque><PARAM NAME=loop VALUE=true><PARAM NAME=quality VALUE=high>  '); 
        document.write(' <EMBED src="'+ ttnet_flashfile_1 +'" name=banner_click_ns1 loop=true wmode=opaque quality=high  ');
        document.write(' swLiveConnect=TURE WIDTH='+ttnet_width_1+' HEIGHT='+ttnet_height_1+'');
        document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
        document.write(' </EMBED>');
        document.write(' </OBJECT></button>');
    }else{
        if(ttnet_altimg_1 == ""){
            ttnet_URL_1 = "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";
            ttnet_alt_1 = "Get Flash Player";
        }
        document.write('<a href="'+ttnet_URL_1+'" target=_blank><img src="'+ttnet_altimg_1+'" width='+ttnet_width_1+' height='+ttnet_height_1+' border=0 alt="'+ttnet_alt_1+'"></a>');
    }
}

link = new Array(1);
link[1] = '<a href="http://lrd.ttnet.net/cW99O_2n_41_2s_2Tvv1_2x_2/*http://www.ttnet.net/search-bin/ttnet_ad.cgi?adtype=0&cno=1778"><img src="http://images.ttnet.net/pi/eimages/cust/20090601-3.jpg" border="0" alt="Google Reseller" title="Google Reseller"></a><img src="http://banner.ttnet.net/cgi-bin/banner1.cgi?lang=T&cno=1778&site=" border="0" width="0" height="0" style="display: none" >'; 
function showcookie(name){
    var result = "";
    var myCookie = " "+document.cookie+";";
    var searchName = " "+name+"=";
    var endOfCookie;
    var startOfCookie = myCookie.indexOf(searchName);
    if (startOfCookie != -1){
        startOfCookie += searchName.length;
        endOfCookie = myCookie.indexOf( ";" , startOfCookie );
        result = unescape(myCookie.substring( startOfCookie , endOfCookie));
    }
    return result;
}
var cust1 = showcookie("cust1");
if(cust1 != ""){
    cust1 = parseInt(cust1);
    cust1 += 1;
}else{
    cust1 = Math.floor(Math.random() * 1) + 1;
}
if(cust1 > 1){
    cust1 = 1;
}
document.cookie = "cust1="+escape(cust1)+";domain="+ document.domain+";path=/" ;
document.write(link[cust1]);
