jQuery(document).ready(function($){

    $('.consultation-trigger').fancybox({'frameWidth': 650, 'frameHeight':650, 'hideOnContentClick':false});
	
	// Header Nav Menu
	$("ul#topnav li").hover(function() { //Hover over event on list item
		$(this).find("ul").show(); //Show the subnav
		$("ul#topnav li.active ul").hide()
	} , function() { //on hover out...
		$(this).find("ul").hide(); //Hide the subnav
		$("ul#topnav li.active ul").show()
	});
	$("ul#topnav li.active").hover(function() { //Hover over event on list item
		$(this).find("ul").show(); //Show the subnav
	} , function() { //on hover out...
		$(this).find("ul").show(); //Hide the subnav
	});
	$("ul#topnav li.active li").hover(function() { //Hover over event on list item
		$("ul#topnav li.active ul").show(); //Show the subnav
	} , function() { //on hover out...
		$("ul#topnav li.active ul").show(); //Hide the subnav
	});
	
	
	// JQ Zoom for Images
	var options = {
		zoomWidth: 460,
		zoomHeight: 320,
		xOffset: 10,
		yOffset: 0,
		lens: false,
		position: "right",
		showEffect: "show",
		hideEffect: "fadeout",
		fadeoutSpeed: "fast",//and MORE OPTIONS
                title : false
		};
	$(".jqzoom").jqzoom(options);
	
	$("#image0").css("z-index","98");
	$("#image0").css("display","block");
	$("#image0").css("position","absolute"); 
	
	
	// Product Page Accordion
	$('#generic-info-accordion').accordion({ 
    header: "h4",
	//event: 'mouseover',
	autoHeight: false,
	active:false,
	collapsible:true,
	icons: {header: "accordion-expand", headerSelected: "accordion-close"}
	}); 


	// Target for External Links	
	$("a[rel*=external]").attr('target','_blank');
	
});
jQuery.noConflict();
