// JavaScript Document

 
 
$(document).ready(function(){

$.ajax({
	url: "../jQuery/jquery.simplyscroll-1.0.3/jquery.simplyscroll-1.0.3.js",
	dataType: "script",
	async: false,
	success: function(js){if(jQuery.browser.safari){eval(js);}}
});


$("#scroller").simplyScroll({
			className: 'custom',
			autoMode: 'loop',
			pauseOnHover: false,
			frameRate: 60,
			speed: 4
		});


	$.ajax({
	url: "../jQuery/supersleight.plugin.js",
	dataType: "script",
	async: false,
	success: function(js){if(jQuery.browser.safari){eval(js);}}
});
	
	
	
	

	$('#footerWrapper').supersleight();
	$('#mainNav > ul > li > a').supersleight();
	
	
 
 
 
 
    $('#top > #rotate').cycle({
				speed: 3500
		});
	
	//$("#bottomRow > #trucks > div:first-child").css.({"display":"block"});
	
	$('#bottomRow > #trucks > #tRotate').cycle({
		speed: 2000
	});
	
	//$("#top > #rotate:first-child").css.({"visibility":"visible"});
		
		$("#topBottomNav > ul > li:first-child").css({
			'border-left-width': '1px',
			'border-left-style': 'solid',
			'border-left-color': '#6D6640'
		});
		
		
		$("#topRightNav > ul > li:last-child").css({
			'border-right-color':'#00212A',
			'border-right-style':'solid',
			'border-right-width':'1px'
		});
		
		$("#mainNav > .item:last-child").css({"border":"none"});
	
		$("#mainNav > .item").hover(function() {
				$(this).children("a").addClass("hover");
				  }, function() {
					  $(this).children("a").removeClass("hover");
			});
	
		$("#mainNav > ul > li").not("#mainNav > ul >li.hover").hover(function() {
				$(this).addClass("hover");
				$(this).children("a").css({"color":"#C6BEA2"});
				  }, function() {
					  $(this).removeClass("hover")
					  $(this).children("a").css({"color":"#C6BEA2"});
		});
		
		
		$("#companyNav > ul > li").hover(function() {
				$(this).addClass("hover");
				$(this).children("a").css({"color":"#E0DCC1"});
				  }, function() {
					  $(this).removeClass("hover")
					  $(this).children("a").css({"color":"#00212A"});
			});
		
		$("#topRightNav > ul > li").hover(function() {
				$(this).addClass("hover");
				$(this).children("a").css({"color":"#E0DCC1"});
				  }, function() {
					  $(this).removeClass("hover")
					  $(this).children("a").css({"color":"#E0DCC1"});
			});
		
		$("#topBottomNav > ul > li").hover(function() {
				$(this).addClass("hover");
				$(this).children("a").css({"color":"#00212A"});
				  }, function() {
					  $(this).removeClass("hover")
					  $(this).children("a").css({"color":"#E0DCC1"});
			});
		
		$("#sideNav > ul > li").not("#sideNav > ul > li.hover").hover(function() {
				$(this).css("hover");
				  }, function() {
					  $(this).removeClass("hover")
			});
		
		$("#midRow > .sections:first-child").css({"border-left":"none"});
		
		
		$("#footerWrapper ul li:last-child").css({"border-right":"none"});
		
		
		$("#pageWrapper > #midRow > .sections:first-child").css({"left":"185px"});
		
		
		$("#storeNav > table > td").css({"border":"none"});
		
		$("#pageWrapper #footerWrapper ul:first-child").css({"padding-left":"6px"});
		
		$("#leftColumn > h2").not("#leftColumn > h2:first-child").css({"margin-top":"25px"});
		
		$("#rightColumn > #codesTable:first-child").css({"margin-top":"150px"});
			$('#rightColumn > #codesTable[name="pools"]').css({"margin-top":"50px"});
		
		$("#invLinks > ul > li:last-child").css({"border":"none"});
		
		$("#admin > .row").hover(function() {
				$(this).css({"background-color": "#FFFBD5"});
				  }, function() {
					  $(this).css({"background-color": "#FFF"});
			});
		
		//$("#div1").height( $("#div2").height() ); 
		
		//var divHite = $("#shipThru > .row > .codesBottom").height();
			$("#shipThru > .row > .modelDesc").height( $("#shipThru > .row").height() -6 +'px');
			$("#shipThru > .row > .codeBottom").height( $("#shipThru > .row").height() -6 +'px');
		
		$("#shipThru > .row:last-child").css({"border-bottom":"none", "border-bottom-style":"none", "border-bottom-width":"0px"});
		
		
		$(function() {
    		$('.show').cycle();
		});
		
		
});
