// JavaScript Document
$(document).ready(function()
{
			// initialise plugins
		jQuery(function(){
			jQuery('#navigation').superfish({});
		});
		if ($.browser.msie) {
		// Fix IE
		opacity = 0.3;
		}else{
		opacity = 1;	
		}
		$(".img-effect").prepend("<a class='overlay' href='#' rel='shadowbox'></a>");
		
		$(".img-effect img").mouseenter(function(){
												$(this).parent().parent().children(".overlay").fadeTo("slow",opacity); 
												});
		
		$(".img-effect .overlay").mouseout(function(){
												$(this).fadeOut("slow"); 
										
												});
		
		$(".img-effect .overlay").each(function(i){
												
												vlink = $(this).parent().children("a:last").attr("href");
												
												$(this).attr("href",vlink);
												
												});
	Shadowbox.init();

})
