﻿
function initPage()
{
  setToolTips();
  Custom.init();
}

function setToolTips()
{
   $(function(){
    $("[title]").mbTooltip({ // also $([domElement]).mbTooltip  >>  in this case only children element are involved
      opacity : 1.0,       //opacity
      wait:10,           //before show
      cssClass:"default",  // default = default
      timePerWord:200,      //time to show in milliseconds per word
      hasArrow:false,			// if you whant a little arrow on the corner
      hasShadow:true,
      imgPath:"images/",
      ancor:"mouse", //"parent"  you can ancor the tooltip to the mouse position or at the bottom of the element
      shadowColor:"black", //the color of the shadow
      mb_fade:0 //the time to fade-in
    });
  });
}

function StyleInputElements()
{
  if(!$("input[type='radio']").parent().hasClass("donot"))
  {
    $("input[type='radio']").addClass("styled");
  }
  if(!$("input[type='checkbox']").parent().hasClass("donot"))
  {
    $("input[type='checkbox']").addClass("styled");
  }
  $(".styled").next("label").addClass("styledInputElementLabel");
} 

