﻿function showdropDown() {
    document.getElementById("ulServices").style.display = "block";
}

function showdropDown1() {
    document.getElementById("ulLeadership").style.display = "block";
}

function hidedropDown() {
    document.getElementById("ulServices").style.display = "none";
}

function hidedropDown1() {
    document.getElementById("ulLeadership").style.display = "none";

}








//for setting the opacity when image is changing....
function SetOpacity(object, opacityPct) {
    // IE.
    object.style.filter = 'alpha(opacity=' + opacityPct + ')';
    // Old mozilla and firefox
    object.style.MozOpacity = opacityPct / 100;
    // Everything else.
    object.style.opacity = opacityPct / 100;
}
function ChangeOpacity(id, msDuration, msStart, fromO, toO) {
    var element = document.getElementById(id);
    var opacity = element.style.opacity * 100;
    var msNow = (new Date()).getTime();
    opacity = fromO + (toO - fromO) * (msNow - msStart) / msDuration;
    if (opacity < 0)
        SetOpacity(element, 0)
    else if (opacity > 100)
        SetOpacity(element, 100)
    else {
        SetOpacity(element, opacity);
        element.timer = window.setTimeout("ChangeOpacity('" + id + "'," + msDuration + "," + msStart + "," + fromO + "," + toO + ")", 1);
    }
}
function FadeInImage(foregroundID, newImage, backgroundID,hiddenfieldId) {
    stop();
    var foreground = document.getElementById(foregroundID);
    if (backgroundID) {
        var background = document.getElementById(backgroundID);
        if (background) 
        {
            background.style.backgroundImage = 'url(' + foreground.src + ')';
            background.style.backgroundRepeat = 'no-repeat';
        }
    }
    SetOpacity(foreground, 0);
    foreground.src = 'images/' + newImage;
    document.getElementById(hiddenfieldId).value = newImage;
    if (foreground.timer) window.clearTimeout(foreground.timer);
    var startMS = (new Date()).getTime();
    foreground.timer = window.setTimeout("ChangeOpacity('" + foregroundID + "',1000," + startMS + ",0,100)", 10);
}
var dht;
function AutmaticChangingImage() {
    var HF = document.getElementById('ContentPlaceHolder1_HFFile');

    if (HF.value == 'HomeROTATOR 2.jpg') 
    {
        HF.value = "HomeROTATOR 3.jpg";
        FadeInImage('ImgRotators', 'HomeROTATOR 3.jpg', 'emilybackgrounddiv', 'ContentPlaceHolder1_HFFile');
    }
    else if (HF.value == 'HomeROTATOR 1.jpg')
     {
         HF.value = "HomeROTATOR 2.jpg";
         FadeInImage('ImgRotators', 'HomeROTATOR 2.jpg', 'emilybackgrounddiv', 'ContentPlaceHolder1_HFFile');
    }
     else if (HF.value == 'HomeROTATOR 3.jpg') {
         HF.value = "HomeROTATOR 4.jpg";
         FadeInImage('ImgRotators', 'HomeROTATOR 4.jpg', 'emilybackgrounddiv', 'ContentPlaceHolder1_HFFile')

    }
     else if (HF.value == 'HomeROTATOR 4.jpg') {
        HF.value = "HomeROTATOR 5.jpg";
        FadeInImage('ImgRotators', 'HomeROTATOR 5.jpg', 'emilybackgrounddiv', 'ContentPlaceHolder1_HFFile')

    }
    else if (HF.value == 'HomeROTATOR 5.jpg') {
        HF.value = "HomeROTATOR 1.jpg";
        FadeInImage('ImgRotators', 'HomeROTATOR 1.jpg', 'emilybackgrounddiv', 'ContentPlaceHolder1_HFFile')

    }
    dht = window.setTimeout("AutmaticChangingImage();", 3000);
}


//Automatic image changing for services tab(Acoustics)

