﻿ var totalTopAdd;
    totalTopAdd=1;
    var topAnc=new Array();
    var topImg=new Array();
    var topAlt=new Array();
    //Satyamev Chhavni
    topAnc[0]="http://www.satyamevchhavani.com";    
    topImg[0]='images/topbanners/satyamev1.gif';
    topAlt[0]="Satyamev Chhavani - ICON Ahmedabad";
    
    //PropertySamrat
    topImg[1]="images/top_add.gif"
    topAlt[1]="Property Samrat";
    topAnc[1]="www.propertysamrat.com";
    var currentAdv;
    var t;
    topBannerMouseOut=function()
    {
      t=setTimeout("addRotation("+currentAdv+");",8000);  
    }
    topBannerMouseOver=function()
    {
        clearTimeout(t);
    }
    function addRotation(number)
    {
        document.getElementById("topAnchor").href=topAnc[number];
        document.getElementById("topBanner").src=topImg[number];
        document.getElementById("topBanner").alt=topAlt[number];
        number=number+1;
        if(number>totalTopAdd)
        {
            number=0;
        }
        currentAdv=number;
      t=setTimeout("addRotation("+number+");",2000);
    }    
////Code For Right Side Banner1
//    var totalRight1Add;
//    totalRight1Add=1;
//    var Right1Anc=new Array();
//    var Right1Img=new Array();
//    var Right1Alt=new Array();
//    //Satyamev Chhavni
//    Right1Anc[0]="http://www.shivalikprojects.com";    
//    Right1Img[0]='images/topbanners/shivalikbanner.gif';
//    Right1Alt[0]="Shivalik Projects Ahmedabad";
//    
//    //PropertySamrat
//    Right1Img[1]="http://www.propertysamrat.com/images/right_add.jpg"
//    Right1Alt[1]="Property Samrat Complete Real Estate Solution";
//    Right1Anc[1]="#";
//    var currentR1Adv;
//    var tR1;
//    right1BannerMouseOut=function()
//    {
//      tR1=setTimeout("addRotationR1("+currentR1Adv+");",2000);  
//    }
//    right1BannerMouseOver=function()
//    {
//        clearTimeout(tR1);
//    }
//    function addRotationR1(number)
//    {
//        document.getElementById("arightadd1").href=Right1Anc[number];
//        document.getElementById("imgrightadd1").src=Right1Img[number];
//        document.getElementById("imgrightadd1").alt=Right1Alt[number];
//        number=number+1;
//        if(number>totalRight1Add)
//        {
//            number=0;
//        }
//        currentR1Adv=number;
//      tR1=setTimeout("addRotationR1("+number+");",2000);
//    }    
//Code For Right Side Banner2..
 var totalRight2Add;
    totalRight2Add=1;
    var Right2Anc=new Array();
    var Right2Img=new Array();
    var Right2Alt=new Array();
   
    //PropertySamrat
    Right2Img[0]="http://www.propertysamrat.com/images/right_add2.jpg"
    Right2Alt[0]="Property Samrat Complete Real Estate Solution";
    Right2Anc[0]="#";
    
    //CNV
      Right2Img[1]="http://www.propertysamrat.com/images/topbanners/cnvbanner.gif"
    Right2Alt[1]="CNV Infotech Pvt Ltd - Your Search end here for Designing and Software Development";
    Right2Anc[1]="http://www.cnvinfotech.com";
    
    var currentR2Adv;
    var tR2;
    right2BannerMouseOut=function()
    {
      tR2=setTimeout("addRotationR2("+currentR2Adv+");",2000);  
    }
    right2BannerMouseOver=function()
    {
        clearTimeout(tR2);
    }
    function addRotationR2(number2)
    {
        document.getElementById("arightadd2").href=Right2Anc[number2];
        document.getElementById("imgrightadd2").src=Right2Img[number2];
        document.getElementById("imgrightadd2").alt=Right2Alt[number2];
        number2=number2+1;
        if(number2>totalRight2Add)
        {
            number2=0;
        }
        currentR2Adv=number2;
      tR2=setTimeout("addRotationR2("+number2+");",2000);
    }    