// JavaScript Document

// navigation hover

$(document).ready(
				function(){
					$('.home_btn').hover(function() {
					  $(this).addClass('home_btn_hover');
					  
					}, function() {
					  $(this).removeClass('home_btn_hover');
					  
					});
					
			});

$(document).ready(
				function(){
					$('.shop_btn').hover(function() {
					  $(this).addClass('shop_btn_hover');
					  
					}, function() {
					  $(this).removeClass('shop_btn_hover');
					  
					});
					
			});
			
$(document).ready(
				function(){
					$('.buildpkg_btn').hover(function() {
					  $(this).addClass('buildpkg_btn_hover');
					  
					}, function() {
					  $(this).removeClass('buildpkg_btn_hover');
					  
					});
					
			});
			
$(document).ready(
				function(){
					$('.talktous_btn').hover(function() {
					  $(this).addClass('talktous_btn_hover');
					  
					}, function() {
					  $(this).removeClass('talktous_btn_hover');
					  
					});
					
			});
			
$(document).ready(
				function(){
					$('.cart_btn').hover(function() {
					  $(this).addClass('cart_btn_hover');
					  
					}, function() {
					  $(this).removeClass('cart_btn_hover');
					  
					});
					
			});
			

// send - submit btns

$(document).ready(
				function(){
					$('.sendBtn').hover(function() {
					  $(this).addClass('sendBtn_hover');
					  
					}, function() {
					  $(this).removeClass('sendBtn_hover');
					  
					});
					
			});
			
$(document).ready(
				function(){
					$('.footer_submitBtn').hover(function() {
					  $(this).addClass('footer_submitBtn_hover');
					  
					}, function() {
					  $(this).removeClass('footer_submitBtn_hover');
					  
					});
					
			});
			
$(document).ready(
				function(){
					$('.qtyBtn').hover(function() {
					  $(this).addClass('qtyBtn_hover');
					  
					}, function() {
					  $(this).removeClass('qtyBtn_hover');
					  
					});
					
			});
			
$(document).ready(
				function(){
					$('.removeBtn').hover(function() {
					  $(this).addClass('removeBtn_hover');
					  
					}, function() {
					  $(this).removeClass('removeBtn_hover');
					  
					});
					
			});

			



// email validation
			
function isValidEmailAddress(emailAddress) {
var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
return pattern.test(emailAddress);
}


// home innerfade

$(document).ready(
				function(){
					$('ul#imginner').innerfade({
						animationtype: 'slide',
						speed: 500,
						timeout: 3500,
						type: 'sequence',
						containerheight: '263px'
					});
					
					
			});			

			
// sampleproducts dropdown

$(function() {
  $('#company').focus(function() {
  	$('#addressinfo').slideDown('slow');
  });
});


// scrollable

$(function() { 
 
    // initialize scrollable 
    $("div.scrollable").scrollable(); 
 
}); 

$(function() {
  $('.nextPage').click(function() {
  	$('#sliderviewmore').hide('fast');
  });
});

// add to cart button

$(document).ready(
				function(){
					$('.addtocart').hover(function() {
					  $(this).addClass('addtocart_hover');
					  
					}, function() {
					  $(this).removeClass('addtocart_hover');
					  
					});
					
			});
			
$(document).ready(
				function(){
					$('.addtokit').hover(function() {
					  $(this).addClass('addtokit_hover');
					  
					}, function() {
					  $(this).removeClass('addtokit_hover');
					  
					});
					
			});
			
// show all colors button

$(document).ready(
				function(){
					$('.viewalllink').hover(function() {
					  $(this).addClass('viewalllink_hover');
					  
					}, function() {
					  $(this).removeClass('viewalllink_hover');
					  
					});
					
			});
			
// build custom kit btn

$(document).ready(
				function(){
					$('.buildcustomkit_btn').hover(function() {
					  $(this).addClass('buildcustomkit_btn_hover');
					  
					}, function() {
					  $(this).removeClass('buildcustomkit_btn_hover');
					  
					});
					
			});
			


 
 
