$(document).ready(function () {

//Hover Menu

 $('#main_menu_list > .main_menu_item').hoverIntent(function () {
        $(this).children('ul').slideDown(400);
    },     
        function () {        
        $(this).children('ul').slideUp(200); });
 $('#main_menu_list > .main_menu_item > .sub-menu > .menu-item').hoverIntent(function () {
        $(this).children('ul').animate({width:'135%'},400);
    },
        function () {    
        $(this).children('ul').animate({width:'0px'},200); 
                    });   



//Tabs

$('.tab_window div.tab_content_window').hide();
$('.tab_window div:nth-child(1)').show();
$('.tab_window ul li:first').addClass('active');

$('.tab_window ul li a').click(function(){
$('.tab_window ul li').removeClass('active');
$(this).parent().addClass('active');
var currentTab = $(this).attr('href');
$('.tab_window div.tab_content_window').hide();
$(currentTab).show();
return false;
});



//Text Size

/*
$('a.small_text').click(function () {
    $('#content_window p').addClass('small_text');
    $('#content_window p').removeClass('medium_text');
    $('#content_window p').removeClass('large_text');
});

$('a.medium_text').click(function () {
    $('#content_window p').removeClass('small_text');
    $('#content_window p').addClass('medium_text');
    $('#content_window p').removeClass('large_text');
});

$('a.large_text').click(function () {
    $('#content_window p').removeClass('small_text');
    $('#content_window p').removeClass('medium_text');
    $('#content_window p').addClass('large_text');
});
*/

//Contact Form

$("#email_form").validate();


//Most Popular Widget Title

$('.popular-widget').prepend('<h1>What\'s Hot This Week</h1>');

/*

var l = $('#left_column').height();
var m = $('#middle_column').height();
var r = $('#right_column').height();

var highestCol = Math.max(l, m, r);
$('.main_columns').height(highestCol);


$('#footer_left').append('<h1>Left:' + l + '</h1>');
$('#footer_left').append('<h1>Middle:' + m + '</h1>');
$('#footer_left').append('<h1>Right:' + r + '</h1>');
$('#footer_left').append('<h1>Highest is:' + highestCol + '</h1>');
$('#footer_left').append('<h1>CSS:' + css + '</h1>');

*/

});   //End of DOC




