//window.customAdditionalImages = false;

$(document).ready(function(){
    $(".pnlPageNavigation").insertAfter(".pnlAdditionalInfo1").show();
	if ($("body").hasClass("Default")) {
		$(".pnlMain").prepend('<div class="pnlWelcomeNotisLeft"></div><div class="pnlWelcomeNotisRight"></div>');
		$(".pnlWelcomeNotisLeft").append($(".pnlNotis1"));
		$(".pnlWelcomeNotisLeft").append($(".pnlNotis2"));
		$(".pnlWelcomeNotisLeft").append($(".pnlNotis3"));
		$(".pnlWelcomeNotisLeft").append($(".pnlNotis4"));
		
		$(".pnlWelcomeNotisRight").append($(".pnlViewPriceVat").clone());
		$(".pnlWelcomeNotisRight").append($(".pnlNotis5"));
		$(".pnlWelcomeNotisRight").append($(".pnlNotis6"));
		$(".pnlWelcomeNotisRight").append($(".pnlNotis7"));
		$(".pnlWelcomeNotisRight").append($(".pnlNotis8"));
		$(".pnlWelcomeNotisRight").append($(".pnlNotis9"));
		$(".pnlWelcomeNotisRight").append($(".pnlNotis10"));
		
		$(".pnlNotis").show();
	}
	if ($("body").hasClass("payment")) {
		$(".trCusType").hide();
		$('<tr class="trMovedCusTypeHead"><td class="avdrubrik tdMovedCusTypeHead">Kundtyp</td></tr>').insertBefore(".trDelivery");
		$('<tr class="trMovedCusType"><td class="tdMovedCusType"></td></tr>').insertAfter(".trMovedCusTypeHead");
		$(".tdMovedCusType").append($(".trCusType table"));
		var s1 = $(".tdMovedCusType table tr:first td:eq(0)");
		var s2 = $(".tdMovedCusType table tr:first td:eq(1)");
		var s3 = s1.clone();
		var s4 = s2.clone();
		s1.replaceWith(s4);
		s2.replaceWith(s3);
		
		s1 = $(".tdMovedCusType table tr:first td:eq(3)");
		s2 = $(".tdMovedCusType table tr:first td:eq(4)");
		s3 = s1.clone();
		s4 = s2.clone();
		s1.replaceWith(s4);
		s2.replaceWith(s3);
	}
});
