/*
 *  This is the JavaScript made for , it makes rounded corners and
 *  displays different content, depending on client window size.
 * 
 * This breaks some other functionality that is default in BeNoCMS, like the 
 * message window pop-up and also the newletter integration.
 * 
 */

  window.onload = function()
  {
      /*
      The new validTags setting is optional and allows
      you to specify other HTML elements that curvyCorners
      can attempt to round.

      The value is comma separated list of html elements
      in lowercase.

      validTags: ["div", "form"]

      The above example would enable curvyCorners on FORM elements.
      */
      settings = {
          tl: { radius: 5 },
          tr: { radius: 5 },
          bl: { radius: 5 },
          br: { radius: 5 },
          antiAlias: true,
          autoPad: true,
          validTags: ["div"]
      }

      /*
      Usage:

      newCornersObj = new curvyCorners(settingsObj, classNameStr);
      newCornersObj = new curvyCorners(settingsObj, divObj1[, divObj2[, divObj3[, . . . [, divObjN]]]]);
      */
      var myBoxObject = new curvyCorners(settings, "menu");
      myBoxObject.applyCornersToAll();

   document.getElementById('menu').style.zIndex = "0";
   document.getElementById('menu-inner').style.zIndex = "2";
   //alert(document.documentElement.clientWidth);
   //alert(window.location.hostname);
   if (document.documentElement.clientWidth < 1089)
   {
   	  document.getElementById('footer-logo').style.display = "none";
   }   
   else
   {
   	  document.getElementById('footer-logo').style.display = "inline";
   }

   if (document.documentElement.clientWidth < 1600)
   {
   	  document.getElementById('commercial').style.display = "inline";
   	  if (window.location.hostname == '192.168.1.55')
   	  {
   	     
   	  }
   	  else
   	  {
   	  	 
	  }   
   }   
   else
   {   	
   	  document.getElementById('commercial').style.display = "inline";
   	  if (window.location.hostname == '192.168.1.55')
   	  {    
   	     
   	  }
   	  else
   	  {
   	  	 
	  }   

   }   
   
  }

