  // DROPDOWN MENU INSPIRED FROM http://www.sohtanaka.com/web-design/examples/drop-down-menu/
		jQuery(document).ready(function(){
			
			jQuery(".top_menu ul li a").mouseover(function() { //When trigger is clicked...
				
				//Following events are applied to the subnav itself (moving subnav up and down)
				jQuery(this).parent().find("ul.sub-menu").slideDown('fast').show(); //Drop down the subnav on click
		
				jQuery(this).parent().hover(function() {
				}, function(){	
					jQuery(this).parent().find("ul.sub-menu").slideUp('fast'); //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() { 
					jQuery(this).addClass("subhover"); //On hover over, add class "subhover"
				}, function(){	//On Hover Out
					jQuery(this).removeClass("subhover"); //On hover out, remove class "subhover"
			});
		
		});
    	
		// Hover effect Sidebar list
            jQuery(function(){
                jQuery('.sidebar li')
                    .css( {backgroundPosition: "0 3px"} )
                    .mouseover(function(){
                        jQuery(this).stop().animate(
							 { backgroundPosition:"(9px 3px)"},
							 { queue: false,
							   duration: 300,
							   easing: 'easeOutElastic'
						})
                    })
                    .mouseout(function(){
                        jQuery(this).stop().animate({backgroundPosition:"(0 3px)"}, {duration:400, complete:function(){
                            jQuery(this).css({backgroundPosition: "0 3px"})
                        }})
                    })
            });



        // JFlow Slider
            jQuery(document).ready(function(){
                jQuery("#slider").jFlow({
                    slides: "#slider_img",
                    controller: ".jFlowControl", // must be class, use . sign
                    slideWrapper : "#jFlowSlide", // must be id, use # sign
                    selectedWrapper: "jFlowSelected",  // just pure text, no sign
                    width: "818px",
                    height: "150px",
                    easing: "swing",
                    duration: 700,
                    prev: ".jFlowPrev", // must be class, use . sign
                    next: ".jFlowNext" // must be class, use . sign
                });
            });
    
	
	
	
        // Teaser Slider

		/*** 
			Simple jQuery Slideshow Script
			Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)
		***/
		
	function slideSwitch() {
			var jQueryactive = jQuery('#slideshow IMG.active');
		
			if ( jQueryactive.length == 0 ) jQueryactive = jQuery('#slideshow IMG:last');
		
			// use this to pull the images in the order they appear in the markup
			var jQuerynext =  jQueryactive.next().length ? jQueryactive.next()
				: jQuery('#slideshow IMG:first');
		
			// uncomment the 3 lines below to pull the images in random order
			
			// var jQuerysibs  = jQueryactive.siblings();
			// var rndNum = Math.floor(Math.random() * jQuerysibs.length );
			// var jQuerynext  = jQuery( jQuerysibs[ rndNum ] );
		
		
			jQueryactive.addClass('last-active');
		
			jQuerynext.css({opacity: 0.0})
				.addClass('active')
				.animate({opacity: 1.0}, 1000, function() {
					jQueryactive.removeClass('active last-active');
				});
		}
		
		jQuery(function() {
			setInterval( "slideSwitch()", 4000 );
		});
		
