Cufon.replace('.cufon')('#productsteps a',{hover:true})('#slogan');
						
$(document).ready(function() {
	
	$('#mainnav').superfish({
		dropShadows: false,
		animation: {height:'show'},
		speed: 100,
		delay: 200,
		autoArrows: false 
	});
	
	$('#slideframe').cycle({
		fx:'scrollHorz',
		speed:1000, 
		timeout:5000,
		pager:'#pager',
		next:'#next', 
		prev:'#prev' 
	});
	
	$('#pager a').click(function(event) {
		event.preventDefault();
	});
	
	// tables
	$('table.striped tr:even').addClass('even');
	$('table tbody tr').hover(function(){
			$(this).addClass('hover')
		}, 
		function() {
			$(this).removeClass('hover');
		}
	);

	// countrynav
	$("#countrynav li").hover(function() {
		$(this).addClass("hover");
	}, function() { 
		$(this).removeClass("hover");
	});
	
	
	// clear default
	(function($){
		$.fn.clearDefault = function(){
			return this.each(function(){
				var default_value = $(this).val();
				$(this).focus(function(){
					if ($(this).val() == default_value) $(this).val("");
				});
				$(this).blur(function(){
					if ($(this).val() == "") $(this).val(default_value);
				});
			});
		};
	})(jQuery);

	$('input.cleardefault').clearDefault();


});
