// Graduate Resources aka Alumni Alerts aka My Specialties
function openMenu(S) {
	var t = 'M_' + S;
	var tt = 'MU_' + S;
	$(t).writeAttribute('class','opened');
	new Effect.Opacity($(tt),{duration: 0.1, from: 0.0, to: 0.8});
}
function closeMenu(S) {
	var t = 'M_' + S;
	var tt = 'MU_' + S;
	$(t).writeAttribute('class','closed');
}

function loadPage() {
	location.href="#"
}
function openSNavItem(i) {
	var newWind = window.open(i,"itemwindow","resizable,scrollbars,height=730,width=815");
}

function openSNavItemSmall(i) {
	var newWind = window.open(i,"itemwindow","resizable,scrollbars,height=640,width=640");
}
function openSNavItemLg(i) {
	var newWind = window.open(i,"itemwindow","resizable,scrollbars,height=640,width=1020");
}
function openGame(i) {
	var newWind = window.open(i,"gamewindow","resizable,scrollbars,height=850,width=850");
}

function getContact(area) {
	var team=$('div#salesTeams div#'+area).html();
	$('div#salesContacts').html(team);
}

// brochure order 
function brochureOrder() {
	$('h4#thanks').load('http://orderForward.asp',$('form#brochureRequest').serialize());
	$('h4#thanks').load('http://www.leadnet.com/tlms/record-barbados.cgi',$('form#brochureRequest').serialize());
	$('form#brochureRequest input#submit1').attr('disabled',true);
	$('h4#thanks').html('Thank you - your order has been submitted!');
	return false;
}

// Highlights

function newResort(x) {
	$('#tabs').tabs('select', 0); // switch to first tab - note that tabs are zero-based!
	$('div#tabs-1 div.inner').load('highlightread.asp?i=' + x);
}

function newAttraction(x) {
	$('#tabs').tabs('select', 1); 
	$('div#tabs-2 div.inner').load('highlightread.asp?i=' + x);
}

function newAgent(x) {
	$('#tabs').tabs('select', 2); 
	$('div#tabs-3 div.inner').load('highlightread.asp?i=' + x);
}

function calendar(y) {
	$('#tabs').tabs('select', 3); 
	$('div#tabs-4 div.inner').load('highlightread.asp?i=' + y);
}



