<!--
/*** ALLOW target=_blank" in STRICT Doctype ****/
$(function() 
{
	$('a[rel*=_blank]').click( function() 
	{
		window.open(this.href);
		return false;
	});
	
});
//-->



<!--
/*** onchange link to product ****/
$(function() 
{
	
	$("#productSearch").change(function() 
										{ 
  		document.location = this.value; 
	});
});
//-->

<!--
$(function(){
	//Get our elements for faster access and set overlay width
	var div = $('div.sc_menu'),
		ul = $('ul.sc_menu'),
		ulPadding = 15;
	
	//Get menu width
	var divWidth = div.width();

	//Remove scrollbars	
	div.css({overflow: 'hidden'});
	
	//Find last image container
	var lastLi = ul.find('li:last-child');
	//When user move mouse over menu
	div.mousemove(function(e){
		//As images are loaded ul width increases,
		//so we recalculate it each time

		var ulWidth = lastLi[0].offsetLeft + lastLi.outerWidth() + ulPadding;	
		var left = (e.pageX - div.offset().left) * (ulWidth-divWidth) / divWidth;
		div.scrollLeft(left);
		
	});
	
});
-->

$(function(){
var formValidation = $('.validation-form');

	if(formValidation.length) {
	
		jQuery.validator.addMethod('required_group', function(val, el) {
		        var $module = $(el).parents('.panel');
		        return $module.find('.required_group:filled').length;
		});
		
		jQuery.validator.addClassRules('required_group', {
		        'required_group' : true
		});
		
		jQuery.validator.messages.required_group = 'Please fill out at least one of these fields.';
	
		formValidation.validate();
		
	}
	});

