// JavaScript Document



$(document).ready(function() {

	if (location.href.indexOf('shop/pg-dd.html&redirect=1') != -1){$('body').hide();}

	$('.Prod').each(function(){

/* STRIKE-8 */
		if($(this).find('strike').text().length != 0 && $(this).find('strike').text().indexOf('8') != -1){
			$(this).html($(this).html().replace('</STRIKE>8<STRIKE>','8'))
			$(this).html($(this).html().replace('</strike>8<strike>','8'))
			
			ProdNumberJS = $(this).find('input[name=ProductID]').val()
			ProdLinkJS = $(this).find('a').eq(0).attr('href')
			
			$(this).find('.BuyButton_ProductList').click(function() {
				location.href = ProdLinkJS
			});
		}
/* STRIKE-8 */


		if($(this).find('.PPrice strike').length!=0){
			$(this).find('.PPrice').css('color','#c92b2b')
			$(this).find('.PPrice div').text('Tilbudspris')
		}
	});


	$('#ShopMainLayOutTable #ProductMenu_Table a').each(function(){
		if ($(this).find('strong').length!=0){
			$(this).addClass('ProdMenuStrong').removeAttr('href');
		}
	});


	if ($('.NumberProduct_Basket').html().indexOf('0&nbsp;') == -1){
		$('#DivClickBasket').css('background-color','#29671d').css('background-image','url(/images/template/background-basket2011.png)')
	}

	$('#ShopMainLayOutTable .Fees_ShowBasket:eq(0)').parent().hide();

});
