// JavaScript Document
$(function(){
						   
				
		$(document).bind("contextmenu",function(e){
              return false;
       });		   
						   
		$(".image-switch").hover(function() {
			$(this).attr("src", $(this).attr("src").split(".").join("-hover."));
		  }, function() {
			$(this).attr("src", $(this).attr("src").split("-hover.").join("."));
		  });
		
		
		
		var cache = [];
		// Arguments are image paths relative to the current page.
		$.preLoadImages = function() {
		var args_len = arguments.length;
			for (var i = args_len; i--;) {
				var cacheImage = document.createElement('img');
				cacheImage.src = arguments[i];
				cache.push(cacheImage);
			}
		}
		$.preLoadImages(
						"images/home-block-10-hover.jpg", "images/home-block-11-hover.jpg", "images/home-block-12-hover.jpg", "images/home-block-13-hover.jpg",
						"images/home-button-hover.jpg", "images/about-the-genie-button-hover.jpg", "images/what-you-get-button-hover.jpg", "images/the-genie-says-button-hover.jpg",
						"images/contact-the-genie-button-hover.jpg", "images/sign-up-hover.jpg", "images/sign-in-hover.jpg", "images/print-hover.png"
						
						);
		
		
		$('.results-page table.table').tablePagination({});
		
		$("input").css({
			 zIndex:50000
		});
		 
	
	});

