/* Desire Theme JavaScript */



function animatemenu() {

    //jQuery(".menu ul").css({display:"none"}); // Fix for opera

    jQuery(".menu ul li").hover(function() {

        jQuery(this).find('ul:first').css({visibility:"visible",display:"none"}).show(400);

    },

    function() {

        jQuery(this).find('ul:first').css({visibility:"hidden"});

    });

}



jQuery(document).ready(function() {

    animatemenu();

});



jQuery(document).ready(function() {

    jQuery('ul li:last-child').addClass('last');

});



function show(elem) {

    jQuery('#' + elem).slideDown('slow');

}



function hide(elem) {

    jQuery('#' + elem).slideUp('slow');

}



function toggle(showelem,hideelem1,hideelem2,hideelem3) {

    document.getElementById(hideelem1 + '-tab').style.backgroundColor = "#fcfcfc !important";
	
	document.getElementById(hideelem1 + '-tab').style.color = "#333 !important";
		
	document.getElementById(hideelem1 + '-tab').style.border = "none !important";
	
	document.getElementById(hideelem1 + '-tab').style.marginRight = "5px !important";
	
    document.getElementById(hideelem2 + '-tab').style.backgroundColor = "#fcfcfc !important";
	
	document.getElementById(hideelem2 + '-tab').style.color = "#333 !important";
	
	document.getElementById(hideelem2 + '-tab').style.border = "none !important";
	
	document.getElementById(hideelem2 + '-tab').style.marginRight = "5px !important";
	
    document.getElementById(hideelem3 + '-tab').style.backgroundColor = "#fcfcfc !important";
	
	document.getElementById(hideelem3 + '-tab').style.color = "#333 !important";
	
	document.getElementById(hideelem3 + '-tab').style.border = "none !important";
	
	document.getElementById(hideelem3 + '-tab').style.marginRight = "5px !important";
	
    document.getElementById(showelem + '-tab').style.border = "1px #6BB700 solid !important";
	
	document.getElementById(showelem + '-tab').style.borderBottom = "none !important";

    document.getElementById(showelem + '-tab').style.backgroundColor = "#6BB700 !important";
	
	document.getElementById(showelem + '-tab').style.color = "#fff !important";
   

    hide(hideelem1);

    hide(hideelem2);
	
	hide(hideelem3);

    show(showelem);

}
