window.onload=function(){


// hey man, if we're in the partners bit, do the partners stuff!
if ($(document.getElementById('partnerFocusIntro'))!=null) {
	changeBanner('partnerFocusIntro');
}


}

function closeMega(){
new Effect.SwitchOff('megaTop');
}

function loginHeader(){
// this happens when fail

	if (document.getElementById('megaTop').style.display =='none')
	{
		new Effect.toggle('megaTop', 'blind', {duration:0.5}); 
		new Effect.Highlight('headerLoginError', {startcolor:"#330000", endcolor:"#000000", duration:0.5, delay:0.5});
	} else {
		new Effect.Highlight('headerLoginError', {startcolor:"#330000", endcolor:"#000000", duration:0.5});
	}

}


function highlightLoginBox(){
	new Effect.Highlight('headerLogin', {startcolor:"#330000", endcolor:"#000000", duration:0.5, delay:0.5});	
}

function orangeBoxErrorCheck(){
var form = document.getElementById('orangeBoxForm');

	if (
			(document.getElementById('orangeBoxYourName').value =='')
			||
			(document.getElementById('orangeBoxBusiness').value =='')
		){
	
	
		// check if it's down
		if (document.getElementById('orangeBoxError').style.display =='none') {
			new Effect.BlindDown('orangeBoxError', {duration:0.2}); 
		}
		new Effect.Highlight('orangeBoxError', {startcolor:"#ffff00", endcolor:"#ffcc01", duration:0.3});
	
	} 
	
	else {
	
		form.submit();
		
	}


}
