$(function() {	

// Internal page tabs
$("#tabbedcontent").tabs();

// Spotlight tabs basic
$("#spotlight_wrapper").tabs({ selected: 2 });

// Spotlight tabs rotate
//$("#spotlight_wrapper > ul").tabs({ selected: 0 }).tabs('rotate', 15000);

// Generic accordion
$(".accordion").accordion({autoHeight: false,active: false,collapsible: true});

});


function mailpage(){
mail_str = "mailto:?subject=Check out this page on the  website ";
mail_str += "&body=I thought you might be interested in the following page. " + document.title + ".%0D%0D";
mail_str += "You can view it at:%0D" + location.href; 
location.href = mail_str;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

$(function() {
$("#roadshowtabs").tabs();
var $tabs = $('#roadshowtabs').tabs(); // first tab selected
$('#section').click(function() { // bind click event to link
$tabs.tabs('select', 0); // switch to first tab
return false;
});	
$('#sectionone').click(function() { // bind click event to link
$tabs.tabs('select', 1); // switch to second tab
return false;
});
$('#sectiontwo').click(function() { // bind click event to link
$tabs.tabs('select', 2); // switch to thrid tab
return false;
});	
$('#sectionthree').click(function() { // bind click event to link
$tabs.tabs('select', 3); // switch to forth tab
return false;
});
});

$(function() {$("#resourcetabs").tabs();
var $tabs = $('#resourcetabs').tabs(); // first tab selected
$('#section').click(function() { // bind click event to link
$tabs.tabs('select', 0); // switch to first tab
return false;
});	
$('#sectionone').click(function() { // bind click event to link
$tabs.tabs('select', 1); // switch to second tab
return false;
});
$('#sectiontwo').click(function() { // bind click event to link
$tabs.tabs('select', 2); // switch to thrid tab
return false;
});	
$('#sectionthree').click(function() { // bind click event to link
$tabs.tabs('select', 3); // switch to forth tab
return false;
});
$('#sectionfour').click(function() { // bind click event to link
$tabs.tabs('select', 4); // switch to fifth tab
return false;
});
$('#sectionfive').click(function() { // bind click event to link
$tabs.tabs('select', 5); // switch to third tab
return false;
});
});

$(function() {
$("#opportunitytabs").tabs();
var $tabs = $('#opportunitytabs').tabs(); // first tab selected
$('#section').click(function() { // bind click event to link
$tabs.tabs('select', 0); // switch to first tab
return false;
});	
$('#sectionone').click(function() { // bind click event to link
$tabs.tabs('select', 1); // switch to second tab
return false;
});
$('#sectiontwo').click(function() { // bind click event to link
$tabs.tabs('select', 2); // switch to thrid tab
return false;
});	
$('#sectionthree').click(function() { // bind click event to link
$tabs.tabs('select', 3); // switch to forth tab
return false;
});
$('#sectionfour').click(function() { // bind click event to link
$tabs.tabs('select', 4); // switch to fifth tab
return false;
});
$('#sectionfive').click(function() { // bind click event to link
$tabs.tabs('select', 5); // switch to third tab
return false;
});	
$('#sectionsix').click(function() { // bind click event to link
$tabs.tabs('select', 6); // switch to third tab
return false;
});
$('#sectionseven').click(function() { // bind click event to link
$tabs.tabs('select', 7); // switch to third tab
return false;
});
$('#sectioneight').click(function() { // bind click event to link
$tabs.tabs('select', 8); // switch to third tab
return false;
});
$('#sectionnine').click(function() { // bind click event to link
$tabs.tabs('select', 9); // switch to third tab
return false;
});
});

$(function() {
$("#executiveteamtabs").tabs();
var $tabs = $('#executiveteamtabs').tabs(); // first tab selected
$('#section').click(function() { // bind click event to link
$tabs.tabs('select', 0); // switch to first tab
return false;
});	
$('#sectionone').click(function() { // bind click event to link
$tabs.tabs('select', 1); // switch to second tab
return false;
});
$('#sectiontwo').click(function() { // bind click event to link
$tabs.tabs('select', 2); // switch to thrid tab
return false;
});	
$('#sectionthree').click(function() { // bind click event to link
$tabs.tabs('select', 3); // switch to forth tab
return false;
});
$('#sectionfour').click(function() { // bind click event to link
$tabs.tabs('select', 4); // switch to fifth tab
return false;
});
$('#sectionfive').click(function() { // bind click event to link
$tabs.tabs('select', 5); // switch to third tab
return false;
});
$('#sectionsix').click(function() { // bind click event to link
$tabs.tabs('select', 6); // switch to third tab
return false;
});
$('#sectionseven').click(function() { // bind click event to link
$tabs.tabs('select', 7); // switch to third tab
return false;
});
$('#sectioneight').click(function() { // bind click event to link
$tabs.tabs('select', 8); // switch to third tab
return false;
});
$('#sectionnine').click(function() { // bind click event to link
$tabs.tabs('select', 9); // switch to third tab
return false;
});
});

$(function() {$("#glossarytabs").tabs();
var $tabs = $('#glossarytabs').tabs(); // first tab selected
$('#section').click(function() { // bind click event to link
$tabs.tabs('select', 0); // switch to first tab
return false;
});	
$('#sectionone').click(function() { // bind click event to link
$tabs.tabs('select', 1); // switch to second tab
return false;
});
$('#sectiontwo').click(function() { // bind click event to link
$tabs.tabs('select', 2); // switch to thrid tab
return false;
});	
$('#sectionthree').click(function() { // bind click event to link
$tabs.tabs('select', 3); // switch to forth tab
return false;
});
$('#sectionfour').click(function() { // bind click event to link
$tabs.tabs('select', 4); // switch to fifth tab
return false;
});
$('#sectionfive').click(function() { // bind click event to link
$tabs.tabs('select', 5); // switch to third tab
return false;
});
$('#sectionsix').click(function() { // bind click event to link
$tabs.tabs('select', 6); // switch to third tab
return false;
});
});
