function openShortcut( theUrl )
{
  if( ( theUrl.substring(0,1) != '/' ) )
  {
    window.open( theUrl,'', 'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes' );
  }
  else
  {
    location.href = theUrl;
  }
}

if( window.jQuery != null )
{
  $(document).ready( function()
  {
    $("#selectprov").change( function() {
     openShortcut( $("#selectprov option:selected").val() );
    } );

    // -------------------------------
    // Add hover effect for IE 6.0

    if( jQuery.browser.msie )
    {
      var addHover    = function() { $(this).addClass("hover") };
      var removeHover = function() { $(this).removeClass("hover") };

      $("#areacode").mouseover( addHover ).mouseout( removeHover );
    }
 });
}

function insertflash()
{
  if (document.getElementById("flashcontainer"))
  {
    var flashcontainer = new SWFObject("/resources/swf/provincie.swf", "flashcontainer", "100%", "100%", "8", "#ffffff");
  
    if (flashcontainer.installedVer.major > 7)
    {
      flashcontainer.write("flashcontainer");
      var flashback = document.getElementById("provincie")
      if (flashback)
      {
        flashback.style.background='url("/resources/img/box/blank.png") 50% 0 no-repeat #ff4b00';
      }
    }
  }
}

window.onload=function()
{
  insertflash();
}

