// IE tvinga onhover i css dropdownmeny obs!!! bara elementet med id=MENU
sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);




// for bokningen hos buyit via turistbyran
function shoplink(URL){
	topPos=(screen.availHeight/2)-270
	leftPos=(screen.availWidth/2)-337
	if (navigator.appName=="Netscape"){
	window.open(URL,"","screenY="+topPos+",screenX="+leftPos+",width=675, height=550,resizable=yes,scrollbars=no,toolbar=no,statusbar=no");
	}else{
	window.open(URL,"","top="+topPos+",left="+leftPos+",width=675, height=500,resizable=no,scrollbars=no,toolbar=no,statusbar=no");
	}
}


/*lite test till menyn*/

/*
var mySlider = new Fx.Slide('menu', {duration: 500});
mySlider.toggle()
*/

/*
window.onDomReady(function() {
//mootools test att expandera menyn
var t=0;
var subs = $$("#menu");
var fx = new Fx.Elements(subs,{duration:300,transition:Fx.Transitions.quadOut});
var hideobj = {};
subs.each(function(sub,i) { { hideobj[i] = { "height": 0 }; } });
$$("#menu").getElements("a")[0].addEvent("mouseover",function(e) {
  $clear(t);
  if (this.getParent().getParent().id=="menu") {
    var obj = {};
    var sub = this.getParent().getElement("ul");
    subs.each(function(other,i){
      if (other==sub) obj[i] = { "height": sub.getSize().scrollSize.y };
      else { obj[i]={"height":0}; }
    });
    fx.start(obj);
  }
});
$$("#menu").getElements("a")[0].addEvent("mouseout",function(e) {
  t = function() { fx.start(hideobj);}.delay(500);
});

});

*/
