
$('.slideshow').cycle({
    fx: 'curtainX',
    timeout: 6000,
    delay: -2000 // choose your transition type, ex: fade, scrollUp, shuffle, etc...
});

$('.slideshowNew').cycle({
    fx: 'curtainX',
    timeout: 6000,
    delay: -2000 // choose your transition type, ex: fade, scrollUp, shuffle, etc...
});

$('.slideshow1').cycle({
    fx: 'curtainX',
    timeout: 6000,
    delay: -2000 // choose your transition type, ex: fade, scrollUp, shuffle, etc...
});


//Top Ads
function leftMiddleEast() {

//    var str = '<div class="slideshow1" style="height: 55px;"><a href="http://www.MiddleEast.tendertiger.com" target="_blank" ><img src="http://202.71.136.154/images/ME_tt_bnr.gif" width="468px" height="50px" class="border"/></a><a href="http://www.projects.tendertiger.com" target="_blank"><img src="http://202.71.136.154/images/Projectoffer.gif" width="468px" height="50px" class="border" /></a></div>';

    var str = '<table width="100%" ><tr><td width="75%" align="left"><div align="center" style="margin-bottom: 8px;"><a href="/SubscriptionOffer.aspx"><img alt="" src="http://202.71.136.154/images/savemoney.gif" class="border" /></a></div></td></tr></table>';

   // var str = '<table width="100%" ><tr><td width="75%" align="left"><div class="slideshow1" style="height: 55px;"><a href="http://www.MiddleEast.tendertiger.com" target="_blank"><img src="http://202.71.136.154/images/ME_tt_bnr.gif" width="468px" height="50px"class="border" /></a><a href="http://www.projects.tendertiger.com" target="_blank"><img src="http://202.71.136.154/images/Projectoffer.gif" alt="Projects" width="468px" height="50px" class="border" /></a></div></td><td width="25%" align="right" style="margin-right:100px"><div align="center" style="margin-top: 10px; margin-bottom: 8px;"><a href="http://www.tendertiger.com/advtsrvy1.aspx?id=253" target="_blank"><img alt="" src="http://202.71.136.154/images/EBS.gif" width="220px" height="58px" class="border"/></a></div></td></tr></table>';
   //str += '<a href="http://www.tendertiger.com/advtsrvy1.aspx?id=253" target="_blank" style="padding-left: 0px;"><img id="ImgAss3" align="center" src="http://202.71.136.154/images/ebs.gif" alt="SBI" style="border: 1px black; margin-right: 0px;" /></a>';
    //This is for christmas
   // var str = '<div style="height: 55px;"><a href="#" target="_blank" ><img src="http://www.tendertiger.com/images_b/holi.jpg" class="border"/></a></div>';

    return str;

};

function BMSPromotion() {

    //var str = '<table width="100%" ><tr><td width="75%" align="left"><div align="center" style="margin-bottom: 8px;"><a href="http://www.bmstiger.com/BMS_P/tmsregistration.aspx" target="_blank"><img alt="" src="http://www.tendertiger.com/images_b/BMSBanner.gif" class="border" /></a></div></td></tr></table>';
        var str = '<table width="100%" cellspacing="0" cellpadding="0"><tr><td width="75%" align="left"><div align="center" style="margin-bottom: 8px;"><a href="http://www.tendertiger.com/getdc.aspx" target="_blank"><img alt="" src="http://www.Projects.tendertiger.com/AdsFolder/Top/GetDC.gif" class="border" /></a></div></td></tr></table>';

    return str;

};

//function SubscriptionOffer() {

//    // var str = '<table width="100%" ><tr><td width="75%" align="left"><div align="center" style="margin-top: 10px; margin-bottom: 8px;"><a href="http://tendertiger.teserver3.com/SubscriptionOffer.aspx" target="_blank"><img alt="" src="../images_b/Optimized-Online_Payment.gif" class="border" /></a></div></td></tr></table>';

