// JavaScript Document
$(document).ready(function(){
$.ajaxSetup({ cache: false }); // don't cache any ajax processes 
// --- check for iphone or android browsers
if((navigator.userAgent.match(/iPhone/i))||
  (navigator.userAgent.match(/iPod/i))||
  (navigator.userAgent.match(/iPad/i))||
  (navigator.userAgent.match(/Android/i))){
   $('body').css('-webkit-text-size-adjust', 'none');
}
// -------------- navi hover click script --------------------
var hoverClass = 'hover_big_link';
$('.big_link').each(function(){
	$(this).hover(
		function(){
			$(this).addClass(hoverClass);
			status = $(this).find('a').attr('href');
		},
		function(){
			$(this).removeClass(hoverClass);
			status = '';
		}); // end hover
	$(this).click(function(){
			location = $(this).find('a').attr('href');					   
	}); // end click function
	$(this).css('cursor','pointer');
}); // target function
// USE CLASS: hover_change FOR ALL IMAGES TO BE SWAPPED ON HOVER
$('img.hover_change').each(function(){
	var imgFile = $(this).attr('src');
	var preloadImage = new Image();
	var imgExt = /(\.\w{3,4}$)/;
	preloadImage.src = imgFile.replace(imgExt,'-h$1');
	$(this).hover(
		function(){
			$(this).attr('src',preloadImage.src);	
		},
		function(){
			$(this).attr('src', imgFile);
		}
	);
});
});
