function mainmenu(){
$("#menuCntr ul li ul").css({display: "none"}); 

$("#menuCntr li").hover(function()
{
	$(this).addClass("selected");
	$(this).find("ul:first:hidden").css({visibility: "visible",display: "none"}).show(400);
	},
	function()
	{
		$(this).removeClass("selected");
		$(this).find("ul:first").css({visibility: "hidden"});
	});
}
function offerte(){
$(".offerte").hover(function()
	{
	    this.src = 'images/buttons/offerte-hover2.png';
	  }, function () {
	    this.src = 'images/buttons/offerte.png';
	  });
	  $(".offerte").click(function()
	{
	    document.location='contact.html';
	  });

}

$(document).ready(function()
{
	mainmenu();
	offerte();
});
var min=10;
var max=18;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
   var p = document.getElementsByTagName('h2');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }
   var p = document.getElementsByTagName('h2');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
