	/* GSD - Main Banner Rotate */

function theRotator() {
	$('div#rotator ul li').css({opacity: 0.0});
	$('div#rotator ul li:first').css({opacity: 1.0});
	setInterval('rotate()',5000);
}

function rotate() {	
	var current = ($('div#rotator ul li.show')?  $('div#rotator ul li.show') : $('div#rotator ul li:first'));
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div#rotator ul li:first') :current.next()) : $('div#rotator ul li:first'));	
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);
	current.animate({opacity: 0.0}, 1000)
	.removeClass('show');
};




/* GSD - KeyFactsRotate */

function KeyFacts() {
	$('div#key ul li').css({opacity: 0.0});
	$('div#key ul li:first').css({opacity: 1.0});
	setInterval('key_rotate()',12000);
}

function key_rotate() {	
	var current = ($('div#key ul li.show')?  $('div#key ul li.show') : $('div#key ul li:first'));
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div#key ul li:first') :current.next()) : $('div#key ul li:first'));	
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);
	current.animate({opacity: 0.0}, 1000)
	.removeClass('show');
};




/* GSD - Leisure Course Popup */

/* function popup() {
	
	$('.pop').popupWindow({ 
		height:900, 
		width:1020, 
		top:0, 
		left:0 
	}); 	
	
}

/* GSD - Leisure Course Popup */

function textResize() {

		  
		  $(".largeSizeFont").click(function(){

				var currentFontSize = $('html').css('font-size');
				var currentFontSizeNum = parseFloat(currentFontSize,10);
				var newFontSize = 19.0;
			
					if( newFontSize<20.0) {
						$('html').css('font-size', newFontSize);
					}
			
			return false;

		  });
		  
		  
		  
		$(".mediumSizeFont").click(function(){
			var currentFontSize = $('html').css('font-size');
				var currentFontSizeNum = parseFloat(currentFontSize,10);
				var newFontSize = 16.0;
			
					if( newFontSize<17.0) {
						$('html').css('font-size', newFontSize);
					}
			
			return false;

		  });
		
		
			  $(".smallSizeFont").click(function(){

				var currentFontSize = $('html').css('font-size');
				var currentFontSizeNum = parseFloat(currentFontSize,10);
				var newFontSize = 14.0;
			
					if( newFontSize<15.0) {
						$('html').css('font-size', newFontSize);
					}
			
			return false;

		  });
		
		
		  
}

