﻿    $("#facebook").hover(function () {
        $(this).attr('src','images/facebook-hover.jpg');
    },
    function() {
        $(this).attr('src','images/facebook.jpg');
    });


    $("#blog").hover(function () {
        $(this).attr('src','images/blog-hover.jpg');
    },
    function() {
        $(this).attr('src','images/blog.jpg');
    });

    $("#linkedin").hover(function () {
        $(this).attr('src','images/linkedin-hover.jpg');
    },
    function() {
        $(this).attr('src','images/linkedin.jpg');
    });

    /*$(".cssTool li a, .cssSurvey li a, .cssAnalytics li a").hover(function () {
        $(this).parent().parent().parent().css('background-color', '#606F6C');
		//alert($(this).parent().parent().parent().css("background-color")+" _ "+$(this).parent().parent().parent().css("color"));
        $(this).parent().parent().parent().children().find("span:first").css('color', '#ffffff');        
    },
    function () {
        $(this).parent().parent().parent().children().find("span:first").css('color', '#606F6C');
		//alert($(this).parent().parent().parent().css("background-color")+" _ "+$(this).parent().parent().parent().css("color"));
        $(this).parent().parent().parent().css('background-color', '#CBCEC3');
    });*/

    /*$(".menu2item").hover(function () {
        $(this).css('background-color', '#606F6C');
        $(this).children().find("span:first").css('color', '#ffffff');
    },
    function () {
        $(this).css('background-color', '#CBCEC3');
        $(this).children().find("span:first").css('color', '#606F6C');

    });*/

    $("#talktous, .talkus").hover(function () {
        $("#talktous").attr('src', 'images/talkus-hover.jpg').css('cursor', 'pointer');
        $("#mailicon").attr('src', 'images/mail_icon-hover.jpg');
        $(".talkus").css('background-color', '#838F8B').css('cursor','pointer');                        
    },
    function () {
        $("#talktous").attr('src', 'images/talkus.jpg').css('cursor', 'pointer');
        $("#mailicon").attr('src', 'images/mail_icon.jpg');
        $(".talkus").css('background-color', '#606F6C').css('cursor','default');
    });

    $("#joinourpanel, .joinourpanel").hover(function () {
        $("#joinourpanel").attr('src', 'images/joinourpanel-hover.jpg').css('cursor', 'pointer');
        $(".joinourpanel").css('background-color', '#AFB1A8').css('cursor', 'pointer');
    },
    function () {
        $("#joinourpanel").attr('src', 'images/joinourpanel.jpg').css('cursor', 'pointer');
        $(".joinourpanel").css('background-color', '#CBCEC3').css('cursor', 'default');
    });


    $(document).ready(function () {
		var divHeight = ($(this).height() - 329 - 81) > ($(".rightcolumn").height()) ? ($(this).height() - 329 - 81) : ($(".rightcolumn").height());
		var divLeftHeight = $(".leftcolumn").height();
		//alert(divLeftHeight);
		$(".leftcolumn").height(divHeight > divLeftHeight ? divHeight : divLeftHeight);
	});