//    var str = '<div class="slideshow1" style="height: 55px;"><a href="http://www.tendertiger.com/Subscription.aspx?id=2&tt=" target="_blank" ><img src="http://202.71.136.154/images/Optimized-Online_Payment.gif" width="468px" height="50px" class="border"/></a><a href="http://www.projects.tendertiger.com" target="_blank"><img src="http://202.71.136.154/images/Projectoffer.gif" width="468px" height="50px" class="border" /></a></div>';
//    return str;

//};


//Left Top
function leftTop() {

   // var str = '<div align="center" style="margin-top: 10px; margin-bottom: 8px;"><a href="Subscription.aspx?id=2&tt=" target="_blank"><img alt="" src="http://202.71.136.154/images/OnlinePayOffer.gif" width="225px" height="103px" class="border" /></a></div>';

    //var str = '<div align="center" style="margin-top: 10px; margin-bottom: 8px;"><a href="http://www.middleeast.tendertiger.com/" target="_blank"><img alt="" src="http://www.Tendertiger.com/images_b/METenders.gif" width="225px" height="103px" class="border" /></a></div>';

    //var str = '<div class="slideshow1" align="center" style="width:227px; height:102px;" ><a href="http://www.middleeast.tendertiger.com/" target="_blank"><img alt="" src="../images_b/METenders.gif" class="border" /></a><a href="http://www.africa.tendertiger.com/" target="_blank"><img alt="" src="http://www.tendertiger.com/images_b/ATenders.gif" class="border" /></a></div>';
        var str = '<div class="slideshow1" align="center" style="width: 238px; height: 58px;"><a href="http://africa.tendertiger.com/Subscription.aspx?id=4" target="_blank"><img id="img66" alt="" src="http://www.projects.tendertiger.com/AdsFolder/Top/africa-sub.gif" class="border"></a><a href="http://Middleeast.tendertiger.com/Subscription.aspx?id=4" target="_blank"><img id="img69" alt="" src="http://www.Projects.tendertiger.com/AdsFolder/Top/middleeast-sub.gif" class="border"></a></div>';
        

    return str;
}


//Left Top for TenderDetailPrint
function PrintleftTop() {

    //  var str = '<div align="center" style="margin-top: 10px; margin-bottom: 8px;"><a href="Subscription.aspx?id=2&tt=" target="_blank"><img alt="" src="http://202.71.136.154/images/OnlinePayOffer.gif" class="border" /></a></div>';
    //var str = '<div align="center" style="margin-top: 10px; margin-bottom: 8px;"><a href="http://www.middleeast.tendertiger.com/" target="_blank"><img alt="" src="../images_b/METenders.gif" class="border" /></a></div>';

    var str = '<div class="slideshow1" align="center" ><a href="http://www.middleeast.tendertiger.com/" target="_blank"><img alt="" src="http://www.tendertiger.com/images_b/METenders_full.gif" class="border" /></a><a href="http://www.africa.tendertiger.com/" target="_blank"><img alt="" src="http://www.tendertiger.com/images_b/ATenders-full.gif" class="border" /></a></div>';


    return str;
}

//Left Top only for Middle east
function leftTopM() {

    //  var str = '<div align="center" style="margin-top: 10px; margin-bottom: 8px;"><a href="Subscription.aspx?id=2&tt=" target="_blank"><img alt="" src="http://202.71.136.154/images/OnlinePayOffer.gif" class="border" /></a></div>';
    var str = '<div align="center" style="margin-top: 10px; margin-bottom: 8px;"><a href="http://www.africa.tendertiger.com/" target="_blank"><img alt="" src="http://www.tendertiger.com/images_b/ATenders.gif" class="border" /></a></div>';

    //var str = '<div class="slideshow1" align="center"><a href="http://www.middleeast.tendertiger.com/" target="_blank"><img alt="" src="../images_b/METenders.gif" class="border" /></a><a href="http://www.africa.tendertiger.com/" target="_blank"><img alt="" src="../images_b/ATenders.gif" class="border" /></a></div>';


    return str;
}

