$(document).ready(function(){
	//check for browser
	var browser=navigator.appName;
	var b_version=navigator.appVersion;
	var version=999;
	if (navigator.appVersion.indexOf("MSIE") != -1)
	     version = parseFloat(navigator.appVersion.split("MSIE")[1]);
    else
	   version = 	parseFloat(b_version);
	//Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/
	
	 //alert(browser);


		//When mouse rolls over for Inner Circle
		$("div.innerCircle").mouseover(function(){		 
			$("#inner-circle-width").show();
			if ((browser=="Microsoft Internet Explorer")&& (version>=4)&& (version<=7))
			{
				document.getElementById('innerCircleDiv').setAttribute('className','inner-circle-out');
			}
			else if((browser=="Microsoft Internet Explorer")&& (version>7))
			{
				document.getElementById('innerCircleDiv').setAttribute('class','inner-circle-out');
			}
			else
			{
				document.getElementById('innerCircleDiv').setAttribute('class','inner-circle-out');
			}
			
		});
	
	//When mouse is removed for Inner Circle
		$("div.innerCircle").mouseout(function(){		
			$("#inner-circle-width").hide();
			if ((browser=="Microsoft Internet Explorer")&& (version>=4)&& (version<=7))
			{
				document.getElementById('innerCircleDiv').setAttribute('className','innerCircle');
			}
			else if((browser=="Microsoft Internet Explorer")&& (version>7))
			{
				document.getElementById('innerCircleDiv').setAttribute('class','innerCircle');
			}
			else
			{
				document.getElementById('innerCircleDiv').setAttribute('class','innerCircle');
			}			
			
		});
		
		
		//When mouse rolls over for Subscribe
		$("div.subscribe").mouseover(function(){		 
			$("#subscribe-width").show();
			if ((browser=="Microsoft Internet Explorer")&& (version>=4)&& (version<=7))
			{
				document.getElementById('subscribeDiv').setAttribute('className','subscribe-out');
			}
			else if((browser=="Microsoft Internet Explorer")&& (version>7))
			{
				document.getElementById('subscribeDiv').setAttribute('class','subscribe-out');
			}
			else
			{
				document.getElementById('subscribeDiv').setAttribute('class','subscribe-out');
			}
			
		});
	
	//When mouse is removed for Subscribe
		$("div.subscribe").mouseout(function(){		
			$("#subscribe-width").hide();
			if ((browser=="Microsoft Internet Explorer")&& (version>=4)&& (version<=7))
			{
				document.getElementById('subscribeDiv').setAttribute('className','subscribe');
			}
			else if((browser=="Microsoft Internet Explorer")&& (version>7))
			{
				document.getElementById('subscribeDiv').setAttribute('class','subscribe');
			}
			else
			{
				document.getElementById('subscribeDiv').setAttribute('class','subscribe');
			}			
			
		});
		
		//When mouse rolls over for Press
		$("div.press").mouseover(function(){		 
			$("#press-width").show();
			if ((browser=="Microsoft Internet Explorer")&& (version>=4)&& (version<=7))
			{
				document.getElementById('pressDiv').setAttribute('className','press-out');
			}
			else if((browser=="Microsoft Internet Explorer")&& (version>7))
			{
				document.getElementById('pressDiv').setAttribute('class','press-out');
			}
			else
			{
				document.getElementById('pressDiv').setAttribute('class','press-out');
			}
			
		});
	
	//When mouse is removed for Press
		$("div.press").mouseout(function(){		
			$("#press-width").hide();
			if ((browser=="Microsoft Internet Explorer")&& (version>=4)&& (version<=7))
			{
				document.getElementById('pressDiv').setAttribute('className','press');
			}
			else if((browser=="Microsoft Internet Explorer")&& (version>7))
			{
				document.getElementById('pressDiv').setAttribute('class','press');
			}
			else
			{
				document.getElementById('pressDiv').setAttribute('class','press');
			}			
			
		});
		
		//When mouse rolls over for About
		$("div.about").mouseover(function(){		 
			$("#about-width").show();
			if ((browser=="Microsoft Internet Explorer")&& (version>=4)&& (version<=7))
			{
				document.getElementById('aboutDiv').setAttribute('className','about-out');
			}
			else if((browser=="Microsoft Internet Explorer")&& (version>7))
			{
				document.getElementById('aboutDiv').setAttribute('class','about-out');
			}
			else
			{
				document.getElementById('aboutDiv').setAttribute('class','about-out');
			}
			
		});
	
	//When mouse is removed for About
		$("div.about").mouseout(function(){		
			$("#about-width").hide();
			if ((browser=="Microsoft Internet Explorer")&& (version>=4)&& (version<=7))
			{
				document.getElementById('aboutDiv').setAttribute('className','about');
			}
			else if((browser=="Microsoft Internet Explorer")&& (version>7))
			{
				document.getElementById('aboutDiv').setAttribute('class','about');
			}
			else
			{
				document.getElementById('aboutDiv').setAttribute('class','about');
			}			
			
		});



	
	
});
