function externalLinks() {
       if(!document.getElementsByTagName) return;
       var links,a,i;
       links = document.getElementsByTagName("a");
       for(i=0;i<links.length;i++) {
            a = links[i];
            if(a.getAttribute("rel") && a.getAttribute("rel").indexOf("external") > -1) {
                 a.onclick = function() {
                      window.open(this.href);
                      return false;
}}}}

$(document).ready(function($) {
  externalLinks();
  
  $('ul#Navigation li').hover(function() {
    $(this).addClass('over');
    $(this).find('ul').addClass('over').show();

  },function() {
    $(this).removeClass('over');
    $(this).find('ul').removeClass('over').hide();
  });
  
  $('div#fb_like_box').append('<fb:fan profile_id="330630197656" width="240" height="81" connections="0" stream="false" header="false" css="http://www.bodensee.travel/fileadmin/assets/fb.css?7"><\/fb:fan>');
  
  $('div.more_content div.csc-header').click(function(){
    if($(this).next().css('display') == 'none') {
      $(this).next().css('display', 'block');
      $(this).css('background', 'url("/uploads/tf/less.png") left top no-repeat');
    } else {
      $(this).next().css('display', 'none');
      $(this).css('background', 'url("/uploads/tf/more.png") left top no-repeat');
    }
  });
});

