/*
 * SimpleModal Basic Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2009 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: basic.js,v 1.3 2009/11/05 21:56:31 jonathan Exp $
 *
 */

$(document).ready(function () {
	$('.editAddress').click(function (e) {
		e.preventDefault();
		$('#editAddress').modal();
	});
	
	$('.editCard').click(function (e) {
		e.preventDefault();
		$('#editCard').modal();
	});
	
	$('.removeAddress').click(function (e) {
		e.preventDefault();
		$('#removeAddress').modal();
	});
	$('.removeCard').click(function (e) {
		e.preventDefault();
		$('#removeCard').modal();
	});
	
	$('.addAddress').click(function (e) {
		e.preventDefault();
		$('#addAddress').modal();
	});
	$('.addCard').click(function (e) {
		e.preventDefault();
		$('#addCard').modal();
	});
	
	
	$('.securityInfo').click(function (e) {
		e.preventDefault();
		$('#securityInfo').modal();
	});
	
	
	$('.policy').click(function (e) {
		e.preventDefault();
		$('#shippingPolicy').modal();
	});
	
	$('.whatIsThis').click(function (e) {
		e.preventDefault();
		$('#whatIsThis').modal();
	});
	
	$('.zoomify1').click(function (e) {
		e.preventDefault();
		$('#zoomify1').modal();
	});
	
	$('.zoomify2').click(function (e) {
		e.preventDefault();
		$('#zoomify2').modal();
	});
	
	$('.zoomify3').click(function (e) {
		e.preventDefault();
		$('#zoomify3').modal();
	});
	
	$('.zoomify4').click(function (e) {
		e.preventDefault();
		$('#zoomify4').modal();
	});

	$('.zoomify5').click(function (e) {
		e.preventDefault();
		$('#zoomify5').modal();
	});
	
	$('.zoomify6').click(function (e) {
		e.preventDefault();
		$('#zoomify6').modal();
	});
	
	$('.zoomify7').click(function (e) {
		e.preventDefault();
		$('#zoomify7').modal();
	});	
	
	$('.zoomify8').click(function (e) {
		e.preventDefault();
		$('#zoomify8').modal();
	});
	
	$('.zoomify9').click(function (e) {
		e.preventDefault();
		$('#zoomify9').modal();
	});
	
	$('.zoomify10').click(function (e) {
		e.preventDefault();
		$('#zoomify10').modal();
	});

	$('.zoomify11').click(function (e) {
		e.preventDefault();
		$('#zoomify11').modal();
	});

	$('.zoomify12').click(function (e) {
		e.preventDefault();
		$('#zoomify12').modal();
	});		
	
	$('.modalSizeChart').click(function (e) {
		e.preventDefault();
		$('#modalSizeChart').modal();
		 newImage = "url(../images/spyder_size_chart_v2.gif)";
         document.getElementById('simplemodal-container').style.background = newImage ;	
         document.getElementById('simplemodal-container').style.height = '500px';	
	});	
	
	$('.findInStore').click(function (e) {
		e.preventDefault();
		$('#findInStore').modal();
	});	
	
	$('.buyOnline').click(function (e) {
		e.preventDefault();
		$('#buyOnline').modal();
	});	
	
	$('.tech1').click(function (e) {
		e.preventDefault();
		$('#tech1').modal();
	});	
	$('.tech2').click(function (e) {
		e.preventDefault();
		$('#tech2').modal();
	});	
	$('.tech3').click(function (e) {
		e.preventDefault();
		$('#tech3').modal();
	});	
	$('.tech4').click(function (e) {
		e.preventDefault();
		$('#tech4').modal();
	});	
	$('.tech5').click(function (e) {
		e.preventDefault();
		$('#tech5').modal();
	});	
	$('.tech6').click(function (e) {
		e.preventDefault();
		$('#tech6').modal();
	});	
	
	$('.video').click(function (e) {
		e.preventDefault();
		$('#video').modal();
	});	
	
	$('.vipContact').click(function (e) {
		e.preventDefault();
		$('#vipContactModal').modal();
	});		
});


function liHover() {
	$("#nav").children("li").hover(
		function () {
			$(this).addClass("over");
		},
		function () {
			$(this).removeClass("over");
		}
	);
}


$(document).ready( liHover );