var acoustics;
function AutmaticChangingImageAcoustics() {

    var HF = document.getElementById('ContentPlaceHolder1_HFFile1');


    if (HF.value == 'AcousticsROTATOR 1.jpg')
     {
         HF.value = "AcousticsROTATOR 2.jpg";
         
         FadeInImage('AcousticsImgRotators', 'AcousticsROTATOR 2.jpg', 'Servicesemilybackgrounddiv1', 'ContentPlaceHolder1_HFFile1');
    }
    else if (HF.value == 'AcousticsROTATOR 2.jpg') 
    {
        HF.value = "AcousticsROTATOR 1.jpg";
        FadeInImage('AcousticsImgRotators', 'AcousticsROTATOR 1.jpg', 'Servicesemilybackgrounddiv1', 'ContentPlaceHolder1_HFFile1')
    }

    acoustics = window.setTimeout("AutmaticChangingImageAcoustics();", 3000);
}

//Automatic image changing for services tab(Vibration)

var vibration;
function AutmaticChangingImageVibration() {

    var HF = document.getElementById('ContentPlaceHolder1_HFFile2');

   
    if (HF.value == 'VibrationROTATOR 1.jpg') {
        HF.value = "VibrationROTATOR 2.jpg";
        FadeInImage('VibrationImgRotators', 'VibrationROTATOR 2.jpg', 'Servicesemilybackgrounddiv2', 'ContentPlaceHolder1_HFFile2');
    }
    else if (HF.value == 'VibrationROTATOR 2.jpg') {
        HF.value = "VibrationROTATOR 3.jpg";
        FadeInImage('VibrationImgRotators', 'VibrationROTATOR 3.jpg', 'Servicesemilybackgrounddiv2', 'ContentPlaceHolder1_HFFile2');
    }
    else if (HF.value == 'VibrationROTATOR 3.jpg') {

        HF.value = "VibrationROTATOR 1.jpg";
        FadeInImage('VibrationImgRotators', 'VibrationROTATOR 1.jpg', 'Servicesemilybackgrounddiv2', 'ContentPlaceHolder1_HFFile2')

    }
    vibration = window.setTimeout("AutmaticChangingImageVibration();", 3000);
}


//Automatic image changing for services tab(Environmental Noise)
var environment;
function AutmaticChangingImageEnvironment() {

    var HF = document.getElementById('ContentPlaceHolder1_HFFile3');

    if (HF.value == 'EnvironmentROTATOR 1.jpg') {
        HF.value = "EnvironmentROTATOR 2.jpg";
        FadeInImage('EnvironmentImgRotators', 'EnvironmentROTATOR 2.jpg', 'Servicesemilybackgrounddiv3', 'ContentPlaceHolder1_HFFile3');
    }
    else if (HF.value == 'EnvironmentROTATOR 2.jpg') {
        HF.value = "EnvironmentROTATOR 3.jpg";
        FadeInImage('EnvironmentImgRotators', 'EnvironmentROTATOR 3.jpg', 'Servicesemilybackgrounddiv3', 'ContentPlaceHolder1_HFFile3');
    }
    else if (HF.value == 'EnvironmentROTATOR 3.jpg') {

        HF.value = "EnvironmentROTATOR 1.jpg";
        FadeInImage('EnvironmentImgRotators', 'EnvironmentROTATOR 1.jpg', 'Servicesemilybackgrounddiv3', 'ContentPlaceHolder1_HFFile3')

    }
    environment = window.setTimeout("AutmaticChangingImageEnvironment();", 3000);
}


//Automatic image changing for services tab(Audio Visual Design)

