
	$(document).ready(function(){

		$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
		
		$("ul.topnav li a").hover(function() { //When trigger is clicked...
			
			//Following events are applied to the subnav itself (moving subnav up and down)
			$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click
	 
			$(this).parent().hover(function() {}, function(){	
				$(this).parent().find("ul.subnav").hide(); //When the mouse hovers out of the subnav, move it back up
			});
	 
			//Following events are applied to the trigger (Hover events for the trigger)
			}).hover(function() { 
				$(this).addClass("subhover"); //On hover over, add class "subhover"
			}, function(){	//On Hover Out
				$(this).removeClass("subhover"); //On hover out, remove class "subhover"
		});

		
	});
		
	function goTo(url) {
		location.href = url;
	}
	
	function flash_home(){
	   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100%" height="137">\n');
	   document.write('<param name="movie" value="http://sites.agenteasy.com/flash/slide/slide.swf?xmlPath=http://sites.agenteasy.com/flash/slide/images.xml&myTimer=4000" />\n');
	   document.write('<param name="quality" value="high" />\n');
	   document.write('<param name="wmode" value="transparent" />\n');
	   document.write('<embed src="http://sites.agenteasy.com/flash/slide/slide.swf?xmlPath=http://sites.agenteasy.com/flash/slide/images.xml&myTimer=4000" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="734" height="150" wmode="transparent"></embed>\n');
	   document.write('</object>\n');
   }
