	var $j = jQuery;
	
	$j(window).ready(function() {
		$j("input[rel='clear']").focus(function() {if ($j(this).val() == this.defaultValue) {$j(this).val('');}});
		$j("input[rel='clear']").blur(function() {if ($j(this).val() == '') {$j(this).val(this.defaultValue);}});
	});
	
	
	
		var welcomeBannerTimer;
	
	function nextSlide(){
		var el = $j('#splitboxes');
		var slides = el.data('slides');
		var c = el.data('slideIndex');
		var n = ((c+1) >= slides.length)? 0 : c+1;
		el.data('slideIndex', n);
		$j(slides[c]).fadeOut(null, function(){
			$j(slides[n]).fadeIn();
		});
	}
	
	function over(){
		clearInterval(welcomeBannerTimer);
	}
	
	function out(){
		welcomeBannerTimer = setInterval(nextSlide, 5000);
	}
	
	$j(window).load(function() {
		var el = $j('#splitboxes');
		var slides = $j('#splitboxes>div');
		if (slides.length < 2){
			$j(slides[0]).show();
			return;
		}
		el.data('slides', slides);
		el.data('slideIndex', 0);
		welcomeBannerTimer = setInterval(nextSlide, 5000);
		el.bind('mouseenter', over).bind('mouseleave', out);
		$j(slides[0]).show();
	});
	
	
		$j(window).ready(function() {
		
		$j("#currency>a").click(function() {
			$j("#currencycont").toggle();
		});
		
		// MENU
		$j("#categorymenu ul li").hover(
			function() {
				$j(this).children("ul").show();
			},
			// HOVER OFF
			function() {
				$j(this).children("ul").hide();
			});
		
	});
