// JavaScript Document
$(document).ready(function(){
	$('#car').animate({'margin-left': 450}, 4000);
	$('#dust').animate({width: 400}, 4000);
	$('.slideshowMain').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout: 5000,
		speed: 1000
	});
});

$(function(){
  $('#nav A').css( {backgroundPosition: "0 0"} );
	  $('#nav LI').mouseover(function(){
		  $(this).children('A').stop().animate({backgroundPosition:"(0 -200px)"}, {duration:1000})
		  $(this).children('ul').show();
	  })
	  .mouseout(function(){
		  $(this).children('A').stop().animate({backgroundPosition:"(0 0)"}, {duration:500})
		  $(this).children('ul').hide();
	  });
});

$(document).ready(function() {
    if ($('#mainContentBox .thumbnail').length) {
        $('#mainContentBox .thumbnail').each(function() {
            $(this).click(function() {
                var imgsrc = $(this).children('.thumblink').text();
                $('.big-photo img').attr('src', imgsrc);
            });
        });
    }
});

var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-15356428-1']);
	_gaq.push(['_trackPageview']);
  
	(function() {
	  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();

