  $(document).ready(function($){
	
	
	//Detect browser, if i.e 6 then add function to member drop down
	
	if((jQuery.browser.msie) && (jQuery.browser.version == '6.0')) {
				
		//Change all the divs with class 'TopDropDownMenu' to show.
		
		$("div.TopDropDownMenu").css("overflow", "Visible");
		$("div.TopDropDownMenu").css("height", "auto");
		
	}
	
	
	//should check if objects exist, if not then don't run.
		
	if (document.getElementById("newsDivID") && document.getElementById("eventDivID")) {
		toggle_newbanner(0);
	} 
	
	
	
	function toggle_newbanner(i) {
		
		if (i==0) {
			i=1;
			$("div.newsDiv").fadeOut(10000, function () {
				$("div.eventDiv").fadeIn(2000, function () {
						toggle_newbanner(i);
					});
			});
			}
		 else {
			i=0;
			$("div.eventDiv").fadeOut(10000, function () {
				$("div.newsDiv").fadeIn(2000, function () {
					toggle_newbanner(i);
					});
				});
			}
			return false;
		}
	}
 
 
 
 );