var AudioVisual;
function AutmaticChangingImageAudioVisual() {

    var HF = document.getElementById('ContentPlaceHolder1_HFFile4');
    if (HF.value == 'AudioVisualROTATOR 1.jpg') 
    {
        HF.value = "AudioVisualROTATOR 2.jpg";
        FadeInImage('AudioVisualImgRotators', 'AudioVisualROTATOR 2.jpg', 'Servicesemilybackgrounddiv4', 'ContentPlaceHolder1_HFFile4');
    }

    else if (HF.value == 'AudioVisualROTATOR 2.jpg') 
    {
        HF.value = "AudioVisualROTATOR 3.jpg";
        FadeInImage('AudioVisualImgRotators', 'AudioVisualROTATOR 3.jpg', 'Servicesemilybackgrounddiv4', 'ContentPlaceHolder1_HFFile4');
    }

    else if (HF.value == 'AudioVisualROTATOR 3.jpg') 
    {
        HF.value = "AudioVisualROTATOR 4.jpg";
        FadeInImage('AudioVisualImgRotators', 'AudioVisualROTATOR 4.jpg', 'Servicesemilybackgrounddiv4', 'ContentPlaceHolder1_HFFile4');
    }

    else if (HF.value == 'AudioVisualROTATOR 4.jpg') {
        HF.value = "AudioVisualROTATOR 1.jpg";
        FadeInImage('AudioVisualImgRotators', 'AudioVisualROTATOR 1.jpg', 'Servicesemilybackgrounddiv4', 'ContentPlaceHolder1_HFFile4');
    }

    AudioVisual = window.setTimeout("AutmaticChangingImageAudioVisual();", 3000);
}


var arrowup = '0';
var accordianId;

//Automatic image changing for Projects page(Commercial)

var ProCommercial;

var thumbs = 'thumbs1';
var slideshow = 'slideshow1';
var controls = 'controls1';
var caption = 'caption1';
var loading = 'loading1';
function AutmaticChangingImageProCommercial(source, AccordId, eventoccurring) {
   
    accordianId = AccordId;
    if (arrowup == '0') {
        arrowup = '0';
    }
    if (eventoccurring == 'clickevent')
    { arrow(source, AccordId); }
//    if (source == '0') {

//        thumbs = 'thumbs1';
//        slideshow = 'slideshow1';
//        controls = 'controls1';
//        caption = 'caption1';
//        loading = 'loading1';
//    }



    var maxScroll = $(divId)
      .attr("scrollHeight") -
      $(divId).height();
    
    $(divId)
      .animate({
          scrollTop: 
     (maxScroll / 100)
      }, 100);
     
}


//Automatic image changing for Projects page(Education)

var ProEducation
function AutmaticChangingImageProEducation(source, AccordId, eventoccurring) {
    
    accordianId = AccordId;
    if (arrowup == '1') {
        arrowup = '1';
    }
    if (eventoccurring == 'clickevent')
    { arrow(source, AccordId); }

//    if (source == '1') {

//        thumbs = 'thumbs2';
//        slideshow = 'slideshow2';
//        controls = 'controls2';
//        caption = 'caption2';
//        loading = 'loading2';
//        //hideProjectsDivs();
//        document.getElementById("container1").style.display = "none";
//        document.getElementById("container2").style.display = "block";
//        abc();
//    }
    

}


//Automatic image changing for Projects page(Hospitality)

var ProHospitality
function AutmaticChangingImageProHospitality(source, AccordId, eventoccurring) {
    accordianId = AccordId;
    if (arrowup == '2') {
        arrowup = '2';
    }
    if (eventoccurring == 'clickevent')
    { arrow(source, AccordId); }

    if (source == '2') {

        thumbs = 'thumbs3';
        slideshow = 'slideshow3';
        controls = 'controls3';
        caption = 'caption3';
        loading = 'loading3';
    }


}


//Automatic image changing for Projects page(Medical)

var ProMedical
function AutmaticChangingImageProMedical(source, AccordId, eventoccurring) {
    accordianId = AccordId;
    if (arrowup == '3') {
        arrowup = '3';
    }
    if (eventoccurring == 'clickevent')
    { arrow(source, AccordId); }
    if (source == '3') {

        thumbs = 'thumbs4';
        slideshow = 'slideshow4';
        controls = 'controls4';
        caption = 'caption4';
        loading = 'loading4';
    }

}


//Automatic image changing for Projects page(Transportation)

