

//JQuery-related items
$(document).ready(function(){

	//Preloader
	jQuery.preLoadImages(
		"../images/footer_floor_v5.png",
		"../images/background_chalkSeamless2.jpg",
		"../images/outlets2.png",
		"../images/circle_empty.png",
		"../images/circle_filled.png",
		"../images/circle_highlight2.png"
	);
	
	//Hover fade
    $("div.thumb a").hover(
      function () {
        $(this).children(".thumbText").fadeTo(0, 1);
      }, function () {
      	$(this).children(".thumbText").fadeTo(0, 0);
      }
    );
    
    $("div.thumb-big a").hover(
      function () {
        $(this).children(".thumbText").fadeTo(0, 1);
      }, function () {
      	$(this).children(".thumbText").fadeTo(0, 0);
      }
    );
    
	//Slider
	$("#slider").easySlider({
		auto: false,
		continuous: true,
		numeric: true,
		speed: 200
	});
	
	/*JCaption
	$('#slider li img').jcaption({
		//copyStyle: true,
		animate: true,
		show: {height: "show"},
		hide: {height: "hide"}
	});*/
	
	//Cufon Text Replace (Non-Jquery)
	/*Cufon.replace('.test', { fontFamily: 'Helvetica Neue LT Pro' });*/

});


//Field Clear
function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
} 