//Left Top only for Africa
function leftTopA() {

    //  var str = '<div align="center" style="margin-top: 10px; margin-bottom: 8px;"><a href="Subscription.aspx?id=2&tt=" target="_blank"><img alt="" src="http://202.71.136.154/images/OnlinePayOffer.gif" class="border" /></a></div>';
    var str = '<div align="center" style="margin-top: 10px; margin-bottom: 8px;"><a href="http://www.middleeast.tendertiger.com/" target="_blank"><img alt="" src="http://www.tendertiger.com/images_b/METenders.gif" class="border" /></a></div>';

    //var str = '<div class="slideshow1" align="center"><a href="http://www.middleeast.tendertiger.com/" target="_blank"><img alt="" src="../images_b/METenders.gif" class="border" /></a><a href="http://www.africa.tendertiger.com/" target="_blank"><img alt="" src="../images_b/ATenders.gif" class="border" /></a></div>';


    return str;
}

//left Bottom
function advt() {
    //var table = document.createElement('table');
    var str = '<div><a href="http://www.tendertiger.com/NTC" target="_blank"><img id="NTC" src="http://202.71.136.154/images/ntc.gif" width="225px" height="58px" alt="ntcl" border="0" style="border: 0px black; margin-right: 0px; margin-bottom: 3px;margin-top: 3px;" /></a></div>';

     str += '<div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="" /></div>';
    
     //str += '<div><a href="http://www.apidoha2011.org" target="_blank" style="padding-left: 0px;"><img id="ImgAss3" align="center" src="http://202.71.136.154/images/api.gif" alt="SBI" style="border: 1px black; margin-right: 0px;" /></a></div>';

   // str += '<div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="" /></div>';
    
     str += '<div><a href="http://www.europeantenderservices.co.uk" target="_blank" style="padding-left: 0px;"><img id="ImgAss3" align="center" src="http://www.africa.tendertiger.com/images_b/european.gif" alt="European Tenders" style="border: 1px black; margin-right: 0px;" /></a></div>';
    
     str += '<div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="" /></div>';

     str += '<div><a href="http://www.tendertiger.com/FTenderRecords.aspx?sr_no=6022076&tt=&encp=328b56ba6f6a19dbe" target="_blank"><img id="GERMI" src="http://www.TenderTiger.com/images_b/GERMI.gif" width="220px"  alt="GERMI" border="0" style="border: 0px black; margin-right: 0px;" /></a></div>';
     
         str += '<div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="" /></div>';
        
        str += '<div><a href="http://www.tendertiger.com/FTenderRecords.aspx?sr_no=6017345&tt=&encp=7457bcc1c29fedee4" target="_blank"><img id="GSPC" src="http://www.TenderTiger.com/images_b/GSPC.gif" width="220px"  alt="GSPC" border="0" style="border: 0px black; margin-right: 0px;" /></a></div>';
        
            str += '<div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="" /></div>';
   
     
     str += '<div><a href="http://global.tendertiger.com/FTenderRecords.aspx?sr_no=5956596&tt=&encp=c1f562de29a622c55" target="_blank"><img id="FNPF" src="http://www.tendertiger.com/images_b/fnpf.gif" alt="fnpf" border="0" style="border: 0px black; margin-right: 0px; margin-bottom: 3px; margin-top: 3px;" /></a></div>';

     str += '<div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="" /></div>';

    
    str += '<div><a href="http://www.kam-avida.com" target="_blank"><img id="kam-adida" src="http://202.71.136.154/images/Kam-avida3.gif" width="220px" height="147px" alt="Kam-avida3" border="0" style="border: 0px black; margin-right: 0px;" /></a></div>';

    str += '<div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="" /></div>';
    
   // str += '<div style="min-height: 60px;"><a href="http://www.tendertiger.com/images/KovalamConference.zip" target="_blank"><img id="Img2" src="http://202.71.136.154/images/bnr.gif" width="220px" height="74px" alt="polymerupdate" class="border" style="margin-right: 0px; height: 58px;" /></a></div>';
    //str += '<div><a href="http://www.tendertiger.com/advtsrvy1.aspx?id=253" target="_blank" style="padding-left: 0px;"><img id="Img1" src="http://202.71.136.154/images/EBS.gif"  alt="Banners" border="0" width="220px" style="border: 0px black; margin-right: 0px;" /></a></div>';

    //str += '<div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="" /></div>';

    //str += '<div><a href="http://www.tendertiger.com/SBI/" target="_blank" style="padding-left: 0px;"><img id="ImgAss3" align="center" src="http://www.tendertiger.com/SbdImages/tenders_sbi.gif" alt="SBI" style="border: 1px black; margin-right: 0px;" /></a></div>';
 
 	
    
    str += '<div><img id="Imgbanners" src="http://202.71.136.154/images/banners.gif" width="182px" height="62px" alt="Banners" border="0" style="border: 0px black; margin-right: 0px;" /></div>';

    str += '<div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="" /></div>';

str += '<a href="http://www.tendertiger.com/BusinessPartner.aspx" target="_blank" style="padding-left: 0px;"><div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="" /></div><div><img id="ImgAds" src="http://202.71.136.154/images/BusinessPartner.gif" width="225px" height="103px" alt="Banners" border="0" style="border: 0px black;margin-right: 0px;" /></div><div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="Business Partner" /></a></div>';
    //str += '<div height="1" class="dot_line2"><br/><font face="Verdana" ><b><font color="#0000FF" size="2"><a style="text-decoration: underline; text-underline: single" href="http://www.Exhibition.TenderTiger.com">Exhibitions & Trade Shows</a></font></b><br><font color="#000000" style="font-size: 7pt">Get Information of Upcoming<br> Conferences &amp;&nbsp; Exhibitions - 09374519764</font><br/><b><a style="color: #0E774A; text-decoration: none;" href="http://www.Exhibition.TenderTiger.com"><font size="1">www.Exhibition.TenderTiger.com</font></a></b></font></div><br/>';
    
    return str;

};

