// JavaScript Document
$(document).ready(function() {

// Clear Search Box
	$('.input').focus(function() {
		if($(this).val() == "Search product or keyword...") {	
			$(this).val('')
		}else{
	// "stop"
		return;
 		}
	});
	
	$('.input').blur(function() {
		if($(this).val() == "") {
			$(this).val('Search product or keyword...')
		}else{
	// "stop"
		return;
		}
	});
//==========

// Initalise Fancybox popup for size guide

	$("a.SizeGuide").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'titleShow'		: 	false,
		'overlayShow'	:	false
	});
	


});

$(window).ready(function() {

// Initialise Slideshow

	$('#featured').orbit({
     animation: 'fade',                  // fade, horizontal-slide, vertical-slide, horizontal-push
     animationSpeed: 200,                // how fast animtions are
     timer: true, 			 // true or false to have the timer
     advanceSpeed: 2500, 		 // if timer is enabled, time between transitions 
     pauseOnHover: false, 		 // if you hover pauses the slider
     startClockOnMouseOut: false, 	 // if clock should start on MouseOut
     startClockOnMouseOutAfter: 1000, 	 // how long after MouseOut should the timer start again
     directionalNav: true, 		 // manual advancing directional navs
     captions: true, 			 // do you want captions?
     captionAnimation: 'fade', 		 // fade, slideOpen, none
     captionAnimationSpeed: 800, 	 // if so how quickly should they animate in
     bullets: false,			 // true or false to activate the bullet navigation
     bulletThumbs: false,		 // thumbnails for the bullets
     bulletThumbLocation: '',		 // location from this file where thumbs will be
     afterSlideChange: function(){} 	 // empty function 
	});
	

});

