
function favoris() {
  if ( navigator.appName != 'Microsoft Internet Explorer' )
  { window.sidebar.addPanel("Hotel-Restaurant-Traiteur Eifeler Hof","http://www.eifelerhof.be",""); }
  else { window.external.AddFavorite("http://p149655.mittwaldserver.info","Hotel-Restaurant-Traiteur Eifeler Hof"); } }

$(document).ready(function(){
  
  if($("#col2 .csc-default").size()>1){
   
    $("#col2").accordion({
      header: '.csc-header',
      autoheight: false
    });
  }else{
    $("#col2 h2").css({"background":"transparent none","padding-left":"0px"});
  }
  
  $('#menu ul li').mouseover(function(){
    
    $(this).find("span").css("background","transparent url('fileadmin/templates/eifelerhof/images/menu-right.png') no-repeat top right");
    $(this).find("a").css("background","#1a1a1a none");
    
    $(".sub li a").css("background","transparent none");
  });
  $('#menu ul li').mouseout(function(){
    $(this).find("a").css("background","transparent none");
    $(this).find("span").css("background","transparent none");
    
    $(".current span").css("background","transparent url('fileadmin/templates/eifelerhof/images/menu-right.png') no-repeat top right");
    $(".current a").css("background","#1a1a1a none");
    
    $(".sub li a").css("background","transparent none");
  });
  
  //$("#container").css("height",(screen.height-369)+'px');
  
  $('#tour360').mouseover(function(){
    $("#tour360").css("color","#f39000");
    $('.col360').animate({
      width: '145px',
      right: "-3px"
    },600);
  });
  
  $('#360top').mouseout(function(){
    $('.col360').animate({
      width:"0px",
      right:"-3px"
    },400);
    
  });
  $('#360bottom').mouseout(function(){
    $('.col360').animate({
      width:"0px",
      right:"-3px"
    },400);
    
  });
  
  $('#textDown').mouseover(function(){
    
    if($(this).attr("src")=="fileadmin/templates/eifelerhof/images/up.png"){
      $(this).attr("src","fileadmin/templates/eifelerhof/images/up_hover.png");
    }else{
      $(this).attr("src","fileadmin/templates/eifelerhof/images/down_hover.png");
    }
  }).mouseout(function(){
    if($(this).attr("src")=="fileadmin/templates/eifelerhof/images/up_hover.png"){
      $(this).attr("src","fileadmin/templates/eifelerhof/images/up.png");
    }else{
      if($(this).attr("src")!="fileadmin/templates/eifelerhof/images/up.png"){
        $(this).attr("src","fileadmin/templates/eifelerhof/images/down.png");
      }
      
    }
  });
  
  $('#textDown').toggle(function(){
    $(this).attr("src","fileadmin/templates/eifelerhof/images/up.png");
    $(this).css("top","5px");
    $('#col2').animate({
      height: '30px',
      top: "535px"
    },{
      duration: 1000
    });
  },function() {
    $(this).css("top","13px");
    $(this).attr("src","fileadmin/templates/eifelerhof/images/down.png");
    $('#col2').animate({
      height:"540px",
      top:"-10px"
    }, 1000);
  });
  
  
  
  if($("#col360Content")){
    $("#col360Content a").fancybox({
      'width' : '60%',
      'height' : '75%',
      'autoScale' : false,
      'transitionIn' : 'none',
      'transitionOut' : 'none',
      'type' : 'iframe'
    }); 
  }
  
  
  $(".sf-menu .last .sub .last a").fancybox({
    'width' : '60%',
    'height' : '75%',
    'autoScale' : false,
    'transitionIn' : 'none',
    'transitionOut' : 'none',
    'type' : 'iframe'
  }); 
  
  
  if($("#kontaktlink")){
    $("#kontaktlink a").fancybox({
      'width' : '60%',
      'height' : '75%',
      'autoScale' : false,
      'transitionIn' : 'none',
      'transitionOut' : 'none',
      'type' : 'iframe'
    }); 
  }
  if($(".various")){
    $(".various a").fancybox({
      'autoScale' : true,
      'transitionIn' : 'none',
      'transitionOut' : 'none',
      'type' : 'iframe'
    });
  }
});