//Botton ads

    function leftAdvt() {

        var str = '<table style="width: 100%;"><tr><td style="width: 5%;">&nbsp;</td><td style="width: 15%;" align="left">';

        //str += '<div style="min-height: 60px;"><a href="http://www.tendertiger.com/Subdomain.aspx?type=3" target="_blank"><img id="Img3" src="http://www.lanka.onetender.com/images/hosttender.gif" alt="Host Tender" border="1" style="border: 1px black;margin-right: 0px;height: 58px;" /></a></div>';

        str += '<div class="slideshow1" style="height: 58px;"><a href="http://www.tendertiger.com/Subdomain.aspx?type=3" target="_blank"><img id="Img3" src="http://202.71.136.154/images/hosttender.gif" alt="Host Tender" border="1" style="border: 1px black;margin-right: 0px;height: 58px;" /></a><a href="http://www.tendertiger.com/SBI/" target="_blank" style="padding-left: 0px;"><img id="Img1" align="center" src="http://202.71.136.154/images/tenders_sbi.gif" alt="SBI" style="border: 1px black; margin-right: 0px;" /></a><a href="http://www.tendertiger.com/GMC/" target="_blank"><img src="http://202.71.136.154/images/tenders_Gwalior.gif" alt="GMC" border="1" align="center" style="border: 1px black;" /></a> <a href="http://www.tendertiger.com/RCFL"target="_blank"><img id="Image1" src="SbdImages/tenders_RCFL.gif" alt="RCF" border="1" style="border: 1px black;" /></a><a href="http://www.tendertiger.com/MCA/" target="_blank"><img id="ImgAss1" src="http://202.71.136.154/images/tenders_mca.gif" alt="MCA" border="1" style="border: 0px black;margin-right: 0px;" /></a><a href="http://www.tendertiger.com/IIL/" target="_blank" ><img id="ImgAss1" align="center" src="http://202.71.136.154/images/tenders_ispat.gif" alt="IIL" style="border: 1px black;margin-right: 0px;" /></a></div>';

        //str += '</td><td style="width: 5%;" align="left"><td style="width: 20%;" align="center">';

        //str += '</td><td style="width: 5%;" align="left">';

        //str += '<div><a href="http://www.zircontech.com" target="_blank"><img id="zirconImg" src="http://www.tendertiger.com/images_b/zircon.gif" alt="ZIRCON" class="border" style="margin-right: 50px;" /></a></div>';

       // str += '<div height="1" align="center"><br/><font face="Verdana" ><b><font color="#0000FF" size="2"><a style="text-decoration: underline; text-underline: single" href="http://www.Exhibition.TenderTiger.com">Exhibitions & Trade Shows</a></font></b><br><font color="#000000" style="font-size: 7pt; text-align: center; ">Get Information of Upcoming<br> Conferences &amp;&nbsp; Exhibitions - 09374519764</font><br/><b><a style="color: #0E774A; text-decoration: none;" href="http://www.Exhibition.TenderTiger.com"><font size="1">www.Exhibition.TenderTiger.com</font></a></b></font></div><br/>';

        str += '</td><td style="width: 10%;" align="left">';

        str += '<div class="slideshow1" style="height: 58px;"><a href="http://www.visionindustrialexpo.com/" target="_blank"><img id="Img6" src="http://www.tendertiger.com/images_b/KolhapurExpo.gif" alt="kolhapur Expo" class="border" style="height: 58px; width:141px;" /></a></div>';
        
        //str += '<div><a href="http://www.jfpsgroup.com/homi/" target="_blank"><img id="Img5" src="http://www.tendertiger.com/images_b/HOMI.gif" alt="HOMI" class="border" style="height: 56px;" /></a></div>';   
       	
       	//str += '<div align="center"><a href="http://www.tendertiger.com/advtsrvy1.aspx?id=253" target="_blank"><img alt="" src="http://202.71.136.154/images/EBS.gif" width="220px" height="58px" class="border"/></a></div>';

        ////str += '</td><td style="width: 5%;" align="left">';

        ////str += '<div><a href="http://www.entrepreneurindia.org/ei2011/" target="_blank"><img id="enterprenuershipImg" src="http://www.tendertiger.com/images_b/enterprenueurship.gif" alt="enterprenuership" class="border" /></a></div></td>';
        
        //old of server
        //str += '<div style="min-height: 60px;"><a href="http://www.agilitylogistics.com" target="_blank"><img id="Img2" src="http://www.agilitylogistics.com/EN/GIL/PublishingImages/Header/logo.gif" alt="agility" class="border" style="margin-right: 0px; height: 58px;" /></a></div>';
    

        //str += '<div style="min-height: 60px;"><a href="http://www.agilitylogistics.com" target="_blank"><img id="Img2" src="http://www.agilitylogistics.com/EN/GIL/PublishingImages/Header/logo.gif" alt="agility" class="border" style="margin-right: 0px; height: 58px;" /></a></div>';

        //str += '<div style="min-height: 60px;"><a href="http://www.pgpc.co.in/ehpp/Default.aspx" target="_blank"><img id="Img2" src="http://www.tendertiger.com/images_b/polymer1.gif" alt="polymerupdate" class="border" style="margin-right: 0px; height: 58px;" /></a></div>';

        str += '</td><td style="width: 10%;" align="left">';

        str += '<div class="slideshow1" style="height: 58px;"> <a href="http://www.engg-expo.com" target="_blank">      <img alt="" src="http://www.tendertiger.com/images_b/EngExpo.gif" width="140px" height="58px" class="border" /></a></div>';
        
        //str += '<div><a href="http://www.assocham.org/events/showevent.php?id=565" target="_blank"><img id="Img5" src="http://www.Tendertiger.com/images_b/ct.gif" alt="Assocham" class="border" style="margin-right: 50px; height: 58px;" /></a></div>';
        
          //str + ='<script language="javascript">if (window.adgroupid == undefined) {	window.adgroupid = Math.round(Math.random() * 1000);}document.write('<scr'+'ipt language="javascript1.1" src="http://ads1.tyroo.com/addyn/3.0/1067/3149922/0/225/ADTECH;loc=100;target=_blank;grp='+window.adgroupid+';misc='+new Date().getTime()+'"></scri'+'pt>');</script><noscript><a href="http://ads1.tyroo.com/adlink/3.0/1067/3149922/0/225/ADTECH;loc=300" target="_blank"><img src="http://ads1.tyroo.com/adserv/3.0/1067/3149922/0/225/ADTECH;loc=300" border="0" width="728" height="90"></a></noscript>';

        str += '</td></tr></table>';

        return str;

    };
    
