jQuery(document).ready(function($) {
	Cufon.replace('h1,h2,h3,h4,h5,h6');
	$('select').change(function() {
		var value = $(this).val(), root = $('body').attr('rel')
		location.href = root + '?cat=' + value;  
	});
	/*Clears inputs*/
	swap_val = [];
	$("#s").each(function(i){
	    swap_val[i] = $(this).val();
	    $(this).focusin(function(){
	        if ($(this).val() == swap_val[i]) {
	            $(this).val("");
	        }
	    }).focusout(function(){
	        if ($.trim($(this).val()) == "") {
	            $(this).val(swap_val[i]);
	        }
	    });
	});
	/*Scrollings*/
	var $scrollTo = $('.comments-trackbacks a,#backtotop');
	$scrollTo.click(function() {
		$(document).scrollTo($(this).attr('href'),800);
		return false;
	});
	$('#shopfeaturelist').cycle({
		fx: 'scrollHorz',
		pager: '#pager',
		pagerAnchorBuilder: function(idx, slide) { 
	        return '<li><a href="#"></a></li>'; 
	    }
	});
});