var ProTransportation
function AutmaticChangingImageProTransportation(source, AccordId, eventoccurring) {
    accordianId = AccordId;
    if (arrowup == '4') {
        arrowup = '4';
    }
    if (eventoccurring == 'clickevent')
    { arrow(source, AccordId); }
    if (source == '4') {

        thumbs = 'thumbs5';
        slideshow = 'slideshow5';
        controls = 'controls5';
        caption = 'caption5';
        loading = 'loading5';
    }

}



//Automatic image changing for Projects page(Residential)

var ProResidential
function AutmaticChangingImageProResidential(source, AccordId, eventoccurring) {
    accordianId = AccordId;
    if (arrowup == '5') {
        arrowup = '5';
    }
    if (eventoccurring == 'clickevent')
    { arrow(source, AccordId); }
    if (source == '5') {

        thumbs = 'thumbs6';
        slideshow = 'slideshow6';
        controls = 'controls6';
        caption = 'caption6';
        loading = 'loading6';
    }
}


//Automatic image changing for Projects page(Retail)

var ProRetail
function AutmaticChangingImageProRetail(source, AccordId, eventoccurring) {
    accordianId = AccordId;
    if (arrowup == '6') {
        arrowup = '6';
    }
    if (eventoccurring == 'clickevent')
    { arrow(source, AccordId); }
    if (source == '6') {

        thumbs = 'thumbs7';
        slideshow = 'slideshow7';
        controls = 'controls7';
        caption = 'caption7';
        loading = 'loading7';
    }
}


//Automatic image changing for Projects page(Public)

var ProPublic
function AutmaticChangingImageProPublic(source, AccordId, eventoccurring) {
    accordianId = AccordId;
    if (arrowup == '7') {
        arrowup = '7';
    }
    if (eventoccurring == 'clickevent')
    { arrow(source, AccordId); }
    if (source == '7') {

        thumbs = 'thumbs8';
        slideshow = 'slideshow8';
        controls = 'controls8';
        caption = 'caption8';
        loading = 'loading8';
    }
}

function stop() {
    if (dht != null)
        clearTimeout(dht);
    if (vibration != null)
        clearTimeout(vibration);
    if (acoustics != null)
        clearTimeout(acoustics);
    if (environment != null)
        clearTimeout(environment);
    if (AudioVisual != null)
        clearTimeout(AudioVisual);
    if (ProCommercial != null)
        clearTimeout(ProCommercial);
    if (ProEducation != null)
        clearTimeout(ProEducation);
    if (ProHospitality != null)
        clearTimeout(ProHospitality);
    if (ProTransportation != null)
        clearTimeout(ProTransportation);
    if (ProResidential != null)
        clearTimeout(ProResidential);
    if (ProRetail != null)
        clearTimeout(ProRetail);
    if (ProPublic != null)
        clearTimeout(ProPublic);
}




function activemenutab(tabvalue) 
{
    var selectedTab = tabvalue;
    if (tabvalue == "Home") {
        
        //background.style.backgroundImage = 'url(' + foreground.src + ')';
        //document.getElementById('ahome').style.color = "#940910";
        //document.getElementById("ahome").style.backgroundImage = 'url(C:\\VSAIndiaggg\\images\\backhover.JPG)';


        document.getElementById("ahome").style.backgroundImage = 'url(../images/backhover.JPG)';
        
    }
    else if (tabvalue == "Projects") {
        document.getElementById("aprojects").style.backgroundImage = 'url(../images/backhover.JPG)';
    }

    else if (tabvalue == "Services") {
        document.getElementById("aservices").style.backgroundImage = 'url(../images/backhover.JPG)';

    }

    else if (tabvalue == "People") {
        document.getElementById("apeople").style.backgroundImage = 'url(../images/backhover.JPG)';
    }

    else if (tabvalue == "Contact Us") {
        document.getElementById("contactInfo").style.display = "block";
        document.getElementById("acontactus").style.backgroundImage = 'url(../images/backhover.JPG)';

    }
}