function ads() {

    var str =''
    //var str = '<a href="http://www.tendertiger.com/BusinessPartner.aspx" target="_blank" style="padding-left: 0px;"><div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="" /></div><div><img id="ImgAds" src="http://202.71.136.154/images/BusinessPartner.gif" width="225px" height="103px" alt="Banners" border="0" style="border: 0px black;margin-right: 0px;" /></div><div height="1" class="dot_line2"><img src="http://202.71.136.154/images/spacer.gif" width="1" height="1" alt="Business Partner" /></a></div>';

    return str;

};







function TopBanner() {

//    var tmp = "";
//    if (window.location.href.toLowerCase().indexOf("http://projectstiger.teserver3.com:8012") != -1) {
//        tmp = 'Projects/';
//    }else{
//        tmp = '';
//    }
    
//    http: //www.projects.tendertiger.com/
    var loadUrl = "Banners/Top.aspx?url=" + encodeURIComponent(window.location.href);
    //alert(loadUrl);
    LoadHTMLWithSlideshow("leftMiddleEast", loadUrl, '.slideshow1');
}
function LeftTopBanner() {
    var loadUrl = "Banners/LeftTop.aspx?url=" + encodeURIComponent(window.location.href);
    LoadHTMLWithSlideshow("leftTop", loadUrl, '.slideshow1');
}
function LeftMiddleBanner() {
    var loadUrl = "Banners/LeftMiddle.aspx?url=" + encodeURIComponent(window.location.href);
    LoadHTMLWithSlideshow("ads", loadUrl, '.slideshow1');
}
function LeftBottomBanner() {
    var loadUrl = "Banners/LeftBottom.aspx?url=" + encodeURIComponent(window.location.href);
    LoadHTMLWithSlideshow("advt", loadUrl, '.slideshow1');
}
function BottomBanner() {
    var loadUrl = "Banners/Bottom.aspx?url=" + encodeURIComponent(window.location.href);
    LoadHTMLWithSlideshow("leftAdvt", loadUrl, '.slideshow1');
}


function LoadHTML(name, loadUrl) {

    //new code start
    $.ajaxSetup({
        cache: false
    });
    var ajax_load = "<img src='http://www.tendertiger.com/images/Loading.gif' border='0' alt='Loading'/>";
    var divname = "#" + name;

    if (document.getElementById(name)) {
        $(divname).html(ajax_load).load(loadUrl);

    }

    //new code end
}
function LoadHTMLWithSlideshow(name, loadUrl, element) {

    //new code start
    $.ajaxSetup({
        cache: false
    });
    var ajax_load = "<img src='http://www.tendertiger.com/images/Loading.gif' border='0' alt='Loading'/>";
    var divname = "#" + name;

    if (document.getElementById(name)) {
        $(divname).html(ajax_load).load(loadUrl, function(msg) {

            $(element).cycle({
                fx: 'curtainX',
                timeout: 6000,
                delay: -2000 // choose your transition type, ex: fade, scrollUp, shuffle, etc...
            });
        });
    }
    //new code end
}


