﻿/*can do everywhere and always load simultaneously on body onload event*/

/*info and content panel height syncing*/
$(function(){
    var info = $("#info");
    if (info.length > 0) {
        var infoHeight=info.height();
        var infoSecHeight=$("#infosections").height();
        var contentHeight=$("#content").height();
        
        var infoTop=info.offset().top;
        var infoSecTop=$("#infosections").offset().top;
        
        if (infoHeight > contentHeight) {
            $("#content").css('padding-bottom', (infoHeight - contentHeight) + 'px');
        }
    }
    
//    if (infoHeight>contentHeight) {
//        $("#content").height(infoHeight);    
//    }

//    else{
//        $("#info").height(contentHeight);
//        
//        if ($.browser.msie){
//            $("#infosections").height(contentHeight-infoSecTop+infoTop+11);
//        }
//        else{
//        $("#infosections").height(contentHeight-infoSecTop+infoTop-8);
//        }
//    } 
});

/*dot management*/

$(function(){


    //get all elements
    $("#links a").each(function(){
        $(this).html("<img src='/img/dot.png' border='0'/>"+$(this).html());
    });
    
    $("#lavalampTop").lavaLamp({
        fx: "easeOutCubic",
        speed: 700,
        linum: window.menuIndex || 0,
        click: function() {return true;}
    });

    
});

    


