jQuery(document).ready(function($){
	jQuery('.QualityguarPopupClose').bind('click', function() {
		jQuery('.QualityguarPopup').fadeOut();
	});

	function openpopup(a) {
		jQuery('.QualityguarPopup').fadeOut();
		jQuery('#'+a).fadeIn();
	}

	$('.menuList > li').hover(
		function(){
			$(this).siblings().children('.subMenuList').hide();
			subMenu = $(this).children('.subMenuList');
			subMenu.show();
			if(subMenu.data('firstShow') !== false) {
				width = subMenu.siblings('a').width();
				subMenu.children().each(function() {
					if(width < $(this).outerWidth()) width = $(this).outerWidth();
				});
				subMenu.children().children('a').width(width - 12);
			}
			subMenu.data('toHide', false);
			subMenu.data('firstShow', false);
		},
		function(){
			subMenu = $(this).children('.subMenuList');
			subMenu.data('toHide', true);
			subMenu.delay(1000).queue(function(){
				if($(this).data('toHide')) {
					$(this).hide();
				}
				$(this).dequeue();
			});
		}
	);
	$('a.lightbox').lightBox({
		imageLoading:			'/images/lightbox-ico-loading.gif',		// (string) Path and the name of the loading icon
		imageBtnPrev:			'/images/lightbox-btn-prev.gif',			// (string) Path and the name of the prev button image
		imageBtnNext:			'/images/lightbox-btn-next.gif',			// (string) Path and the name of the next button image
		imageBtnClose:			'/images/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
		imageBlank:				'/images/lightbox-blank.gif'
	}); // Select all links that contains lightbox in the attribute rel
	
	$(document).ready(function(){	
	$("#slider").easySlider({
		prevId: "prevSlider",
		nextId: "nextSlider",
		vertical: true,
		continuous: true
	});
});
});

