// encoding: utf-8
/*@cc_on/*@if(@_jscript_version<5.7)try{document.execCommand('BackgroundImageCache',0,1)}catch(e){}/*@end@*/

// ***** jqreq *****
Req.localPath = Req.localPath || '/skin/basic/'
Req(
  'autovalidate',
  'popups',
  'equalizeheights',

  function(){
    var $ = jQuery;
    
    $('body').addClass('heightfixed');
    var h1 = $('.pgmain .wrap').height(),
        h2 = $('.pgextra1 .wrap').height();
        max = Math.max(h1,h2);
    
    if( $.browser.msie && $.browser.version < 7 ) {
      $('.pgmain .wrap').css({ 'height' : max });
    } else {
      $('.pgmain .wrap').css({ 'min-height' : max });
    }
    
    

    if (!window.EPLICA_loggedin)
    {

      $('.popbanner, .topbanner').popUps({
          width   : 502,
          height  : 580
        });

    }


    // validate all forms
    $('form').autoValidate();
    
    function popupflash() {
      window.open('http://www.midi.is/skifan/opener.asp','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=520,height=580,left=0,top=0');
    }

  }
);
// **** /jqreq *****
