/* Here goes some javascript functionality */
$(document).ready(function(){

$('#button-cart').click(function() {
	$('.shoppingCartCnt span').animate({ "color": "#FF003C" },200, function(){
		$('.shoppingCartCnt span').delay(800).animate({ "color": "white" },200);
	});
});

if ($('.product-info').length > 0) {
	if ($(".footer > .f_left > ul > li > a:contains('Vilkår')").length > 0) {
		//content div id
		$('.tabs-holder').after('<div id="extra-information-for-life"><strong>Du vil motta en korrektur f&oslash;r bestillingen produseres.</strong><br/> L.i.f.e. mottar deler av overskuddet og kan hjelpe ungdom og<br/>deres familier ut av en vanskelig situasjon.<br/><br/>Alle priser er eks. MVA  og frakt.</div>');
		$('#extra-information-for-life').css({"float":"right","width":"570px","background-color":"#fff","padding":"20px","border":"1px solid #999999","border-radius":"8px","-moz-border-radius":"8px","font-size":"15px","margin-top":"20px","margin-right":"9px"});
		$('#button-cart > span').html('Legg til handlekurv');
		$("span:contains('Upload File')").html('Last opp fil');
	}else {
		
		$('.tabs-holder').after('<div id="extra-information-for-life"><strong>L.i.f.e will contact you before your order is produced.</strong><br/> L.i.f.e. will receive part of their profits and can help youth<br/>and their families out of a difficult situation.<br/><br/>All prices are excl. VAT and shipping.</div>');
		$('#extra-information-for-life').css({"float":"right","width":"570px","background-color":"#fff","padding":"20px","border":"1px solid #999999","border-radius":"8px","-moz-border-radius":"8px","font-size":"15px","margin-top":"20px","margin-right":"10px"});
	}
	$("a:contains('Add to Compare')").css({"display":"none"});
	$("a:contains('Legg til for å sammenlikne')").css({"display":"none"});
}


//$('#button-account').remove();
if ($.browser.msie && $.browser.version.substr(0,1)<9) {
	if ($(".category-list").length > 0) {
		$(".products").addClass('IE-product-box').css({"border":"0"});
		$(".products > .image").css({"width":"193px","margin-left":"2px","overflow":"hidden"});
		
		$(".category-list > ul > li > img").addClass('IE-button');
		$(".category-list > ul > li > ul").css({"margin-top":"-3px","padding-left":"0px"}).hide();
		
		$(".category-list > ul > li").click(function () {
			$(this).children("ul").toggle("slow");
		});
	}
	
	$('.option > a').wrap("<div class='IE-small-button'> </div>");	
	//$(".m").wrap("<div class='IE-big-button'> </div>");
	
	
}else {	
	$(".option > a").addClass("cart-options");
	$(".category-list > ul > li > img").addClass('dropdown-product-button');
}



});
