$(document).ready(function() {
    
	$("#webcam").hover(function (){
		    $(this).css( "background-image", "url(fileadmin/mm2010/bilder/button_webcam_aktiv.gif)"); 
    }, function(){ 
        $(this).css( "background-image", "url(fileadmin/mm2010/bilder/button_webcam_inaktiv.gif)"); 
    });

  var heightSC = $(".scrollContent").height();
  if (heightSC == 320) {
    $(".content-element").css("overflow","auto");
   // $(".content-element").css("overflow-y","scroll");
    // alert(heightSC);
  }
  //alert(heightSC);
  $("a[href^='webcam/']").attr('onClick', 'openPage(\"/?id=808\")')
                        .attr('href', '#');

});

function switchPage(link){

   
   if (link=="/?id=808") {
   
     openPage("/?id=808");
   
   } else {
   
      if (link.substr(5,4)=="http") {
                      
        var extLink = link.substr(5,(link.length-5));
        /* document.location.href = extLink; */
        nFenster = window.open(extLink, "mm100", "width=800,height=900,left=100,top=100");
        nFenster.focus();            
      } else {
        document.location.href = link;
      }
   }
   
    
    

}