$(document).ready(function() {
	// * cheat, so we can style easier, since IE doesn't support attribute-matching
	$("input[type=text]").add("input[type=password]").addClass("text");
	$("input[type=submit]").addClass("submit");
	$("input[type=button]").addClass("button");

	$(".productBox").wrap('<div class="productBoxWrapper"></div>')
	
	// Find the current active menupoint and expand and top uls
	lm_act = $("div.leftMenu a.active");
	$(lm_act).parents("ul").each(function() {
		$(this).removeClass("subMenu");
		$(this).prev().addClass("active");
	});

	$(".frontpage_button").click(function() {
		window.location.href = $(this).attr("frontpage_url");
	});
});