var divId = '';
var sipPos1 = 0;
var sipPos2 = 0;
var sipPos3 = 0;
var sipPos4 = 0;
function activetab(tabvalue) {

    var selectedTab = tabvalue;

    if (tabvalue == 'Acoustics') {
        SelectTabWhite();
        AutmaticChangingImageAcoustics();
        document.getElementById("aAcoustics").style.color = "#940910";
        document.getElementById("Acoustics").style.display = "block";
        if ((sipPos2 == -480)) {
            $(document).ready(function () {
                $("#Servicespanel2").animate({ top: sipPos2 }, 400, 'linear', function () {
                    sipPos2 = 0;
                    document.getElementById("OpenTab2").style.display = 'block';
                    document.getElementById("close2").style.display = 'none';
                });
            });
        }
        if ((sipPos3 == -480)) {
            $(document).ready(function () {
                $("#Servicespanel3").animate({ top: sipPos3 }, 400, 'linear', function () {
                    sipPos3 = 0;
                    document.getElementById("OpenTab3").style.display = 'block';
                    document.getElementById("close3").style.display = 'none';
                });
            });
        }

        if ((sipPos4 == -480)) {
            $(document).ready(function () {
                $("#Servicespanel4").animate({ top: sipPos4 }, 400, 'linear', function () {
                    sipPos4 = 0;
                    document.getElementById("OpenTab4").style.display = 'block';
                    document.getElementById("close4").style.display = 'none';
                });
            });
        }
        $(document).ready(function () {
            $('#scrollbar2').tinyscrollbar();
        });
    }
    else if (tabvalue == 'Vibration') {
        SelectTabWhite();
        AutmaticChangingImageVibration();
        document.getElementById("aVibration").style.color = "#940910";
        document.getElementById("Vibration").style.display = "block";
        if ((sipPos1 == -480)) {
            $(document).ready(function () {
                $("#Servicespanel1").animate({ top: sipPos1 }, 400, 'linear', function () {
                    sipPos1 = 0;
                    document.getElementById("OpenTab1").style.display = 'block';
                    document.getElementById("close").style.display = 'none';
                });
            });
        }
        if ((sipPos3 == -480)) {
            $(document).ready(function () {
                $("#Servicespanel3").animate({ top: sipPos3 }, 400, 'linear', function () {
                    sipPos3 = 0;
                    document.getElementById("OpenTab3").style.display = 'block';
                    document.getElementById("close3").style.display = 'none';
                });
            });
        }

        if ((sipPos4 == -480)) {
            $(document).ready(function () {
                $("#Servicespanel4").animate({ top: sipPos4 }, 400, 'linear', function () {
                    sipPos4 = 0;
                    document.getElementById("OpenTab4").style.display = 'block';
                    document.getElementById("close4").style.display = 'none';
                });
            });
        }
        $(document).ready(function () {
            $('#scrollbarVibration').tinyscrollbar();
        });
    }
    else if (tabvalue == 'Enviornment') {
        SelectTabWhite();
        AutmaticChangingImageEnvironment();
        document.getElementById("aEnviornment").style.color = "#940910";
        document.getElementById("EnviornmentalNoise").style.display = "block";
        if ((sipPos1 == -480)) {
            $(document).ready(function () {
                $("#Servicespanel1").animate({ top: sipPos1 }, 400, 'linear', function () {
                    sipPos1 = 0;
                    document.getElementById("OpenTab1").style.display = 'block';
                    document.getElementById("close").style.display = 'none';
                });
            });
        }
        if ((sipPos2 == -480)) {
            $(document).ready(function () {
                $("#Servicespanel2").animate({ top: sipPos2 }, 400, 'linear', function () {
                    sipPos2 = 0;
                    document.getElementById("OpenTab2").style.display = 'block';
                    document.getElementById("close2").style.display = 'none';
                });
            });
        }

        if ((sipPos4 == -480)) {
            $(document).ready(function () {
                $("#Servicespanel4").animate({ top: sipPos4 }, 400, 'linear', function () {
                    sipPos4 = 0;
                    document.getElementById("OpenTab4").style.display = 'block';
                    document.getElementById("close4").style.display = 'none';
                });
            });
        }
    }

    else if (tabvalue == 'AudioVisual') {
        SelectTabWhite();
        AutmaticChangingImageAudioVisual();
        document.getElementById("aAudioVisual").style.color = "#940910";
        document.getElementById("AudioVisual").style.display = "block";
        if ((sipPos1 == -480)) {
            $(document).ready(function () {
                $("#Servicespanel1").animate({ top: sipPos1 }, 400, 'linear', function () {
                    sipPos1 = 0;
                    document.getElementById("OpenTab1").style.display = 'block';
                    document.getElementById("close").style.display = 'none';
                });
            });
        }
        if ((sipPos2 == -480)) {
            $(document).ready(function () {
                $("#Servicespanel2").animate({ top: sipPos2 }, 400, 'linear', function () {
                    sipPos2 = 0;
                    document.getElementById("OpenTab2").style.display = 'block';
                    document.getElementById("close2").style.display = 'none';
                });
            });
        }

        if ((sipPos3 == -480)) {
            $(document).ready(function () {
                $("#Servicespanel3").animate({ top: sipPos3 }, 400, 'linear', function () {
                    sipPos3 = 0;
                    document.getElementById("OpenTab3").style.display = 'block';
                    document.getElementById("close3").style.display = 'none';
                });
            });
        }
        $(document).ready(function () {
            $('#scrollbarAudio').tinyscrollbar();
        });
    }

}


