Cufon.replace('a.topmenu, ul.navigation li a.selected, h2, h1, div.event_title', {
	fontFamily: 'Avenir Next LT Pro',
    hover:true
});

/*jq(document).ready(function(){
jq("a.submenu").mouseenter(function(){
jq(this).parent("li").parent("ul").parent("li").children("a").css({'color' : '#ff0000'});
});
jq("ul.navigation ul").mouseleave(function(){
	alert('hi');
jq(this).parent("li").children("a").css({'color' : '#000000'});
jq(this).parent("li").children("a").children("cufon").css({'color' : '#000000'});
});

});*/





          function EnableDisableDIV() {

              if ($("#chkShowPersonal").attr("checked")) {

                  $("#show_clicked").show();

              } else {

                  $("#show_clicked").hide();

              }             

          }         

var hoverColor = "#FFFFFF";
//when the dom has loaded
$(function(){
        //display the hover div
        $(".fade_buts li").show("fast", function() {
                //append the background div
                $(this).append("<div></div>");
                //on link hover
                $(this).children("a").hover(function(){
                        //store initial link colour
                        if ($(this).attr("rel") == "") {
                                $(this).attr("rel", $(this).css("color"));
                        }
                        //fade in the background
                        $(this).parent().children("div")
                                .stop()
                                .css({"display": "none", "opacity": "1"})
                                .fadeIn("fast");
                        //fade the colour
                        $(this) .stop()
                                .css({"color": $(this).attr("rel")})
                                .animate({"color": hoverColor}, 350);
                },function(){
                        //fade out the background
                        $(this).parent().children("div")
                                .stop()
                                .fadeOut("slow");
                        //fade the colour
                        $(this) .stop()
                                .animate({"color": $(this).attr("rel")}, 250);
                });
        });
});

$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

 $('a[rel*=facebox]').facebox({
loadingImage : '/images/loading.gif',
closeImage   : '/images/closelabel.png'
})


});
