/* tabs
/*-------------------------------------------------------------------------------*/

$(document).ready(function(){
	$("#hero").tabs({ fx: { opacity: 'toggle' } }).tabs('rotate', 5000);
});

$(document).ready(function(){
	$("#tabs").tabs().tabs();
});
     
        
/* dynamic text replacement
/*-------------------------------------------------------------------------------*/

Cufon.replace('#nav li a:not(#nav li li a) , #utility a , #utility label' , { fontFamily: 'Gotham', hover: true });
Cufon.replace('#tabs li a ' , { fontFamily: 'Gotham' });
Cufon.replace('#aboutGo p' , { fontFamily: 'Phaeton', hover: true });
Cufon.replace('h1 , h3 , li.status' , { fontFamily: 'Phaeton' });

/* shadow */
Cufon.replace('.heroInfo p' , { fontFamily: 'Gotham', textShadow: '1px 1px rgba(0,0,0,.8)' });
Cufon.replace('.heroInfo h3' , { fontFamily: 'Phaeton', textShadow: '1px 1px rgba(0,0,0,.8)' });


/* dynamic text replacement
/*-------------------------------------------------------------------------------*/

$(document).ready(function() { 
    $('ul.sf-menu').superfish(); 
});


/* new window _ rel=external
/*-------------------------------------------------------------------------------*/

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;
