// JavaScript Document

  $(document).ready(function(){
		

	$.validator.addMethod('mobile', function(value) {
				return (value == 'Mobile' && $('#mobile').val()=='') ? false : true;
            }, 'You have selected mobile as a contact means, but you have not entered a mobile telephone number.');
	
	$.validator.addMethod('work', function(value) {
				return (value == 'Work' && $('#work').val()=='') ? false : true;
            }, 'You have selected work as a contact means, but you have not entered a work telephone number.');
	
	$.validator.addMethod('emaill', function(value) {
				return (value == 'E-mail' && $('#email').val()=='') ? false : true;
            }, 'You have selected email as a contact means, but you have not entered an email address.');
	
	$.validator.addMethod('telephone', function(value) {
				return (value == 'Telephone' && $('#telephone').val()=='') ? false : true;
            }, 'You have selected telephone as a contact means, but you have not entered a telephone number.');

	
	
    $("#RepairRequestForm").validate();
	

		$('.tooltip').bt({
	  trigger: ['focus', 'blur'],
	  positions: ['right'],
	  fill: '#FFF',
		cornerRadius: 10,
		strokeWidth: 0,
		shadow: true,
		shadowOffsetX: 3,
		shadowOffsetY: 3,
		shadowBlur: 8,
		shadowColor: 'rgba(0,0,0,.9)',
		shadowOverlap: false,
		noShadowOpts: {strokeStyle: '#999', strokeWidth: 2}
	});
		
	$('.box').bt({
	  trigger: ['hover'],
	  fill: '#FFF',
		cornerRadius: 10,
		strokeWidth: 0,
		shadow: true,
		shadowOffsetX: 3,
		shadowOffsetY: 3,
		shadowBlur: 8,
		shadowColor: 'rgba(0,0,0,.9)',
		shadowOverlap: false,
		noShadowOpts: {strokeStyle: '#999', strokeWidth: 2}
	});

	$('.fadingLogos').innerfade({
						speed: 'slow',
						timeout: 2500,
						type: 'random',
						containerheight: '95px'
					});

	
	
  });

