

			Cufon.replace('#widget h1, #titlebox h2', {
				textShadow: '#133d9f 2px 2px 2px'
			});
			



        jQuery(document).ready(function(){
            //hide the all of the element with class msg_body
            jQuery(".msg_body").hide();
            //toggle the componenet with class msg_body
            jQuery(".msg_head").click(function(){
                jQuery(this).next(".msg_body").slideToggle(200);
            });
        });
jQuery(document).ready(function(){
 
	jQuery(".rss-popup a").hover(function() {
	jQuery(this).next("em").stop(true, true).animate({opacity: "show", top: "-60"}, "slow");
	}, function() {
	jQuery(this).next("em").animate({fade: true, opacity: "hide", top: "-70"}, "fast");
	});
 
});
        jQuery(document).ready(function() {

            jQuery(".signin").click(function(e) {
                e.preventDefault();
                jQuery("fieldset#signin_menu").toggle(0);
				jQuery("div#signin_menu").toggle(0);
                jQuery(".signin").toggleClass("menu-open");
            });

            jQuery("fieldset#signin_menu").mouseup(function() {
                return false
            });
            jQuery("div#signin_menu").mouseup(function() {
                return false
            });
            jQuery(document).mouseup(function(e) {
                if(jQuery(e.target).parent("a.signin").length==0) {
                    jQuery(".signin").removeClass("menu-open");
                    jQuery("fieldset#signin_menu").hide();
					jQuery("div#signin_menu").hide();
                }
            });            

        });


   //Back to top slider

jQuery(document).ready(function() {
   
    jQuery('a[href=#top]').click(function(){
        jQuery('html, body').animate({scrollTop:0}, 600);
        return false;
    });

});

// Tooltip

 jQuery(function() {
    
    jQuery('#example-1').tipsy();
    
    jQuery('.north').tipsy({gravity: 'n', fade: true});
    jQuery('.south').tipsy({gravity: 's', fade: true});
    jQuery('.east').tipsy({gravity: 'e', fade: true});
    jQuery('.west').tipsy({gravity: 'w', fade: true});
    
    jQuery('.auto-gravity').tipsy({gravity: jQuery.fn.tipsy.autoNS});
    
    jQuery('.example-fade').tipsy({fade: true});
    
    jQuery('.example-custom-attribute').tipsy({title: 'id'});
    jQuery('.example-callback').tipsy({title: function() { return this.getAttribute('title').toUpperCase(); } });
    jQuery('.example-fallback').tipsy({fallback: "Where's my tooltip yo'?" });
    
  });

// Carousel
jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel();
});

// Facebox
jQuery(document).ready(function(jQuery) {
  jQuery('a[rel*=openbox]').facebox()
}) 


// Fancybox
$(document).ready(function() {
	
	$("a.group").fancybox({
		'hideOnContentClick': false
	});

});

// Tabbed Navigation

$(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(300); //Fade in the active ID content
		return false;
	});

});