function SelectTabWhite() 
{
    document.getElementById("aAcoustics").style.color = "white";
    document.getElementById("aVibration").style.color = "white";
    document.getElementById("aEnviornment").style.color = "white";
    document.getElementById("aAudioVisual").style.color = "white";

    document.getElementById("Acoustics").style.display = "none";
    document.getElementById("Vibration").style.display = "none";
    document.getElementById("EnviornmentalNoise").style.display = "none";
    document.getElementById("AudioVisual").style.display = "none";

}


//to display the processing modal dialog box.......
function ProcessingDialog() {
    $find('ProcessingProgress').show();
}

function test(source,AccordId) {
    alert(source.id);
}
function arrow(source, AccordId) {
    var s = 0;
    if (source == "0")
    { s = 0; }
    else if (source == "1")
    { s = 1; }
    else if (source == "2")
    { s = 2; }
    else if (source == "3")
    { s = 3; }
    else if (source == "4")
    { s = 4; }
    else if (source == "5")
    { s = 5; }
    else if (source == "6")
    { s = 6; }
    else if (source == "7")
    { s = 7; }
    else if (source == "8")
    { s = 8; }
    var path = document.getElementById('ContentPlaceHolder1_' + AccordId).getElementsByTagName("img").item(s).src;
    var path = path.substring(path.lastIndexOf("i"));
    if (s == arrowup) {
        if (path == "images/DropDownButton.png") {
            document.getElementById('ContentPlaceHolder1_' + AccordId).getElementsByTagName("img").item(s).src = "images/DropUpButton.png";
        }
        else if (path == "images/DropUpButton.png") {
            document.getElementById('ContentPlaceHolder1_' + AccordId).getElementsByTagName("img").item(s).src = "images/DropDownButton.png";

        }
    }
    else {
        if (path == "images/DropDownButton.png") {
            document.getElementById('ContentPlaceHolder1_' + AccordId).getElementsByTagName("img").item(s).src = "images/DropUpButton.png";
        }
        document.getElementById('ContentPlaceHolder1_' + AccordId).getElementsByTagName("img").item(parseInt(arrowup)).src = "images/DropDownButton.png";
        arrowup = s;
    }
}


function ShowPeoplediv(passedId) 
{

    if (passedId == 'DirectorVSA') {
        document.getElementById("DirectorVSA").style.display = "block";
        document.getElementById("DirectorAVD").style.display = "none";
       
        
    }

    else if (passedId == 'DirectorAVD') {
        document.getElementById("DirectorAVD").style.display = "block";
        document.getElementById("DirectorVSA").style.display = "none";

    }
    function hideProjectsDivs() 
    {
        //document.getElementById("container1").style.display = "none";
//        document.getElementById("container2").style.display = "none";
//        document.getElementById("container3").style.display = "none";
//        document.getElementById("container4").style.display = "none";
//        document.getElementById("container5").style.display = "none";
//        document.getElementById("container6").style.display = "none";
//        document.getElementById("container7").style.display = "none";
//        document.getElementById("container8").style.display = "none";
//        document.getElementById("container9").style.display = "none";
//        document.getElementById("container10").style.display = "none";
    }
}


