$(document).ready(function() {

    $("a.tab").click(function() {
        if ($(this).hasClass("false") == true) var e = true;
        if ($(this).hasClass("true") == false) var e = false;
        $(".true").removeClass("true");
        $(this).addClass("true");
        $(".content").slideUp();
        if (e == false) {
            var content_show = $(this).attr("title");
            $("#" + content_show).slideDown();
        } else {
            $(".true").removeClass("true");
        }
    });

    $("a.tab img").mouseover(function() {
        var hov = $(this).attr("title");
        var src = $(this).attr("src");
        $(this).attr("title", src);
        $(this).attr("src", hov);
    });

    $("a.tab img").mouseout(function() {
        var hov = $(this).attr("title");
        var src = $(this).attr("src");
        $(this).attr("title", src);
        $(this).attr("src", hov);
    });	//	SocialBookmarks
	//	
	
	var sbDelay;
	var sbBoxDelay;
	
	$(".socialbookmark .sbBar").mouseover(function(){
		sbDelay = setTimeout(function(){ $(".socialbookmark .sbBookings").show(); }, 300);		
	}).mouseout(function(){
		clearTimeout(sbDelay);
	});
	
	$(".socialbookmark .sbBookings").mouseover(function(){	
		clearTimeout(sbBoxDelay);
	}).mouseout(function(){
		sbBoxDelay = setTimeout(function(){ $(".socialbookmark .sbBookings").fadeOut(300); }, 500);	
	});
	
	$(".socialbookmark .sbClose").click(function(){
		$(".socialbookmark .sbBookings").hide();
	});


	window.meta_keywords = encodeURIComponent($("meta[http-equiv=keywords]").attr("content"));
	window.meta_description = encodeURIComponent($("meta[http-equiv=description]").attr("content"));

});



 