/*

Big Image Tabbed section

*/

// --------------------------------------------------------------------------------------------------------------

(function(a){a.fn.tabbed_interface=function(b){var c={switch_duration:5000,auto_switch:true,auto_switch_delay:4000};var b=a.extend(c,b);return this.each(function(d){d=this;a(d).children("ul").children("li").children("a").click(function(){a(d).children("div").fadeOut(b.switch_duration/2).filter(this.hash).fadeIn(b.switch_duration/2);a(d).children("ul").children("li").children("a").removeClass("active").filter(this).addClass("active");return false});a(d).children("div").css("position","absolute").not(":first").hide();if(b.auto_switch){a(d).bind("tabTimer",function(){setTimeout(function(){var e=a(d).children("div").not(":hidden").next().attr("id")||a(d).children("div").not(":hidden").siblings("div").first().attr("id");a(d).children("ul").children("li").children('a[href="#'+e+'"]').click();a(d).trigger("tabTimer")},b.auto_switch_delay)});a(d).trigger("tabTimer")}})}})(jQuery);

/*

Navagation effect

*/

// --------------------------------------------------------------------------------------------------------------

var thirteentwelve = function(){
    function linkswipe() {
      $("#nav li a").each(function(i) {
          // make the iteration object a jquery object
          var a = $(this);
          // grab the text
          var title = a.html();
          // and the width
          var w = a.outerWidth();
          // append a span with the content in, to mask over the link      
          a.append("<span class='mask' style='width: 0; display: none;'>"+title+"</span>");
          // store a reference to the span
          var span = a.find("span");
          // do the hover funcs
          a.hover(function(){
              // stop the flicker!
              span.stop(true,true);
              //
              span.show().animate({
                width: w+'px'
              }, 200);
          }, function() {
              span.animate({
                width: '0px'
              }, 400, function(){ 
                  span.hide();          
              });
          });
      });    	
    }
    $(document).ready(function(){
        linkswipe();
    });
    return {
	   linkswipe:linkswipe
	}
}();



// -------Facebook and Twitter Rollover Tip-------------------------------------------------------------------------------------------------------

$(document).ready(function() {  
   // all jQuery code goes here  

$("#twitter").mouseover(function() {  
    // do something here  
     
	$("#statBox").animate(  
    {  
        
        width: "120px"    
    }, 200, function() {  
        $("#statBox").html("<a href=\"#\"> Twitter</a>");
    }  
);  


});  

$("#twitter").mouseout(function() {  
    // do something here  
     $("#statBox").html(""); 
	$("#statBox").animate(  
    {  
        
        width: "0px"    
    }, 200, function() {  
      $("#statBox").html(""); 
    }  
);  


});  

$("#facebook").mouseover(function() {  
    // do something here  
      
	$("#statBox").animate(  
    {  
        
        width: "120px"    
    }, 200, function() {  
       $("#statBox").html("<a href=\"#\">Facebook</a>");
    }  
);  


});  


$("#facebook").mouseout(function() {  
    // do something here  
      $("#statBox").html("");
	$("#statBox").animate(  
    {  
        
        width: "0px"    
    }, 200, function() {  
       $("#statBox").html("");
    }  
);  


});  

$("#newsletter").mouseover(function() {  
    // do something here  
      
	$("#statBox").animate(  
    {  
        
        width: "120px"    
    }, 200, function() {  
       $("#statBox").html("<a href=\"#\">Newsletter</a>");
    }  
);  


});  


$("#newsletter").mouseout(function() {  
    // do something here  
      $("#statBox").html("");
	$("#statBox").animate(  
    {  
        
        width: "0px"    
    }, 200, function() {  
       $("#statBox").html("");
    }  
);  


}); 
});