var count1 = 1;
var count2 = 1;
var count3 = 1;
var count4 = 1;
var count5 = 1;
var count6 = 1;
var count7 = 1;

function DisplayProjectDivs(divid) {
    if (divid == 'Airports')
{
    thumbs = 'thumbs1';
    slideshow = 'slideshow1';
    controls = 'controls1';
    caption = 'caption1';
    loading = 'loading1';
    document.getElementById("ContentPlaceHolder1_lblselectedheading").innerHTML = "Airports"; 
    
}
else if (divid == 'CityBuildings') 
{
    thumbs = 'thumbs2';
    slideshow = 'slideshow2';
    controls = 'controls2';
    caption = 'caption2';
    loading = 'loading2';
    if (count2 == 1) {
        abc();
    }
    count2 = 0;
    document.getElementById("ContentPlaceHolder1_lblselectedheading").innerHTML = "City Buildings";
}
else if (divid == 'Education') {
    thumbs = 'thumbs3';
    slideshow = 'slideshow3';
    controls = 'controls3';
    caption = 'caption3';
    loading = 'loading3';
    if (count3 == 1) {
        abc();
    }
    count3 = 0;
    document.getElementById("ContentPlaceHolder1_lblselectedheading").innerHTML = "Education";
}
else if (divid == 'Hotels') {
    thumbs = 'thumbs4';
    slideshow = 'slideshow4';
    controls = 'controls4';
    caption = 'caption4';
    loading = 'loading4';
    if (count4 == 1) {
        abc();
    }
    count4 = 0;
    document.getElementById("ContentPlaceHolder1_lblselectedheading").innerHTML = "Hotels & Restaurants";
}
else if (divid == 'Medical') {
    thumbs = 'thumbs5';
    slideshow = 'slideshow5';
    controls = 'controls5';
    caption = 'caption5';
    loading = 'loading5';
    if (count5 == 1) {
        abc();
    }
    count5 = 0;
    document.getElementById("ContentPlaceHolder1_lblselectedheading").innerHTML = "Medical";
}
else if (divid == 'Public') {
    thumbs = 'thumbs6';
    slideshow = 'slideshow6';
    controls = 'controls6';
    caption = 'caption6';
    loading = 'loading6';
    if (count6 == 1) {
        abc();
    }
    count6 = 0;
    document.getElementById("ContentPlaceHolder1_lblselectedheading").innerHTML = "Public Projects";
}
else if (divid == 'Residential') {
    thumbs = 'thumbs7';
    slideshow = 'slideshow7';
    controls = 'controls7';
    caption = 'caption7';
    loading = 'loading7';
    if (count7 == 1) {
        abc();
    }
    count7 = 0;
    document.getElementById("ContentPlaceHolder1_lblselectedheading").innerHTML = "Residential & Mixed Use";
}


//if ((count1 == 1) || (count2 == 1) || (count3 == 1) || (count4 == 1) || (count5 == 1) || (count6 == 1) || (count7 == 1)) {
//alert(count2)
//    abc();
//}
   
HideProjectDivs();

document.getElementById(divid).style.display = "block";


}

function HideProjectDivs()
{
    document.getElementById("Airports").style.display = "none";
    document.getElementById("CityBuildings").style.display = "none";
    document.getElementById("Education").style.display = "none";
    document.getElementById("Hotels").style.display = "none";
    document.getElementById("Medical").style.display = "none";
    document.getElementById("Public").style.display = "none";
    document.getElementById("Residential").style.display = "none";
}

function sendmail() 
{
    document.getElementById("contactInfo").style.display = "none";
    document.getElementById("EmailForm").style.display = "block";
}
