$(document).ready(function(){	
	
	// ie6 png fix for the logo
	$('#logo').pngFix(); 
	
	// slider used on content pages
	$("#slider").easySlider({
		auto: false, 
		continuous: true,
		numeric: true
	});
	
	// slider used on testimonials page
	$("#slider2").easySlider({
		prevText: "<&nbsp;",
		nextText: "&nbsp;>",
		controlsBefore:	'<div id="test-controls"><span class="read-more">Read More...</span>',
		controlsAfter:	'</div>'
	});

	// navigation menu
	$("ul.topnav li").hover(function() { //When trigger is clicked...
		
		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click

		$(this).hover(function() {
		}, function(){	
			$(this).find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		});

	});

	
	// Disable context menu on an element
	$("img").noContext();

	$.easy.popup();
	
	/*$.easy.navigation();
	$.easy.tooltip();
	$.easy.external();
	$.easy.rotate();
	$.easy.forms();
	$.easy.showhide();
	$.easy.jump();
	*/
});