﻿$(document).ready(function(){$(".slideshow").unbind();$(".slideshow").cycle({fx:"fade",slideExpr:"img",next:".next",prev:".previous"});$(".postnrInput").keypress(function(){var b=$(".postnrInput").val();var a=$(".postnrInput").val().length;if(a==3){$.getJSON("/Content/Forhandlere.json",function(c){console.debug(c.forhandlere);var d=[];$.each(c.forhandlere,function(e,f){$.each(f,function(g,h){if(g=="postnr"){}})})})}})});function isNumberKey(b){var a=(b.which)?b.which:event.keyCode;if(a>31&&(a<48||a>57)){return false}return true}function getMaskedTextFocus(b,a){if(b.value==a){b.value="";b.style.color=""}}function getMaskedTextBlur(b,a){if(b.value==""){b.value=a;b.style.color="#a79d96"}}function LoadBannerCallback(a){$.each(a,function(){var b=$(this);$.each($(this)[0].Placements,function(){var c=$(".banner[placement='"+$(this)[0]+"']");if($(this)[0]){c.html(b[0].Path)}else{c.html("Kunne ikke laste inn banner.")}})});$(".banner").each(function(){$(this).children(".loader").hide()})}$("input").live("keypress",function(a){if(a.keyCode==13){return false}});$(".menulinkWithSub").click(function(){$("#dropDownWrapper").slideToggle("fast");var a=$("#menuWrapper").offset().top;$("html, body").animate({scrollTop:a},"slow")});
