
$(function() {
	$('#stonesQ1, #navlist001-top, #navlist001-bot, #navlist003-top, #navlist003-mid, #navlist003-bot').mouseover(function(){	
    $(this).animate({"backgroundColor":"rgb(255,255,255)"},{queue:false,duration:150});
	});
	$('#stonesQ1, #navlist001-top, #navlist001-bot, #navlist003-top, #navlist003-mid, #navlist003-bot').mouseout(function(){
    $(this).animate({"backgroundColor":"rgb(240,240,240)"},{queue:false,duration:150});
	});
});

$(function() {
	$('#showroom-button').mouseover(function(){	
    $('h2').animate({"color":"#fff"},{queue:false,duration:150});
	});
	$('#showroom-button').mouseout(function(){
    $('h2').animate({"color":"#ccc"},{queue:false,duration:150});

	});
});
$(function() {
	$('#gallery-button').mouseover(function(){	
    $('h3').animate({"color":"#fff"},{queue:false,duration:150});
	});
	$('#gallery-button').mouseout(function(){
    $('h3').animate({"color":"#ccc"},{queue:false,duration:150});

	});
});
	
	// set the default position
	var current = 0;

	// set the direction
	var direction = 'h';

	function bgscroll(){

    	// 1 pixel row at a time
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
		current -= 0;
	} else {
		current -= 1;	
	}
   
	    // move the background with backgrond-position css properties
	    $('#showroom-button, #gallery-button').css("backgroundPosition", (direction == 'h') ? current+"px 0" : "0 " + 0+"px");
   
	}

	//Calls the scrolling function repeatedly
	 setInterval("bgscroll()", 100);

$('#gallery-button').mouseover(function(){	

	//Calls the scrolling function repeatedly
	 setInterval("bgscroll()", 500);
});
	 
$(document).ready(function(){
  $("body, h1, h4, #stones-textbox, #guk-desc, #description-large-back, #navlist004-info, #navlist005-desc").textShadow();
	var option = {
	  x:      0, 
	  y:      0, 
	  radius: 10,
	  color:  "#000"
	}
	$("h2, h3, #description-large").textShadow( option );			  
});

if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
	$(function() {
		$('.thumbs').cycle({
			fx: 'none',
			speed:  '0', 	 
			timeout: 4000,
		});
		$('#touch-details').css({'display':'block'});
		$('#leftnav-large, #leftnav, #rightnav-large, #rightnav').css({'opacity':'0'});
	});
	} else {
	$(function() {
		$('.thumbs').cycle({
			fx: 'none',
			speed:  '0', 	 
			timeout: 4000,
		});
	});
}

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-28019364-2']);
  _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);
  })();

