$(function(){
	if ($.browser.msie) {
	   $('BODY').addClass('msie');
	}
	$('#bottom-navigation LI:first').addClass('first');

	$('#top-navigation .page-item-55 A').text('SHOP NOW').css('font-weight','bold');
	/*
	$('#home-toptxt').corner('10px');
	$('#home-toptxt H1').corner('top 10px');
	$('#home-toptxt #rotation-images').corner('7px');
	*/
	
	/*
	$('UL#splash_img').animatedinnerfade({ 
		speed: 1000, 
		timeout:  4000, 
		type: 'sequence', 
		containerheight: '305px', 
		containerwidth: '522px', 
		animationSpeed: 0, 
		animationtype: 'fade'
	});
	*/
	
	$('UL#splash_img').animatedinnerfade({ 
		speed: 0, 
		timeout:  2000, 
		type: 'sequence', 
		containerheight: '305px', 
		containerwidth: '522px', 
		animationSpeed: 0, 
		animationtype: 'fade'
	});
	$('#bio-testimonials UL').animatedinnerfade({ 
		speed: 1000, 
		timeout:  18000, 
		type: 'random', 
		containerwidth: '380px',
		containerheight: '200px',
		animationSpeed: 0, 
		animationtype: 'fade'
	});

	$('#top-navigation LI').each(function(){
		$(this).children('A').css('padding-left', 2);
		$(this).children('A').css('padding-right', 2);
		$(this).prepend('<span class="tab-left"></span>');
		$(this).append('<span class="tab-right"></span>');
		$(this).find('UL').addClass('sub-pages');
		$(this).find('UL').parent('LI').addClass('top');
	});
	$('.sub-pages LI').each(function(){
		$(this).children('A').css('padding-left', 9);
		$(this).children('A').css('padding-right', 9);
	});
	
	$('#top-navigation LI.top').hover(function(){
			$(this).children('UL').show();
		},function(){
			$(this).children('UL').hide()
	});

	try
	{
		Cufon.replace('.cuf', {fontFamily: 'Futura Condensed', hover:'true'});	
	}
	catch(an_exception)
	{
		//
	}


	
	$('H2').each(function(){
		$(this).prepend('<span class="corner-left"></span>');
	});

	//$(".biomat-img A, .p-left A, .prettyphoto_link").prettyPhoto();

	$('#global-translator').hover(function(){
		$(this).animate({
			width: '112px'
		});
	},function(){
		$(this).css('width','0px');
	});


	$('.diduknow-section .widget H3, .widget_block2_icons H3').corner('10px');
	
	$('#tell2friend INPUT:submit').addClass('submit');


});


