// JavaScript Document
	//A little old school boilerplate for tricky cases
	function swapImg(elem,src) {
		elem.src = src;
	}

	function restoreImg(elem,src) {
		elem.src = src;		
	}

	$(function(){
	// MT - Hide the menu items
	$('#nav>li>ul').hide();
    //$('#nav>li>ul>li>ul').hide();
	$('#nav>li>ul>li>ul>li>ul').hide();
	//$('#nav>li>ul>li.seld>ul').show();
	//$('#nav>li.seld>ul>li>ul').show();
	});
	
// Initialise the page
jQuery(document).ready(function() {  
	if ( $.browser.msie && $.browser.version < 9) {

		//Put rounded corners on the table
		$(this).find('table').attr('style','background:none;border:none');  
	
		$(this).find('table tr:first-child td').attr('style','border-top:1px solid #000;background-color:#ffffff;');
		$(this).find('table tr:first-child th').attr('style','border-top:none;background-color:#e2e3e3;');
		$(this).find('table tr td:first-child ').attr('style','border-left:1px solid #000;');   
		$(this).find('table tr:first-child th').attr('style','background-color:#e2e3e3;border-top:1px solid #000');   
		$(this).find('table tr:first-child th:first-child').attr('style','border-left:none;border-top:none;background-image:url(/assets/corner-tl.png);background-repeat:no-repeat;background-position:top left;');   
		$(this).find('table tr:first-child th:last-child').attr('style','border-right:none;border-top:none;background-image:url(/assets/corner-tr.png);background-repeat:no-repeat;background-position:top right;');
		$(this).find('table tr:last-child td:first-child').attr('style','border-left:none;border-bottom:none;background-image:url(/assets/corner-bl.png);background-repeat:no-repeat;background-position:bottom left;');   
		$(this).find('table tr:last-child td:last-child').attr('style','border-right:none;border-bottom:none;background-image:url(/assets/corner-br.png);background-repeat:no-repeat;background-position:bottom right;');
		$(this).find('table tr:first-child td').attr('style','border-top:1px solid #000;background-color:#ffffff;');
		$(this).find('table tr:first-child td:first-child ').attr('style','border-top:1px solid #000;border-left:1px solid #000;');   

	}
	

 		$("#header-right-login").hover(  
        	function () { $("#header-right-login").attr( 'class', 'login-background-over');$(".login-expanded").attr( 'style', 'display:inline-block');},    
         	function () { $("#header-right-login").attr( 'class', 'login-background');}//$(".login-expanded").attr( 'style', 'visibility:hidden');
      	);
		
		$(".login-expanded").hover(  
        	function () { },    
         	function () { $(".login-expanded").attr( 'style', 'display:none');}
      	);
	
 		$("#staff-button").hover(    
        	function () { $("#staff-button").attr( 'class', 'login-background-inner-over');},    
         	function () { $("#staff-button").attr( 'class', 'login-background-inner');}
      	);
	
 		$("#parent-button").hover(    
        	function () { $("#parent-button").attr( 'class', 'login-background-inner-over');},    
         	function () { $("#parent-button").attr( 'class', 'login-background-inner');}
      	);
	
 		$("#student-button").hover(    
        	function () { $("#student-button").attr( 'class', 'login-background-inner-over');},  
         	function () { $("#student-button").attr( 'class', 'login-background-inner');}
      	);  
		
		
});

								

