
Cufon.replace('#start h1');
Cufon.replace('span.story_title');
Cufon.replace('#start h3.infosesh', {
	textShadow: '1px 1px rgba(13,29,25, 0.3)'
});
Cufon.replace('#start h2.clean', {
	textShadow: '1px 1px rgba(255,255,255, 0.3)'
});
Cufon.replace('.social_title', {
	textShadow: '1px 1px rgba(255,255,255, 0.9)'
});

$(document).ready(function(){

jQuery.each(jQuery.browser, function(i) {
   if($.browser.msie){
      
   }else{
      Cufon.replace('.sf-menu a');
		Cufon.replace('.sf-menu li a', {
			textShadow: '-1px -1px rgba(000,000,000, 0.7)'
		});
   }
 });
});

$(document).ready(function(){
	//global vars
	var searchBoxes = $(".text");
	var searchBox2 = $("#s");
	var searchBox2Default = "Search...";
	
	//Effects for both searchbox
	searchBoxes.focus(function(e){
		$(this).addClass("active-s");
	});
	searchBoxes.blur(function(e){
		$(this).removeClass("active-s");
	});
	
	//Searchbox2 show/hide default text if needed
	searchBox2.focus(function(){
		if($(this).attr("value") == searchBox2Default) $(this).attr("value", "");
	});
	searchBox2.blur(function(){
		if($(this).attr("value") == "") $(this).attr("value", searchBox2Default);
	});
});

$(document).ready(function(){
	$('#socialnav a').click(function(){
		$('#socialnav a').removeClass('actives');
		$(this).addClass('actives');
	});
	$('#socialnav a#stwitter').click(function(){
		$('#facebook_updates').hide(200);
		$('#twitter_updates').show(200);
	});
	$('#socialnav a#sfacebook').click(function(){
		$('#facebook_updates').show(200);
		$('#twitter_updates').hide(200);
	});
	$('.load1').click(function(){
	  $(".sdate_con1").animate({ height: "220px" }, 500 );
	  $(".ifbframe").animate({ height: "220px" }, 500 );
	  
	});
	$('.load2').click(function(){
	  $(".sdate_con2").animate({ height: "220px" }, 500 );	
	});
});

$(document).ready(function () {  
    $('a#join-newsletter').click(  
        function() {  
            $('#signupform').fadeIn('1000');   
        });   
    $('.close-this').click(  
        function() {  
            $('#signupform').fadeOut('1000');   
     });  
    $('.mp_submit').click( function() {  
		$(this).delay(2500,function(){
            $('#signupform').fadeOut('1000');  
		}); 			
    });
	
});

$(document).ready(function(){
	
//Set default open/close settings
$('.acc_container').hide(); //Hide/close all containers
$('.acc_trigger:first').addClass('active').next().show(); //Add "active" class to first trigger, then show/open the immediate next container

//On Click
$('.acc_trigger').click(function(){
	if( $(this).next().is(':hidden') ) { //If immediate next container is closed...
		$('.acc_trigger').removeClass('active').next().slideUp(); //Remove all .acc_trigger classes and slide up the immediate next container
		$(this).toggleClass('active').next().slideDown(); //Add .acc_trigger class to clicked trigger and slide down the immediate next container
	}
	return false; //Prevent the browser jump to the link anchor
});

});
jQuery(document).ready(function($) {
  $('a[rel*=facebox]').facebox()
}) 
			// initialise plugins
			jQuery(function(){
				jQuery('ul.sf-menu').superfish({ 
					delay:       500,                            // one second delay on mouseout 
					animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
					speed:       'fast',                          // faster animation speed 
				});
			});
