

function breakText(text) {
var zwischen = text.replace(/-/i, '- ');
zwischen = zwischen.replace(/\//i, '\/ ');
return zwischen;
 }
 
 function google_ad_request_done(google_ads) {
var frn = '';
var nl = "\n";
var i;
var inForum = 'off';
if (google_ads.length == 0) {
	return;
}
if (google_ads[0].type="text") {
	
	if (window.location.href.indexOf("ttp://forum.") > 0) {
	inForum = 'on';
	}
	
	if (inForum == 'off') {
   	frn += '<div class="frnGooAdsMain">' + nl;
	} else if (inForum == 'on') {
	frn += '<tr class="trow1">' + nl;
	frn += '	<td align="left" height="15" valign="middle"><span class="boxhead">&nbsp;</span></td>' + nl;
	frn += '	<td align="left" height="15" valign="middle" width="400"><b>Google Anzeigen</b></td>' + nl;
	frn += '	<td align="right" height="15" valign="middle"><span class="boxtext">&nbsp;</span>' + nl;
	frn += '	</td>' + nl;
	frn += '</tr>' + nl;
	frn += '<tr class="trow2" height="5">' + nl;
	frn += '	<td height="5" valign="top">' + nl;
	frn += '	&nbsp;' + nl;
	frn += '	</td>' + nl;
	frn += '	<td colspan="2" class="f1" height="5" valign="top">' + nl; 
	}
	
	frn += '<div class="frnGooAds">' + nl;
	
	if (inForum == 'off') {
	frn += '	<div class="frnGooAdsHead">Google Anzeigen</div>' + nl;
	}
	
	if (inForum == 'off') {
	frn += '	<div class="frnGooAdsBox">' + nl;
	}
        for(i=0; i < google_ads.length; ++i) {
	frn += '<div class="frnGooAdsItem">' + nl;
	frn += '<a href="';
	frn += google_ads[i].url + '" ';
	frn += 'target="_blank" ';
	frn += 'onmouseout="window.status=\'\'" ';
	frn += 'onmouseover="window.status=\'' + google_ads[i].visible_url + '\'; return true" ';
	frn += 'title="'+google_ads[i].visible_url + '" class="frnGooAdsTitleLink">' + breakText(google_ads[i].line1);
	frn += '</a>';
	frn += breakText(google_ads[i].line2) + ' ';
	frn += breakText(google_ads[i].line3);
	frn += '<br/>';
	frn += '<a href="';
	frn += google_ads[i].url + '" ';
	frn += 'target="_blank" ';
	frn += 'onmouseout="window.status=\'\'" ';
	frn += 'onmouseover="window.status=\'' + google_ads[i].visible_url + '\'; return true" ';
	frn += 'title="'+google_ads[i].visible_url + '" class="frnGooAdsUrlLink">';
	frn += breakText(google_ads[i].visible_url);
	frn += '</a>';		
	frn += '</div>';
	frn += '<div class="frnGooAdsLine"></div>';
	}
	
	if (inForum == 'off') {
	frn += '	</div>'+ nl;
	}
	
	frn += '</div>'+nl;
	
	if (inForum == 'off') {
	frn += '</div>'+nl;
	} else if (inForum == 'on') {
	frn += '</td>'+ nl;
	frn += '</tr>'+ nl;  
	}
}
document.write(frn);
return;
}
var google_skip = null;
if (typeof adsAlreadyShown != "undefined") {
  if (typeof google_max_num_ads != "undefined") {
    google_skip = google_max_num_ads;
  }else{
    google_skip = '5';
  }
} else {
   adsAlreadyShown = true;
}
google_ad_client = 'ca-pub-2584363004779930'; // substitute your client_id
google_max_num_ads = '5';
google_ad_output = 'js';
google_ad_type = 'text';
google_language = 'de';
google_encoding = 'latin1';
google_safe = 'high';
google_adtest = 'off';

isInit = false;
var firstKeyDown = false;
var firstKeyDownFeet = false;

jQuery().ready(function() {
 if(!isInit){
   initThemenFlyout();
   initNaviHorizontal();
  //document.getElementById('web').childNodes[0].style.backgroundColor = '#C2E392';
 }
 
 var frn_clientOs = BrowserDetect.OS ;
 if ( frn_clientOs == 'Mac' || frn_clientOs == 'Linux' ){
   $("#frnKopfDSL a").addClass("os_mac");  
 }
 //if(!$('#frnKopfMehr')[0]){$('.subnav1.current').removeClass('current')}
 //$('div#frnGoogleHead2').click(function(){$('#frn_searchTarget').submit()});
 // Head-Link-Test
 $('.frn_contHead a').children('strong').each(function(i) { $(this).html($(this).html()+' &raquo;'); });
});
function initThemenFlyout(){
 isInit = true;
 // Flyout
 showedTopnavclick = false;
 $("[class^='topnav_']").mouseover(function(){
     $("[class^='frn_topnavi_subnav']:not([class*='flyout_by_click'])").hide();
      //classValue = $(this).attr('class');
      classValue = $(this).attr('class').replace(/ active/i, '');
      if (classValue != '' && showedTopnavclick == false) {           
          ($(this).attr('id') == "frnKopfThemen") ? posE = 199 : posE = $(this).offset();
          $("#frnKopfLeiste li[class^='topnav']:not([class*='topnavclick'])").removeClass('aktivClick');
          $("div."+classValue).show().addClass('aktivClick').css('left', posE.left-14);
          $(this).addClass('aktivClick');
      }
 });
 $('div.frn_topnavi_subnav').mouseout(function(){   
      var parentElement = $(this).parent().get(0).tagName;
      var classValue = $(this).parent().attr('class');
           
      $('div.frn_topnavi_subnav div').mouseover(function(){
           $('div.'+classValue).show();
      });
 });
 $('div.frn_topnavi').mouseout(function(){
    $("div.frn_topnavi:has(ul)").bind('mouseleave',function(){
           //$('div.frn_topnavi_subnav').hide();
           $("[class^='frn_topnavi_subnav']:not([class*='flyout_by_click'])").hide();
           $("#frnKopfLeiste li[class^='topnav']:not([class*='topnavclick'])").removeClass('aktivClick');
    });
 });
/* neu */
$("[class^='topnavclick_']").mouseover(function(){
  $("[class^='frn_topnavi_subnav']:not([class*='flyout_by_click'])").hide();
  $("#frnKopfLeiste li[class^='topnav']:not([class*='topnavclick'])").removeClass('aktivClick');
 });
$("[class^='topnavclick_']").click(function(){
    classValue = $(this).attr('class').replace(/ aktivClick/i, '');
    $("div[class*='"+classValue+"']").toggle();
    $(this).toggleClass('aktivClick');
    $("[class^='frn_topnavi_subnav']:not([class*='flyout_by_click'])").hide();
    $("#frnKopfLeiste li[class*='active']").toggleClass('active_hide').toggleClass('active');
    showedTopnavclick = (showedTopnavclick) ? false : true;
    return false;
 });
 $("[class^='frn_closing']").click(function(){
    showedTopnavclick = false;
    $(this).parent().hide();
    $("#frnKopfLeiste li.active_hide").removeClass('active_hide').addClass('active');
    $("#frnKopfLeiste li").removeClass('aktivClick');
 });
// focus Suchschlitz
try {
 if ( (e = document.getElementById("suchfeld")) != null  )e.focus();
}
catch(err) { }
   
  $('#suchfeld').keydown(function() {
     if(firstKeyDown != true){
      $('#suchfeld').addClass('searchBg');
       firstKeyDown = true;
     }
  });
}
function initNaviHorizontal(){
// ChannelNavi
 var ie = (document.all) ? true : false;
 var posSubNavItem = $('li#current').offset();
 var posSubNavParent = $('div.frn_nav_h ul').offset();
 var posSubNavLastItem = $('div.frn_nav_h ul > li:last').offset();
 var posRahmen = $('#frnRahmen').offset();
 var posDiff = 0;
 if(posSubNavLastItem && posSubNavParent) {
  posDiff = posSubNavLastItem.top-posSubNavParent.top;
 }
// Ausnahme für Finanzen
$("li.nav_h_1_275950").before("<li><div class='frn_navFiller'></div></li>");
 if( posDiff > 0 ) {
  if(ie) {
        $('.frn_nav_h #current a').css("background-position", "1px 0px");
        $('.frn_nav_h li#current').css("margin-top", "-1px");
  }else {
        $('.frn_nav_h li#current a').css("background-position", "1px 1px");
        //$('.frn_nav_h li#current a, .frn_nav_h li#current').css("margin-top", "-1px");
  }
  $('.frn_nav_h li#current').css("background-position", "1px 0px");
  $('.frn_nav_h li#current').css("border-right", "0px");
  $('.frn_nav_h li#current').css("margin-right", "0px");
 }
 $("div.frn_nav_h ul li").mouseover(function(){
   $("ul[class^='frn_subnav']:not([class*='current'])").hide();
 });
 $("div.frn_nav_h ul li, ul.frn_subnav li").mouseover(function(){
  $("ul[class^='frn_subnav']:not([class*='current']):not([class*='"+$(this).parent().attr('class')+"'])").hide();
  var classValue = $(this).attr('class').replace(/ active/i, '');
  $(this).parent().find('li.active').removeClass('active');
  $(this).addClass('active');
  if (classValue != '') {
     var posE = $(this).offset();
     var ie = (document.all) ? true : false;
     var posDiff = posE.top-posSubNavParent.top;
     var posCorSub = 0;
     if($(this).attr('id') == 'current')posCorSub=1;
 // Abfrage für IE7 Wird nun doch  gebraucht....
     var bv = jQuery.browser.version ;
     if(ie && bv < 7) {
        $("ul[class^='frn_subnav "+classValue+"']:not([class*='current'])").css({'left' : posE.left-2-$('div.frn_nav_h').width()+posCorSub+12, 'top' : 24+posDiff, 'width' : $(this).width()}).find("li").css({'width' : $(this).width()});
     }else if (ie && bv >= 7.0) {
        $("ul[class^='frn_subnav "+classValue+"']:not([class*='current'])").css({'left' : posE.left-2+posCorSub, 'top' : 24+posDiff, 'min-width' : $(this).width()+2});
     }else {
        $("ul[class^='frn_subnav "+classValue+"']:not([class*='current'])").css({'left' : posE.left-2+posCorSub, 'top' : 24+posDiff, 'min-width' : $(this).width()+2});
     }
    $('ul.frn_subnav.'+classValue).show(); //  fadeIn(250)
  }
 });
 $('ul.frn_subnav').mouseout(function(){
    var parentElement = $(this).parent().get(0).tagName;
    var classValue = $(this).parent().attr('class');
    $('ul.frn_subnav li').mouseover(function(){
      $('ul.'+classValue).show(300);
    });
    $("ul[class^='frn_subnav']:not([class*='current'])").bind('mouseleave',function(){
      $("ul[class^='frn_subnav']:not([class*='current'])").hide();
      //$(this).removeClass('active');
      $('div.frn_mainNav_h li.active').removeClass('active');
    });
 });
    $('div.frn_mainNav_h').mouseout(function(){
    $("div.frn_mainNav_h:has:not(ul)").bind('mouseleave',function(){
         $("ul[class^='frn_subnav']:not([class*='current'])").hide();
         $('div.frn_mainNav_h li.active').removeClass('active');
    });
 });

}

/*
function addNet(url,titel) {
 if((typeof window.sidebar=="object") && (typeof window.sidebar.addPanel=="function")) {
  window.sidebar.addPanel(titel,url,"");
 } else {
  alert("Sie nutzen eine veraltete Browserversion!\nLesezeichen hinzufügen ist leider nicht möglich!");
 }
}
function lesezeichen() {
 var url=window.location.href,t=document.title,ap=navigator.appName;
 if(ap=="Microsoft Internet Explorer") {
  window.external.AddFavorite(url,t);
 } else {
  if(ap=="Netscape") {
   addNet(url,t);
  } else {
   alert("Mit diesem Browser kann das Lesezeichen leider nicht automatisch gespeichert werden.\nBitte speichern Sie das Lesezeichnen manuell ab.\nURL:"+url);
  }
 }
};
*/
function addNet(url,titel){
if((typeof window.sidebar=="object") && (typeof window.sidebar.addPanel=="function")){window.sidebar.addPanel(titel,url,"");}else{alert("Sie nutzen eine veralterte Netscape Version!\nLesezeichen hinzufügen ist nicht möglich!");}}
function lesezeichen(){var url=window.location.href,t=document.title,ap=navigator.appName;
if(ap=="Microsoft Internet Explorer"){window.external.AddFavorite(url,t);}else{
if(ap=="Netscape"){addNet(url,t);}else{alert("Mit Ihren Browser ist kein Lesezeichen hinzufügen über Javascript möglich.\nBitte legen sie das Lesezeichnen manuell an.\nURL:"+url);};}};

var timeout         = 500;
var closetimer = 0;
var menuitem      = 0;
function frnmenu_open()
{frnmenu_canceltimer();
frnmenu_close();
menuitem = $(this).find('ul').eq(0).css('visibility', 'visible');
}
function frnmenu_close()
{if(menuitem) menuitem.css('visibility', 'hidden'); }
function frnmenu_timer()
{closetimer = window.setTimeout(frnmenu_close, timeout);}
function frnmenu_canceltimer()
{if(closetimer)
{window.clearTimeout(closetimer);
 closetimer = null;}}
 jQuery.fn.frnArtIconHover = function() {
   $("a").hover(function(){
 $(this).parents().siblings(".display").text($(this).attr("name"));
$("#frnGreen").css({overflow: "visible"});
                  // $("#frnContentGutter").css({position: "static"});
 },function(){
   $(".display").empty();
                    $("#frnGreen").css({overflow: "hidden"});
                   // $("#frnContentGutter").css({position: "relative"});
});
 $(".frn_wikiSearch li a").click(function(){
 var keyword = $(this).text();
 top.location.href = 'http://tools.freenet.de/mod_perl/linker/freenet_artikel_lexikon/lexikon.freenet.de/' + keyword;
});
$(".frn_googleSearch li a").click(function(){
 var keyword = $(this).text();
 top.location.href = 'http://tools.freenet.de/mod_perl/linker/freenet_artikel_google/suche.freenet.de/suche?query=' + keyword;
});
$(".frn_ifrArtVers").hide();
$(".weitersagen").click(function(){
 $(".frn_ifrArtVers").css({display:"block"}).attr({ src: "http://tools.freenet.de/mod_perl/linker/freenet_artikel_weitersagen/weitersagen.freenet.de/artfunc/popup_form.php" });
 $("#contentAd, #frnArtPic, #frnArtComments, .vergleichAuto, .frn_wrapArtFeatures, div > p,  #frnArtCopyright ").hide();
 $("h2:gt(0)").hide();
 $("h2 > div > p, .frn_backToArt, .frn_recommArt ").show();
});
if (navigator.appVersion.indexOf("MSIE")!=-1) {
 $(".frn_bookmark .first").html('Internet Explorer').addClass('ie').attr({ href: "javascript:lesezeichen()", name: "Lesezeichen speichern" });
 } else if (navigator.userAgent.indexOf("Firefox")!=-1) {
 $(".frn_bookmark .first").html('Firefox').addClass('ff').attr({ href: "javascript:lesezeichen()", name: "Lesezeichen speichern" });
 } else {
 $(".frn_bookmark .frn_addFav").remove();
 $(".frn_bookmark .alltagz").css( {borderTop: "0px solid #ccc"} );
 }
 };

// * Browser name: BrowserDetect.browser
// * Browser version: BrowserDetect.version
// * Browser check (z.B. Safari): BrowserDetect.isSafari()
// * OS name: BrowserDetect.OS
var BrowserDetect = {
init: function () {
 this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
 this.version = this.searchVersion(navigator.userAgent)
 || this.searchVersion(navigator.appVersion) 
 || "an unknown version";
 this.OS = this.searchString(this.dataOS) || "an unknown OS";
 this.CPU = this.searchString(this.dataCPU) || "an unknown CPU";
},
searchString: function (data) {
 var ident;
 for (var i=0;i<data.length;i++){
 var dataString = data[i].string;
 var dataProp = data[i].prop;
 eval("this.is"+data[i].identity+" = function(){return this.browser == \""+data[i].identity+"\";}");
 if(!ident)this.versionSearchString = data[i].versionSearch || data[i].identity;
 if (dataString) {
 if (dataString.indexOf(data[i].subString) != -1)
 if(!ident)ident = data[i].identity;
 }
 else if (dataProp)
 if(!ident)ident = data[i].identity;
 }
 return ident;
},
searchVersion: function (dataString) {
 if (this.versionSearchString == "Safari") this.versionSearchString = "Version";
 var index = dataString.indexOf(this.versionSearchString);
 if (index == -1) return;
 var versionstr = dataString.substring(index+this.versionSearchString.length+1);
 for (var i=0;i<versionstr.length;i++){
 if (isNaN(parseFloat(versionstr.substring(i, i+1))) && versionstr.substring(i, i+1) != ".") break;
 }
 return versionstr.substring(0, i);
},
dataBrowser: [
 { string: navigator.userAgent,
 subString: "OmniWeb",
 versionSearch: "OmniWeb/",
 identity: "OmniWeb"
 },
 {string: navigator.userAgent,
 subString: "Chrome",
 versionSearch: "Chrome",
 identity: "Chrome"
 },
 {string: navigator.vendor,
 subString: "Apple",
 identity: "Safari"
 },
 {prop: window.opera,
 identity: "Opera"
 },
 {string: navigator.vendor,
 subString: "iCab",
 identity: "iCab"
 },
 {string: navigator.vendor,
 subString: "KDE",
 identity: "Konqueror"
 },
 {string: navigator.userAgent,
 subString: "Firefox",
 identity: "Firefox"
 },
 {string: navigator.vendor,
 subString: "Camino",
 identity: "Camino"
 },
 { // for newer Netscapes (6+)
 string: navigator.userAgent,
 subString: "Netscape",
 identity: "Netscape"
 },

                  {string: navigator.userAgent,
                                    subString: "freenet",
                                    identity: "freenetIE",
                                    versionSearch: "MSIE"
                  },
	{string: navigator.userAgent,
		subString: "MSIE",
		identity: "Explorer",
		versionSearch: "MSIE"
	},
	{string: navigator.userAgent,
		subString: "Gecko",
		identity: "Mozilla",
		versionSearch: "rv"
	},
	{ 	// for older Netscapes (4-)	
		string: navigator.userAgent,
		subString: "Mozilla",
		identity: "Netscape",
		versionSearch: "Mozilla"
	}
],
dataOS : [
	{string: navigator.platform,
		subString: "Win",
		identity: "Windows"
	},	
	{string: navigator.platform,
		subString: "Mac",
		identity: "Mac"
	},
	{string: navigator.platform,
		subString: "Linux",
		identity: "Linux"
	}
],
dataCPU : [
		{string: navigator.userAgent,
		subString: "Windows NT 5.1",
		identity: "XP"
		},	
		{string: navigator.userAgent,
		subString: "Windows NT 6.0",
		identity: "Vista"
		}
	] 
};
BrowserDetect.init();



/* Fensterausstattung */ 
var frn_wdl_r = ',resizable=yes';
var frn_wdl_s = ',scrollbars=yes';
var frn_wdl_rs = frn_wdl_r+frn_wdl_s;
var frn_wdl_tsr = ',toolbar=yes'+frn_wdl_s+frn_wdl_r;
var frn_wdl_full = ',left=0,top=0,status=yes,menubar=yes,location=yes'+frn_wdl_tsr;
/* definierte Fenster */
var frn_wd_max = 'width='+screen.availWidth+',height='+screen.availHeight+frn_wdl_full;
var frn_audioplayer = 'width=600,height=250';
var frn_audioplayer_big = 'width=650,height=500';
var frn_hilfe = 'width=800,height=600'+frn_wdl_tsr;
var frn_bildershow = 'width=632,height=550'+frn_wdl_rs;
var frn_popupklein = 'width=490,height=530'+frn_wdl_rs;
var frn_popupgross = 'width=800,height=700'+frn_wdl_rs;
var frn_realplayer = 'width=650,height=500'+frn_wdl_rs;
var frn_chart_win = 'width=780,height=570'+frn_wdl_rs;
var frn_depotnews = 'width=500,height=400'+frn_wdl_rs;
var frn_depotinfo = 'width=660,height=500'+frn_wdl_rs;
var frn_flashplayer = 'width=720,height=440';
var freespeedplayer = 'width=600,height=460';
var frn_grusskarte = 'width=450,height=350'+frn_wdl_rs;
var frn_tarifinfo = 'width=415,height=280'+frn_wdl_rs;
var frn_norisbank = 'width=750,height=600'+frn_wdl_tsr;
var frn_sms = 'width=340,height=200';
var frn_mcenter_aktion ='width=500,height=500';
var frn_tvidetail ='width=500,height=580'+frn_wdl_rs;
var frn_newsticker = 'width=632,height=440'+frn_wdl_r;
var frn_pcCheck = 'width=790,height=556'+frn_wdl_s;
try {
var frn_best_help = 'width=430,height=200,resizable=yes,left='+(screen.width-430)/2+',top='+(screen.height-200)/2+'';
var frn_best_help_with_scrollbar = 'width=430,height=200,status=0,scrollbars=yes,resizable=1,left='+(screen.width-430)/2+',top='+(screen.height-200)/2+'';
var frn_best_info = 'width=430,height=200,status=0,scrollbars=0,resizable=1,left='+(screen.width-430)/2+',top='+50+'';
}
catch(e) {}
var locHref = window.location.href;
var PROTOCOL = locHref.substring(0,locHref.indexOf(':'));
var frn_JS_PROT = window.location.protocol;
var frn_JS_HOST = window.location.hostname;
var frn_JS_HASH = window.location.hash;
function frn_openWin(theURL,winName,features,w,h) {
  if ( w != "" && w != undefined ) {
    breite = RegExp("(width=[0-9]+)");
    if (  features.search("width=") >= 0 ) {
      features = features.replace(breite,"width="+w);
    } else {
      features = features + ",width=" + w + "";
    }
  }
  if ( h != "" && h != undefined ) {
    hoehe = RegExp("(height=[0-9]+)");
    if ( features.search("height=") >= 0 ) {
      features = features.replace(hoehe, "height=" + h);
    } else {
      features = features + ",height=" + h + "";
    }
  }
  Fenster = window.open(theURL,winName,features);
  // Fenster.focus();
}
function openWin(theURL,winName,features) {
    Fenster = window.open(theURL,winName,features);
    Fenster.focus();
 }
function frn_hilfe() {
    frn_openWin('http://www.freenet.de/hilfe/','_hilfe',frn_hilfe);
 }
 function hilfe() {
    frn_openWin('http://www.freenet.de/hilfe/','_hilfe',frn_hilfe);
 }
function frn_best_helpPopUp(webapp,src,w,h)
{
if(webapp && webapp.length > 0)
  { helpUrl = "/"+webapp+"/pos2/popups/hilfe/"+src+"/index.html"; }
else
  { helpUrl = "/pos2/popups/hilfe/"+src+"/index.html"; }
frn_openWin(helpUrl,'pos_hilfe',frn_best_help_with_scrollbar,w,h);
}
function frn_infoPopUp(url, width, height)
{
    frn_openWin(url,'_info',frn_best_info, width, height);
}
function frn_tuevPopUp()
{
    tuev = window.open('https://pos.freenet.de/src/tuev-zertifikat.gif', 'tuev',
    'width=510,height=770,status=0,scrollbars=0,resizable=1,left='+50+',top='+50+'');
}
function frnWeitersagen() {
  frn_openWin('','popwsagen',frn_bildershow,632,660);
  //document.weitersagen.submit();
}
//flyout
function frn_showThemen(){
document.getElementById('frnThemenFlyout').style.display = "inline";
//hide selects - IE6
for(i=0; i<document.getElementsByTagName('select').length; i++){
hiddenElem = document.getElementsByTagName('select')[i];
hiddenElem.style.visibility="hidden";
}
if (document.getElementById("frnMoviePlayer")) {
  document.getElementById("frnMoviePlayer").style.visibility = "hidden";
  }
}
function frn_hideThemen(){
  document.getElementById('frnThemenFlyout').style.display = "none";
  for(i=0; i<document.getElementsByTagName('select').length; i++){
hiddenElem = document.getElementsByTagName('select')[i];
hiddenElem.style.visibility="visible";
  }
  if (document.getElementById("frnMoviePlayer")) {
  document.getElementById("frnMoviePlayer").style.visibility = "visible";
  }
}
function SearchChange(art){
  document.getElementById('web').style.color = '#333333';
  document.getElementById('web').style.fontWeight = 'bold';
  document.getElementById('shopping').style.fontWeight = 'normal';
  document.getElementById('fn').style.fontWeight = 'normal';
  document.getElementById('wikipedia').style.fontWeight = 'normal';
  /* document.getElementById('bilder').style.color = '#334690'; */
  document.getElementById('fn').style.color = '#333333';
  // document.getElementById('branchen').style.color = '#333333';
  document.getElementById('shopping').style.color = '#333333';
  document.getElementById('frnGoogleHead2').style.display = 'none';
  if (art == 'web'){
    document.getElementById('web').style.color = '#333333';
    document.getElementById('web').style.fontWeight = 'bold';
    document.getElementById('fn').style.fontWeight = 'normal';
    document.getElementById('shopping').style.fontWeight = 'normal';
    document.getElementById('wikipedia').style.fontWeight = 'normal';
    document.getElementById('searchButton').className = 'websuche';
    document.getElementById('frn_searchType').value = art;
    document.getElementById('frn_searchTarget').action =
'http://tools.freenet.de/mod_perl/linker/freenet_startseite_suche_b_web/suche.freenet.de/suche';
    document.getElementById('frn_searchTarget').method = 'get';
    // document.getElementById('frnSearchHeadBranch').style.display = 'none';
    document.getElementById('frnSearchHeadNorm').style.display = 'block';
    document.getElementById('suchfeld').name = 'query';
    document.getElementById('frnCountry').value = '';
    document.getElementById('frnFref').value = '';
    document.getElementById('frnGoogleHead2').style.display = 'block';
  }
  if (art == 'freenet'){
  
    document.getElementById('fn').style.color = '#333333';
    document.getElementById('fn').style.fontWeight = 'bold';
    document.getElementById('web').style.fontWeight = 'normal';
    document.getElementById('shopping').style.fontWeight = 'normal';
    document.getElementById('wikipedia').style.fontWeight = 'normal';
    document.getElementById('searchButton').className = 'freenetsuche';
    document.getElementById('frn_searchType').value = art;
    document.getElementById('frn_searchTarget').action = 'http://suche.freenet.de/suche/index.html';
    document.getElementById('frn_searchTarget').method = 'post';
    document.getElementById('frn_searchTarget').name = 'search';
    // document.getElementById('frnSearchHeadBranch').style.display = 'none';
    document.getElementById('frnSearchHeadNorm').style.display = 'block';
    document.getElementById('frnCountry').value = 'FN';
    document.getElementById('frnFref').value = 'http://suche.freenet.de/suche';
    document.getElementById('suchfeld').name = 'query';
    document.getElementById('frnGoogleHead2').style.display = 'none';
  }
  if (art == 'goyellow'){
    document.getElementById('branchen').style.color = '#808080';
    document.getElementById('frn_searchType').value = art;
    document.getElementById('frn_searchTarget').action =
'http://tools.freenet.de/mod_perl/linker/freenet_startseite_suche_b_branche/suche.freenet.de/suche';
    document.getElementById('frnSearchHeadNorm').style.display = 'none';
    // document.getElementById('frnSearchHeadBranch').style.display = 'block';
  }
  if (art == 'shopping'){
    document.getElementById('shopping').style.color = '#333333';
    document.getElementById('shopping').style.fontWeight = 'bold';
    document.getElementById('web').style.fontWeight = 'normal';
    document.getElementById('fn').style.fontWeight = 'normal';
    document.getElementById('wikipedia').style.fontWeight = 'normal';
    document.getElementById('searchButton').className = 'shoppingsuche';
    document.getElementById('frn_searchType').value = art;
    document.getElementById('suchfeld').name = 'searchText';
    document.getElementById('frn_searchTarget').action =
'http://tools.freenet.de/mod_perl/linker/freenet_startseite_suche_b_shopping/shopping.freenet.de/search.do';
    // document.getElementById('frnSearchHeadBranch').style.display = 'none';
    document.getElementById('frnSearchHeadNorm').style.display = 'block';
  }
  if (art == 'wikipedia'){
    document.getElementById('wikipedia').style.color = '#333333';
    document.getElementById('wikipedia').style.fontWeight = 'bold';
    document.getElementById('web').style.fontWeight = 'normal';
    document.getElementById('fn').style.fontWeight = 'normal';
    document.getElementById('searchButton').className = 'wikisuche';
    document.getElementById('frn_searchType').value = art;
    document.getElementById('suchfeld').name = 'search';
    document.getElementById('frn_searchTarget').action =
'http://lexikon.freenet.de/Wikipedia:Hauptseite?';
    // document.getElementById('frnSearchHeadBranch').style.display = 'none';
    document.getElementById('frnSearchHeadNorm').style.display = 'block';
  }
}

function utf8_encode ( string ) {
    string = (string+'').replace(/\r\n/g, "\n").replace(/\r/g, "\n");
    var utftext = "";
    var start, end;
    var stringl = 0;
    start = end = 0;
    stringl = string.length;
    for (var n = 0; n < stringl; n++) {
        var c1 = string.charCodeAt(n);
        var enc = null;
        if (c1 < 128) {
            end++;
        } else if((c1 > 127) && (c1 < 2048)) {
            enc = String.fromCharCode((c1 >> 6) | 192) + String.fromCharCode((c1 & 63) | 128);
        } else {
            enc = String.fromCharCode((c1 >> 12) | 224) + String.fromCharCode(((c1 >> 6) & 63) | 128) + String.fromCharCode((c1 & 63) | 128);
        }
        if (enc != null) {
            if (end > start) {
                utftext += string.substring(start, end);
            }
            utftext += enc;
            start = end = n+1;
        }
    }
    if (end > start) {
        utftext += string.substring(start, string.length);
    }
    return utftext;
}
function utf8_decode ( str_data ) {
    var tmp_arr = [], i = ac = c1 = c2 = c3 = 0;
    str_data += '';
    while ( i < str_data.length ) {
        c1 = str_data.charCodeAt(i);
        if (c1 < 128) {
            tmp_arr[ac++] = String.fromCharCode(c1);
            i++;
        } else if ((c1 > 191) && (c1 < 224)) {
            c2 = str_data.charCodeAt(i+1);
            tmp_arr[ac++] = String.fromCharCode(((c1 & 31) << 6) | (c2 & 63));
            i += 2;
        } else {
            c2 = str_data.charCodeAt(i+1);
            c3 = str_data.charCodeAt(i+2);
            tmp_arr[ac++] = String.fromCharCode(((c1 & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
            i += 3;
        }
    }
    return tmp_arr.join('');
}
function setIFrameHeight (idIFrame, idIFrameContentElement){
 $('#'+idIFrame).css('height',$('#'+idIFrame).contents().find('#'+idIFrameContentElement).height()+10);
}
function submitChannelsearch(searchform){
 obj = searchform.query;
 if(obj.value==obj.defaultValue)obj.value=obj.value.replace(/z.B. /i, '');
}
/* bo preselect downloadlinks - landingpages digitale welt  */
jQuery.fn.landingpage = function() {
if ( BrowserDetect.browser == 'Firefox'  && BrowserDetect.CPU == 'XP' ) {
var typeOfBrowser = 'http://www.freenet.de/freenetsoftware/browser/download_ie/index.html';
 var typeOfBrowser2 = 'http://download.freenet.de/internet/browser/download-Mozilla-Firefox-3.5-deutsch--9296.xhtml';
} else if ( BrowserDetect.browser == 'Explorer'  && BrowserDetect.CPU == 'XP' ) {
var typeOfBrowser = 'http://www.freenet.de/freenetsoftware/browser/download_ie/index.html';
} else if ( BrowserDetect.browser == 'Firefox'  && BrowserDetect.CPU == 'Vista' ) {
var typeOfBrowser = 'http://www.freenet.de/freenetsoftware/browser/download_ie_vista/index.html';
 var typeOfBrowser2 = 'http://download.freenet.de/internet/browser/download-Mozilla-Firefox-3.5-deutsch--9296.xhtml';
} else if ( BrowserDetect.browser == 'Explorer'  && BrowserDetect.CPU == 'Vista' ) {
var typeOfBrowser = 'http://www.freenet.de/freenetsoftware/browser/download_ie_vista/index.html';
} else {
var typeOfBrowser = 'foo';
}
$('.ie').attr({href: typeOfBrowser});
 $('.ff').attr({href: typeOfBrowser2});
};
/* eo preselect downloadlinks - landingpages digitale welt  */
try {
var frn_best_help = 'width=430,height=200,resizable=yes,left='+(screen.width-430)/2+',top='+(screen.height-200)/2+'';
var frn_best_help_with_scrollbar = 'width=430,height=200,status=0,scrollbars=yes,resizable=1,left='+(screen.width-430)/2+',top='+(screen.height-200)/2+'';
var frn_best_info = 'width=430,height=200,status=0,scrollbars=0,resizable=1,left='+(screen.width-430)/2+',top='+50+'';
}
catch(e) {}
var locHref = window.location.href;
var PROTOCOL = locHref.substring(0,locHref.indexOf(':'));
var frn_JS_PROT = window.location.protocol;
var frn_JS_HOST = window.location.hostname;
var frn_JS_HASH = window.location.hash;
function frn_openWin(theURL,winName,features,w,h) {
  if ( w != "" && w != undefined ) {
    breite = RegExp("(width=[0-9]+)");
    if (  features.search("width=") >= 0 ) {
      features = features.replace(breite,"width="+w);
    } else {
      features = features + ",width=" + w + "";
    }
  }
  if ( h != "" && h != undefined ) {
    hoehe = RegExp("(height=[0-9]+)");
    if ( features.search("height=") >= 0 ) {
      features = features.replace(hoehe, "height=" + h);
    } else {
      features = features + ",height=" + h + "";
    }
  }
  Fenster = window.open(theURL,winName,features);
  // Fenster.focus();
}
function openWin(theURL,winName,features) {
    Fenster = window.open(theURL,winName,features);
    Fenster.focus();
 }
function frn_hilfe() {
    frn_openWin('http://www.freenet.de/hilfe/','_hilfe',frn_hilfe);
 }
 function hilfe() {
    frn_openWin('http://www.freenet.de/hilfe/','_hilfe',frn_hilfe);
 }
function frn_best_helpPopUp(webapp,src,w,h)
{
if(webapp && webapp.length > 0)
  { helpUrl = "/"+webapp+"/pos2/popups/hilfe/"+src+"/index.html"; }
else
  { helpUrl = "/pos2/popups/hilfe/"+src+"/index.html"; }
frn_openWin(helpUrl,'pos_hilfe',frn_best_help_with_scrollbar,w,h);
}
function frn_infoPopUp(url, width, height)
{
    frn_openWin(url,'_info',frn_best_info, width, height);
}
function frn_tuevPopUp()
{
    tuev = window.open('https://pos.freenet.de/src/tuev-zertifikat.gif', 'tuev',
    'width=510,height=770,status=0,scrollbars=0,resizable=1,left='+50+',top='+50+'');
}
function frnWeitersagen() {
  frn_openWin('','popwsagen',frn_bildershow,632,660);
  //document.weitersagen.submit();
}
//flyout
function frn_showThemen(){
document.getElementById('frnThemenFlyout').style.display = "inline";
//hide selects - IE6
for(i=0; i<document.getElementsByTagName('select').length; i++){
hiddenElem = document.getElementsByTagName('select')[i];
hiddenElem.style.visibility="hidden";
}
if (document.getElementById("frnMoviePlayer")) {
  document.getElementById("frnMoviePlayer").style.visibility = "hidden";
  }
}
function frn_hideThemen(){
  document.getElementById('frnThemenFlyout').style.display = "none";
  for(i=0; i<document.getElementsByTagName('select').length; i++){
hiddenElem = document.getElementsByTagName('select')[i];
hiddenElem.style.visibility="visible";
  }
  if (document.getElementById("frnMoviePlayer")) {
  document.getElementById("frnMoviePlayer").style.visibility = "visible";
  }
}

var newLook = 'new';
function SearchChange(art){

  document.getElementById('web').style.fontWeight = 'normal';
  document.getElementById('fn').style.fontWeight = 'normal';
//  document.getElementById('lokales').style.fontWeight = 'normal';
  document.getElementById('shopping').style.fontWeight = 'normal';
  document.getElementById('wikipedia').style.fontWeight = 'normal';
  if (newLook == 'old'){
   document.getElementById('web').style.color = '#333333';
   document.getElementById('fn').style.color = '#333333';
 //  document.getElementById('lokales').style.color = '#333333';
   document.getElementById('shopping').style.color = '#333333';
   document.getElementById('wikipedia').style.color = '#333333';
   document.getElementById('frnGoogleHead2').style.display = 'block';

if (typeof(document.getElementById("foot_web") ) != undefined) { 
	
}else{
document.getElementById('frnGoogleFoot').style.display = 'block'; 
}

  } else{
   document.getElementById('web').style.color = '#334690';
   document.getElementById('fn').style.color = '#334690';
   document.getElementById('lokales').style.color = '#334690';
   document.getElementById('shopping').style.color = '#334690';
   document.getElementById('wikipedia').style.color = '#334690';
   document.getElementById('frnGoogleHead2').style.display = 'none';
if (typeof(document.getElementById("foot_web") ) != undefined) {
	
 }else {
document.getElementById('frnGoogleFoot').style.display = 'none';
}
  }




  if (art == 'web'){
         if (newLook == 'old'){
          document.getElementById('web').style.color = '#333333';
          document.getElementById('frnGoogleHead2').style.display = 'block';
       } else{
          document.getElementById('web').style.color = '#333744';
          document.getElementById('frnGoogleHead2').style.display = 'none';
       }
    document.getElementById('web').style.fontWeight = 'bold';
    document.getElementById('searchButton').className = 'websuche';
    document.getElementById('frn_searchType').value = art;
    document.getElementById('frn_searchTarget').action =
'http://tools.freenet.de/mod_perl/linker/freenet_startseite_suche_b_web/suche.freenet.de/suche';
    document.getElementById('frn_searchTarget').method = 'get';
    document.getElementById('suchfeld').name = 'query';
    document.getElementById('frnCountry').value = '';
    document.getElementById('frnFref').value = '';

  }
  if (art == 'freenet'){
          if (newLook == 'old'){
           document.getElementById('fn').style.color = '#333333';
       } else{
           document.getElementById('fn').style.color = '#333744';
       }
    document.getElementById('fn').style.fontWeight = 'bold';
    document.getElementById('searchButton').className = 'freenetsuche';
    document.getElementById('frn_searchType').value = art;
    document.getElementById('frn_searchTarget').action = 'http://suche.freenet.de/suche/';
    document.getElementById('frn_searchTarget').method = 'post';
    document.getElementById('frn_searchTarget').name = 'search';
    document.getElementById('frnCountry').value = 'FN';
    document.getElementById('frnFref').value = 'http://suche.freenet.de/suche';
    document.getElementById('suchfeld').name = 'query';
    document.getElementById('frnGoogleHead2').style.display = 'none';

  }
  if (art == 'goyellow'){
    document.getElementById('branchen').style.color = '#333333';
    document.getElementById('frn_searchType').value = art;
    document.getElementById('frn_searchTarget').action =
'http://tools.freenet.de/mod_perl/linker/freenet_startseite_suche_b_branche/suche.freenet.de/suche';
    document.getElementById('frnSearchHeadNorm').style.display = 'none';
  }

  if (art == 'lokales'){
     document.getElementById('lokales').style.color = '#333744';
     document.getElementById('lokales').style.fontWeight = 'bold';
  }

  if (art == 'shopping'){
         if (newLook == 'old'){
               document.getElementById('shopping').style.color = '#333333';
         } else{
               document.getElementById('shopping').style.color = '#333744';
         }
    document.getElementById('shopping').style.fontWeight = 'bold';
    document.getElementById('searchButton').className = 'shoppingsuche';
    document.getElementById('frn_searchType').value = art;
    document.getElementById('suchfeld').name = 'searchText';
    document.getElementById('frn_searchTarget').action =
'http://tools.freenet.de/mod_perl/linker/freenet_startseite_suche_b_shopping/shopping.freenet.de/search.do';
    document.getElementById('frnGoogleHead2').style.display = 'none';
  }

  if (art == 'wikipedia'){
           if (newLook == 'old'){
               document.getElementById('wikipedia').style.color = '#333333';
           } else{
           }
     document.getElementById('wikipedia').style.color = '#333744';
     document.getElementById('wikipedia').style.fontWeight = 'bold';
     document.getElementById('searchButton').className = 'wikisuche';
     document.getElementById('frn_searchType').value = art;
     document.getElementById('suchfeld').name = 'search';
     document.getElementById('frn_searchTarget').action =
'http://lexikon.freenet.de/Wikipedia:Hauptseite?';
     document.getElementById('frnGoogleHead2').style.display = 'none';

  }

}
//suche fuss
function SearchFootChange(art){

if (typeof(document.getElementById("foot_web") ) != undefined) {  } 

   document.getElementById('foot_web').style.color = '#334690';
   document.getElementById('foot_freenet').style.color = '#334690';
   document.getElementById('foot_lokales').style.color = '#334690';
   document.getElementById('foot_shopping').style.color = '#334690';
   document.getElementById('foot_wikipedia').style.color = '#334690';
   document.getElementById('frnGoogleFoot').style.display = 'none';
if (newLook == 'old'){
 document.getElementById('foot_web').style.fontWeight = 'bold';
 document.getElementById('foot_freenet').style.fontWeight = 'bold';
 document.getElementById('foot_lokales').style.fontWeight = 'bold';
 document.getElementById('foot_lokales').style.fontWeight = 'bold';
 document.getElementById('foot_shopping').style.fontWeight = 'bold';
 document.getElementById('foot_wikipedia').style.fontWeight = 'bold';
 } else{
 document.getElementById('foot_web').style.fontWeight = 'normal';
 document.getElementById('foot_freenet').style.fontWeight = 'normal';
 document.getElementById('foot_lokales').style.fontWeight = 'normal';
 document.getElementById('foot_lokales').style.fontWeight = 'normal';
 document.getElementById('foot_shopping').style.fontWeight = 'normal';
 document.getElementById('foot_wikipedia').style.fontWeight = 'normal';
 }

 if (art == 'web'){
              if (newLook == 'old'){
                   document.getElementById('foot_web').style.color = '#808080';
                   document.getElementById('frnGoogleFoot').style.display = 'block'
              } else{
                  document.getElementById('foot_web').style.color = '#333744';
                  document.getElementById('frnGoogleFoot').style.display = 'none';
              }
        document.getElementById('foot_web').style.fontWeight = 'bold';
        document.getElementById('frn_searchTypeFoot').value = art;
        document.getElementById('frn_searchTargetFoot').action =
'http://tools.freenet.de/mod_perl/linker/freenet_footer_suche_web/suche.freenet.de/suche';
        document.getElementById('foot_suchfeld').name = 'query';
        document.getElementById('frnCountryFoot').value = '';
        document.getElementById('frnFrefFoot').value = '';
  }


  if (art == 'freenet'){
      if (newLook == 'old'){
          document.getElementById('foot_freenet').style.color = '#808080';
      } else{
          document.getElementById('foot_freenet').style.color = '#333744';
      }
       document.getElementById('foot_freenet').style.fontWeight = 'bold';
       document.getElementById('frn_searchTypeFoot').value = art;
       document.getElementById('frn_searchTargetFoot').action = 'http://suche.freenet.de/suche/index.html';
       document.getElementById('frn_searchTargetFoot').method = 'post';
       document.getElementById('frn_searchTargetFoot').name = 'search';
       document.getElementById('frnCountryFoot').value = 'FN';
       document.getElementById('frnFrefFoot').value = 'http://suche.freenet.de/suche';
       document.getElementById('foot_suchfeld').name = 'query';
       document.getElementById('frnGoogleFoot').style.display = 'none';
       document.getElementById('searchButtonFoot').className = 'freenet';

  }

  if (art == 'lokales'){
     document.getElementById('foot_lokales').style.color = '#333744';
     document.getElementById('foot_lokales').style.fontWeight = 'bold';
  }

  if (art == 'shopping'){
    if (newLook == 'old'){
          document.getElementById('foot_shopping').style.color = '#808080';
    } else{
          document.getElementById('foot_shopping').style.color = '#333744';
    }
      document.getElementById('foot_shopping').style.fontWeight = 'bold';
      document.getElementById('frn_searchTypeFoot').value = art;
      document.getElementById('foot_suchfeld').name = 'searchText';
      document.getElementById('frn_searchTargetFoot').action =
'http://tools.freenet.de/mod_perl/linker/freenet_footer_suche_shopping/shopping.freenet.de/search.do';
      document.getElementById('searchButtonFoot').className = 'shopping';
      document.getElementById('searchButtonFoot').className = 'shopping';

  }


  if (art == 'wikipedia'){
            if (newLook == 'old'){
                 document.getElementById('foot_wikipedia').style.color = '#808080';
            } else{
                 document.getElementById('foot_wikipedia').style.color = '#333744';
            }
      document.getElementById('foot_wikipedia').style.fontWeight = 'bold';
      document.getElementById('searchButtonFoot').className = 'wikipedia';
      document.getElementById('frn_searchType').value = art;
      document.getElementById('suchfeld').name = 'search';
      document.getElementById('frn_searchTargetFoot').action =
'http://lexikon.freenet.de/Wikipedia:Hauptseite?';
  }


}

$(document).ready( function() {

 $(".frn_searchFootNavi a").click(function(){
    $(".frn_searchFootNavi a").removeClass("frn_active");
    $(this).addClass("frn_active");
  
    var searchAct = $(this).attr('id'); 

    if (searchAct == 'foot_web') {
     $("#frnGoogleFoot").show();
     $('#frn_searchTypeFoot').val('art');

     $('#frn_searchTargetFoot').attr('action','http://tools.freenet.de/mod_perl/linker/freenet_footer_suche_web/suche.freenet.de/suche');
     $('#frn_searchTargetFoot').attr('method','get');
     $('#frnSearchFootNorm').show();
     $('#foot_suchfeld').attr('name','query');
     $('#frnCountryFoot').val('');
     $('#frnFrefFoot').val('');
   }

    if (searchAct == 'foot_fn') {
     $('#frn_searchTypeFoot').val('art');

     $('#frn_searchTargetFoot').attr('action','http://suche.freenet.de/suche/index.html');
     $('#frn_searchTargetFoot').attr('method','post');
     $('#frnSearchFootNorm').show();
     $('#foot_suchfeld').attr('name','query');
     $('#frnCountryFoot').val('FN');
     $('#frnFrefFoot').val('http://suche.freenet.de/suche');
     $("#frnGoogleFoot").show();
   }

    if (searchAct == 'foot_shopping') {
     $('#frn_searchTypeFoot').val('art');

     $('#frn_searchTargetFoot').attr('action','http://tools.freenet.de/mod_perl/linker/freenet_footer_suche_shopping/shopping.freenet.de/search.do');
     $('#frn_searchTargetFoot').attr('method','get');
     $('#frnSearchFootNorm').show();
     $('#foot_suchfeld').attr('name','searchText');

     $("#frnGoogleFoot").hide();
   }

  });
// bo Suchschlitz
 $('.frn_searchHeadNavi a').click(function () {
   $('.frn_searchHeadNavi a').removeClass('searchChoise');
   $('#suchfeld').attr('class','searchBg').focus();
   $(this).attr('class','searchChoise');
  });
 $('.frn_searchFootNavi a').click(function () {
   $('.frn_searchFootNavi a').removeClass('searchChoise');
   $(' #foot_suchfeld').attr('class','searchBg').focus();
   $(this).attr('class','searchChoise');
 });

 $('.frn_searchHeadNavi a#web,.frn_searchFootNavi a#foot_web').click(function () {
    if( $('#suchfeld').val() == ''){
        $('#suchfeld').removeClass('searchBg');
        firstKeyDown = false;
    }else {
        $('#suchfeld').attr('class','searchBg');
    }
    if( $('#foot_suchfeld').val() == ''){
        $('#foot_suchfeld').removeClass('searchBg');
        firstKeyDownFeet = false;
    }else{
        $('#foot_suchfeld').attr('class','searchBg');
    }
 });

  $('#suchfeld, #foot_suchfeld').click(function () {
    $(this).attr('class','searchBg');
  });
 $('#foot_suchfeld').keydown(function() { 
     if(firstKeyDownFeet != true){
      $('#foot_suchfeld').addClass('searchBg');
       firstKeyDownFeet = true;
      }
   });

// eo Suchschlitz

});


function utf8_encode ( string ) {
    string = (string+'').replace(/\r\n/g, "\n").replace(/\r/g, "\n");
    var utftext = "";
    var start, end;
    var stringl = 0;
    start = end = 0;
    stringl = string.length;
    for (var n = 0; n < stringl; n++) {
        var c1 = string.charCodeAt(n);
        var enc = null;
        if (c1 < 128) {
            end++;
        } else if((c1 > 127) && (c1 < 2048)) {
            enc = String.fromCharCode((c1 >> 6) | 192) + String.fromCharCode((c1 & 63) | 128);
        } else {
            enc = String.fromCharCode((c1 >> 12) | 224) + String.fromCharCode(((c1 >> 6) & 63) | 128) + String.fromCharCode((c1 & 63) | 128);
        }
        if (enc != null) {
            if (end > start) {
                utftext += string.substring(start, end);
            }
            utftext += enc;
            start = end = n+1;
        }
    }
    if (end > start) {
        utftext += string.substring(start, string.length);
    }
    return utftext;
}
function utf8_decode ( str_data ) {
    var tmp_arr = [], i = ac = c1 = c2 = c3 = 0;
    str_data += '';
    while ( i < str_data.length ) {
        c1 = str_data.charCodeAt(i);
        if (c1 < 128) {
            tmp_arr[ac++] = String.fromCharCode(c1);
            i++;
        } else if ((c1 > 191) && (c1 < 224)) {
            c2 = str_data.charCodeAt(i+1);
            tmp_arr[ac++] = String.fromCharCode(((c1 & 31) << 6) | (c2 & 63));
            i += 2;
        } else {
            c2 = str_data.charCodeAt(i+1);
            c3 = str_data.charCodeAt(i+2);
            tmp_arr[ac++] = String.fromCharCode(((c1 & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
            i += 3;
        }
    }
    return tmp_arr.join('');
}
function setIFrameHeight (idIFrame, idIFrameContentElement){
 $('#'+idIFrame).css('height',$('#'+idIFrame).contents().find('#'+idIFrameContentElement).height()+10);
}
function submitChannelsearch(searchform){
 obj = searchform.query;
 if(obj.value==obj.defaultValue)obj.value=obj.value.replace(/z.B. /i, '');
}
/* bo preselect downloadlinks - landingpages digitale welt  */
jQuery.fn.landingpage = function() {
if ( BrowserDetect.browser == 'Firefox'  && BrowserDetect.CPU == 'XP' ) {
var typeOfBrowser = 'http://www.freenet.de/freenetsoftware/browser/download_ie/index.html';
 var typeOfBrowser2 = 'http://download.freenet.de/internet/browser/download-Mozilla-Firefox-3.5-deutsch--9296.xhtml';
} else if ( BrowserDetect.browser == 'Explorer'  && BrowserDetect.CPU == 'XP' ) {
var typeOfBrowser = 'http://www.freenet.de/freenetsoftware/browser/download_ie/index.html';
} else if ( BrowserDetect.browser == 'Firefox'  && BrowserDetect.CPU == 'Vista' ) {
var typeOfBrowser = 'http://www.freenet.de/freenetsoftware/browser/download_ie_vista/index.html';
 var typeOfBrowser2 = 'http://download.freenet.de/internet/browser/download-Mozilla-Firefox-3.5-deutsch--9296.xhtml';
} else if ( BrowserDetect.browser == 'Explorer'  && BrowserDetect.CPU == 'Vista' ) {
var typeOfBrowser = 'http://www.freenet.de/freenetsoftware/browser/download_ie_vista/index.html';
} else {
//var typeOfBrowser = 'foo';
var typeOfBrowser = 'http://www.freenet.de/freenetsoftware/browser/download_ie/index.html';
}
$('.ie').attr({href: typeOfBrowser});
 $('.ff').attr({href: typeOfBrowser2});
};
/* eo preselect downloadlinks - landingpages digitale welt  */


// ContainerHintergrundRotation
function containerBgRotationInit(rota){
  $('.frn_cont_bg_rotation').attr('style', '').addClass('frn_bg_rota'+(1+Math.floor(Math.random()*(rota))));
}
// InlineVideoPlayer
inlineVideoPlayerUrl = "http://static.freenet.de/newdirections/tagesschau/mediaplayer.swf";

/*
 * Freenet Class
 * Eventcounter
*/
var frn_Ivw = {
/**
 * Sending the given (id) IVW pixel
 * @param {string} id IVW-Identifier, defined in this.ivwMap
 */
send: function(id) {
if (this.ivwMap[id]) {
 var timeStamp = Math.random()*100000;
 var type = this.ivwMap[id][2];
 if (!type) {
 type = 'CP';
 }
 var imgUrl = '/abakus.freenet.de/cgi-bin/ivw/'+type+decodeURI(this.ivwMap[id][0])+'?pt022ref='+escape(document.referrer)+'&rd='+timeStamp;
            var protocol = window.location.protocol;
            if (protocol == 'https:') { var secure = "//secure.freenet.de" } else { var secure = "/" };
            var imgUrl = protocol+secure+imgUrl;
 var ivwImg = new Image();
 ivwImg.src = imgUrl;
// AGOF PIXEL
 if (type == 'CP' || type == 'NP') {
     if (this.ivwMap[id][1]) { var frnAgof = this.ivwMap[id][1] } else { var frnAgof = "99999999" } ;    
 var imgUrl = protocol+'//freenet.ivwbox.de/cgi-bin/ivw/'+type+'/'+frnAgof+';nn?r='+escape(document.referrer) +'&d='+timeStamp;
 var agofImg = new Image();
 agofImg.src = imgUrl;
 }
 }
},
ivwMap: {'EventId' : ['/freenet/dummy_channel/index.html', '99999999', 'CP']
    },
addItem: function(id,frnChannel,frnAgof,type) {
    this.ivwMap[id] = new Array(frnChannel,frnAgof,type);
}
};

jQuery.fn.domain = function() {

var username = $("#frnHeadAnrede").text();
  username = username.toLowerCase();
  username = username.split(" ");
 
if (username[0] == "willkommen") {
  username = username[1]+username[2];
  $('#domainname_tmp').attr({ value: 'www.'+username+'.de'});
  $('.displayCount, #leftArrowDom, #rightArrowDom').css("display","none");
  //   $('.frn_fnDomainInput').css("margin","2px 2px 16px 9px;");
  $('.frn_fnDomainInput').addClass("frn_inputAdd");
  $('#button_search').addClass("frn_domainBtnAdd");

} else {

$.getJSON((($.url.attr('host')=='www.freenet.de') ? "" : "/freenet/servlet/external?url=")+ "http://www.freenet.de/panelMods/teaser_domain_data/index.txt",function(json){
var arr = new Array();
 timer = window.setInterval(rotate, 10000);
 stop_rotation = false;
$.each(json.result.items, function(i) {
 arr[i] = this.offer;
 });
 var ctr = 0;
 var ctrMAX = arr.length-1;
 $('#domainname_tmp').attr({ value: 'www.'+arr[ctr]+'.de'});
 $('#currDom').append(1);
 $('#sumDom').append(ctrMAX+1);
 function showDom() {
 stop_rotation = false;
 $('#domainname_tmp').attr({ value: 'www.'+arr[ctr]+'.de'});
 $('#currDom').html(ctr+1);
 };
 function prev() {
 if(ctr > 0){
  ctr = ctr-1;
 }else{
  ctr = 49;
 }
 showDom();
 };
 function next() {
 if(ctr < ctrMAX){
   ctr = ctr+1;
 }else{
   ctr = 0;
 }
 showDom();
 };
 function rotate() {
 next();
 };
 $('#domainname_tmp').focus(function() {
 window.clearInterval(timer);
 stop_rotation = true;
 $('#domainname_tmp').attr({ value: ''});
 });
$('#domainname').change(function() {
 window.clearInterval(timer);
 // $('#domainname').attr({ value: ''});
 });
 $('#domainname_tmp').blur(function() {
 //timer = window.setInterval(rotate, 10000);
 });
$('.wrapNavDom').hover(function() {
 window.clearInterval(timer);
 }, function() {
 if(!stop_rotation)timer = window.setInterval(rotate, 10000);
 });
$('#rightArrowDom').click(function(){
 next();
 });
 $('#leftArrowDom').click(function(){
 prev();
 });
});



}


};
jQuery.fn.single = function() {
        profilesUrls = new Array();
        profilesUrlPrefix = 'http://www.freenet.de/feed/start/singles';
        profilesUrls['default'] = '/singlesProfiles.txt';
        profilesUrls['male'] = '/singlesProfilesMale.txt';
        profilesUrls['female'] = '/singlesProfilesFemale.txt';


        if(typeof pidSingle=='undefined' || pidSingle == ''  ){
          var pid = '?pid=11518';
        }else {
          var pid = '?pid=11528';
        
        };
        if(typeof singlesGalerieProfilesSex!='undefined' && singlesGalerieProfilesSex != '' && profilesUrls[singlesGalerieProfilesSex]){
          var profilesUrl = profilesUrls[singlesGalerieProfilesSex];
        }else {
          var profilesUrl = profilesUrls['default'];
        };
singleID = new Array();
singleNick = new Array();
singleCity = new Array();
singleAge = new Array();
singleSex = new Array();
singleIsOn = new Array();
singleThumb = new Array();
singleSmall = new Array();
singleLarge = new Array();
singleHref = new Array();
leftID = new Array();
leftNick = new Array();
leftCity = new Array();
leftAge = new Array();
leftSex = new Array();
leftIsOn = new Array();
leftThumb = new Array();
leftSmall = new Array();
leftLarge = new Array();
leftHref = new Array();
middleID = new Array();
middleNick = new Array();
middleCity = new Array();
middleAge = new Array();
middleSex = new Array();
middleIsOn = new Array();
middleThumb = new Array();
middleSmall = new Array();
middleLarge = new Array();
middleHref = new Array();
rightID = new Array();
rightNick = new Array();
rightCity = new Array();
rightAge = new Array();
rightSex = new Array();
rightIsOn = new Array();
rightThumb = new Array();
rightSmall = new Array();
rightLarge = new Array();
rightHref = new Array();
// window.setTimeout(show, 500);
$.getJSON((($.url.attr('host')=='www.freenet.de') ? "" : "/freenet/servlet/external?url=")+profilesUrlPrefix+profilesUrl,function(json){
window.setTimeout(show, 500);
$.each(json, function(i) {
 singleID[i] = this.ProfileID;
 singleNick[i] = this.Nickname;
 singleCity[i] = this.City;
 singleAge[i] = this.Age;
 singleSex[i] = this.Sex;
 singleIsOn[i] = this.isOnline;
 singleThumb[i] = this.ThumbnailImage;
 singleSmall[i] = this.SmallImage;
 singleLarge[i] = this.LargeImage;
 singleHref[i] = this.href;
 });
 leftID = singleID.slice(0,30);
 leftNick = singleNick.slice(0,30);
 leftCity = singleCity.slice(0,30);
 leftAge = singleAge.slice(0,30);
 leftSex = singleSex.slice(0,30);
 leftIsOn = singleIsOn.slice(0,30);
 leftThumb = singleThumb.slice(0,30);
 leftSmall = singleSmall.slice(0,30);
 leftLarge = singleLarge.slice(0,30);
 leftHref = singleHref.slice(0,30);
middID = singleID.slice(1,30);
 middNick = singleNick.slice(1,30);
 middCity = singleCity.slice(1,30);
 middAge = singleAge.slice(1,30);
 middSex = singleSex.slice(1,30);
 middIsOn = singleIsOn.slice(1,30);
 middThumb = singleThumb.slice(1,30);
 middSmall = singleSmall.slice(1,30);
 middLarge = singleLarge.slice(1,30);
 middHref = singleHref.slice(1,30);
rightID = singleID.slice(2,30);
 rightNick = singleNick.slice(2,30);
 rightCity = singleCity.slice(2,30);
 rightAge = singleAge.slice(2,30);
 rightSex = singleSex.slice(2,30);
 rightIsOn = singleIsOn.slice(2,30);
 rightThumb = singleThumb.slice(2,30);
 rightSmall = singleSmall.slice(2,30);
 rightLarge = singleLarge.slice(2,30);
 rightHref = singleHref.slice(2,30);
var boIndex = 0;
var eoIndex = 15;
function show(){
 $('#singles1 > a').attr({ href: leftHref[boIndex]+pid,  title: leftNick[boIndex], target: '_blank' });
 $('#singles1 > a > img').attr({ src: leftThumb[boIndex],  alt: leftNick[boIndex] }).css({'border' : '1px solid #999'});
 $('#singles2 > a').attr({ href: middHref[boIndex]+pid,  title: middNick[boIndex], target: '_blank' });
 $('#singles2 > a > img').attr({ src: middThumb[boIndex],  alt: middNick[boIndex] }).css({'border' : '1px solid #999'});
 $('#singles3 > a').attr({ href: rightHref[boIndex]+pid,  title: rightNick[boIndex], target: '_blank' });
 $('#singles3 > a > img').attr({ src: rightThumb[boIndex],  alt: rightNick[boIndex] }).css({'border' : '1px solid #999'});
$('.firstImg, .secondImg, .thirdImg').hover(function () {
 $(this).css({'border' : '1px solid #314582'});
 }, function () {
 $(this).css({'border' : '1px solid #999'});
 });
 if (boIndex < 1){
 //$('#leftArrow').attr({ src: '/freenet/servlet/contentblob/47000/data/bildershowbuttons.gif',  disabled: 'disabled' });
 }else {
 //$('#leftArrow').attr({ src: '/freenet/servlet/contentblob/47000/data/bildershowbuttons.gif',  disabled: '' });
 }
 if (boIndex >= eoIndex){
 //$('#rightArrow').attr({ src: '/freenet/servlet/contentblob/47000/data/bildershowbuttons.gif',  disabled: 'disabled', cursor: '' });
 }else {
 //$('#rightArrow').attr({ src: '/freenet/servlet/contentblob/47000/data/bildershowbuttons.gif',  disabled: '' });
 }
}
function next(){
  if(boIndex < eoIndex)boIndex = boIndex+1;
  //(boIndex < eoIndex) ? boIndex++ : boIndex=0;
  show();
}
function prev(){
  if(boIndex > 0)boIndex = boIndex-1;
  //(boIndex > 0) ? boIndex=boIndex-1 : boIndex=eoIndex;
  show();
}
$('#rightArrow').click(function(){
 next();
});
$('#leftArrow').click(function(){
 prev();
});
});
};
$(document).ready(function(){
//$().domain();
//$().single();
});

/*
 * jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2009 M. Alsup
 * 2.72 (09-SEP-2009)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
 (function($){var ver="2.72";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(opts2.currSlide,opts2.nextSlide,opts2,!opts2.rev);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts2.rev);},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"stop":cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;if(arg2===true){options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,1);}return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.rev);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=0;opts.startingSlide=opts.randomMap[0];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z=first?i>=first?els.length-(i-first):first-i:els.length-i;$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth;}if(!h){h=e.offsetHeight;}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:$el.height();this.cycleW=(opts.fit&&opts.width)?opts.width:$el.width();if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}while((opts.timeout-opts.speed)<250){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){opts.nextSlide=opts.currSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){$(els).stop(true,true);opts.busy=false;}if(opts.busy){return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}if(manual||!p.cyclePause){var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};if(opts.nextSlide!=opts.currSlide){opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after);}else{$.fn.cycle.custom(curr,next,opts,after,manual&&opts.fastOnEvent);}}}opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{var roll=(opts.nextSlide+1)==els.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}if(opts.pager){$.fn.cycle.updateActivePagerLink(opts.pager,opts.currSlide);}}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(curr,next,opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide){$(pager).find("a").removeClass("activeSlide").filter("a:eq("+currSlide+")").addClass("activeSlide");};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn(curr,next,opts,fwd);while((t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}if($.isFunction(opts.prevNextClick)){opts.prevNextClick(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});$.fn.cycle.updateActivePagerLink(opts.pager,opts.startingSlide);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);}else{a='<a href="#">'+(i+1)+"</a>";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone);});$a=$(arr);}else{$a.appendTo($p);}}$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if($.isFunction(opts.pagerClick)){opts.pagerClick(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);return false;});if(opts.pagerEvent!="click"){$a.click(function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click",pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250};})(jQuery);

/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */
/**
 * Create a cookie with the given name and value and other optional parameters.
 *
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Set the value of a cookie.
 * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
 * @desc Create a cookie with all available options.
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Create a session cookie.
 * @example $.cookie('the_cookie', null);
 * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
 *       used when the cookie was set.
 *
 * @param String name The name of the cookie.
 * @param String value The value of the cookie.
 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
 *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
 *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
 *                             when the the browser exits.
 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
 *                        require a secure protocol (like HTTPS).
 * @type undefined
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */
/**
 * Get the value of a cookie with the given name.
 *
 * @example $.cookie('the_cookie');
 * @desc Get the value of a cookie.
 *
 * @param String name The name of the cookie.
 * @return The value of the cookie.
 * @type String
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        // CAUTION: Needed to parenthesize options.path and options.domain
        // in the following expressions, otherwise they evaluate to undefined
        // in the packed version for some reason...
        var path = options.path ? '; path=' + (options.path) : '';
        var domain = options.domain ? '; domain=' + (options.domain) : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};

var cachedBlocks = new Object();
var frnPanelIDs = new Array();
var backPath = '';
function getBlockData(url, containerId, cacheBlock, tabName, loadSub) {
myCachedBlock = eval('cachedBlocks.'+cacheBlock);
if ((myCachedBlock) && (myCachedBlock.length > 5) ) {
 $('#'+containerId).html(myCachedBlock.toString());
        if (loadSub) {
                loadSubPanel(tabName);
        }
} else {
        $.ajax({
                type: 'GET',
                // url: '../read.php',
                url: url,
                dataType: 'Text',
                // data: url,
               
                // Loading-GIF ausgeben (Hintergrundgrafik)
                beforeSend: function() {
                    $('#'+containerId).html('<div class="frn_ajaxWait"></div>');
                },
               
                // Im Fehlerfall
                error: function(p1,p2,p3) {
                        $('#'+containerId).html('<div>Fehler: '+url+'<br>'+containerId+'<br>'+cacheBlock+'</div>');
                },
               
                // Im Erfolgsfall
                success: function(msg) {
                        // Ergebnis schreiben
                        $('#'+containerId).html(msg);
                        // Response in den JS-Cache schreiben
                        eval('cachedBlocks.' + cacheBlock + ' = msg');
                        if (loadSub) {
                                loadSubPanel(tabName);
                        }
                }
               
        });       
}
}
function loadSubPanel(tabName) {
        if (tabName == "Kino") {
                getBlockData(backPath+'/panelMods/Combo/Kino/Kino_Neustarts/index.html','frnKinoSubpanel','frnKinoNeustarts', tabName, false);
        } else if (tabName == "MuDo") {
                getBlockData(backPath+'/panelMods/Combo/MuDo/Single_Charts/index.html','frnMuDoSubpanel','frnMuDoSingleCharts', tabName, false);
        }
}
function activateTab(modName, tabName) {
  if(tabName.substr(0,4) == "None") {
    var frnReiterIDs = new Array();
    childs = $('ul#frnPanelTabs'+modName+' li').get();
    for ( j = 0; j < childs.length; j++) {
      frnReiterIDs[j] = childs[j].id.substr(3);
    }
    var Index = 0;
    Index = (randomTabsOff) ? 0 : Math.floor(Math.random() * frnReiterIDs.length);
    activateTab(modName, frnReiterIDs[Index]);
  }
  else {
    // Alle Tabs des Moduls deaktivieren
    $('#frnPanel'+modName+' li').attr('class', 'frn_panelTabInaktiv');
    // Den betreffenden Tab aktivieren
    $('#frnPanel'+modName+' li#Tab'+tabName).attr('class','frn_panelTabAktiv');
    var panelBlock = "frnPanelBlock" + modName;
    var panelId = "frnPanel" + modName;
    var cacheBlock = panelBlock + tabName;
    var baseUrl = backPath+"/freenet/servlet/content";
    var url = baseUrl + "/" + tabName + "?view=snippet&innerView=teaser&isInnerCont=true";
    var url = ($.url.param("iurl") && tabName == $.url.param("activeTab")) ? url + "&iurl=" + unescape(escape($.url.param("iurl"))) : url;
    getBlockData(url, 'frnPanelBlock' + modName, cacheBlock, tabName,true);
    // aktivierten Tab registrieren
    activeTabs[modName] = tabName;
  }
}
/*
 * Funktion, die die Panels initialisiert
 */
function initPanels() {
        // zunächst die vorhandenen Panelmodule suchen;
        // <div id="..."  class="frn_panel">...</div>
        // und deren id in das Array frnPanelModule aufnehmen
        var frnPanelModule = new Array();
        frnPanelModule = $('div.frn_panel').get();
        for (i = 0; i < frnPanelModule.length; i++) {
                frnPanelIDs[i] = frnPanelModule[i].id.substr(8);
        }
       
        // Für alle Panel die aktiven Reiter finden
        // und deren Inhalte per XMLHttpRequest nachladen
        // Achtung: Für jeden aktiven Tab, muss ein gesonderter Request angestoßen werden
        for (i = 0; i < frnPanelIDs.length; i++) {
                var frnReiterIDs = new Array();
                childs = $('ul#frnPanelTabs'+frnPanelIDs[i]+' li').get();
                for ( j = 0; j < childs.length; j++) {
                        frnReiterIDs[j] = childs[j].id.substr(3);
                }
                // FALLBACK, wenn KEINE Variablen von 7D geliefert werden (GH, 13.05.2007):
                // Ermittlung der aufgeklappten Reiter nach dem Zufallsprinzip (Ausnahmen: News + Games)
                if ( typeof(frnPanels) == 'undefined' || typeof(frnPanels[i]) == 'undefined' || frnPanels[i] == '' ) {
                        var Index = 0;
                        if (frnPanelIDs[i] != "News" && frnPanelIDs[i] != "Games" )
                                Index = (randomTabsOff) ? 0 : Math.floor(Math.random() * frnReiterIDs.length);
                        //alert('I: '+Index+' M: '+frnPanelIDs[i]+' T: '+frnReiterIDs[Index]);
                        if (frnPanelIDs[i] != "News")
                                 activateTab(frnPanelIDs[i], frnReiterIDs[Index]);
                } else {
                        if (frnPanelIDs[i] != "News")
                                 activateTab(frnModules[i], frnPanels[i]);
                }
               
        }
       
        // Click-Events für Tabs setzen
        $('.frn_panelTabs li').click(
                function() {
                        // id des geklickten Reiters ('Tab'+Tabname)
                        thisId = $(this).attr('id');
                        // ID des Panels in das die Response geschrieben werden soll
                        // ('frnPanelBlock'+Modulname)
                        panelId = $(this).parent().parent().attr('id');
           
                        var modName = panelId.substr(8)
                        var tabName = thisId.substr(3);
                        activateTab(modName, tabName);
                }
        );
       
        // href-Attribut, title-Attribut aus Ankern loeschen, dafuer name setzen
        // Fallback fuer Javascriptlose User entfernen
        $('.frn_panelTabs li a').removeAttr('href').removeAttr('title').attr('name','');
}
var vPath = window.location.pathname;
  var randomTabsOff = false;
  var actualTeaserId = 1;
  var activeTabs = {};
var showPanels_ = function() {}
  var showPanels = function() {
/*
      for (var i in activeTabs) {
          var modName = i;
          var tabName = activeTabs[i];
          activateTab(modName, tabName);
       }
*/
      var frnPanelModule = new Array();
      frnPanelModule = $('div.frn_panel').get();
      for (i = 0; i < frnPanelModule.length; i++) {
          frnPanelIDs[i] = frnPanelModule[i].id.substr(8);
      }
      for (i = 0; i < frnPanelIDs.length; i++) {
          if (frnPanelIDs[i] != '') {
              if ((!activeTabs[frnPanelIDs[i]] ) ) {
                  var frnReiterIDs = new Array();
                  childs = $('ul#frnPanelTabs' + frnPanelIDs[i] + ' li').get();
                  for (j = 0; j < childs.length; j++) {
                      if (childs[j].id.substr(0, 7) != 'TabConf') {
                          frnReiterIDs[j] = childs[j].id.substr(3);
                      }
                  }
                  Index = (randomTabsOff) ? 0 : Math.floor(Math.random() * frnReiterIDs.length);
                  activateTab(frnPanelIDs[i], frnReiterIDs[Index]);
              }
          }
      }
  }

  var readCookie = function(){
 
      var cookieData = $.cookie('frnTab');
      cookieData = unescape(cookieData);
    
      if (cookieData) {
 
          var dataValues = cookieData.split("/");
          var property_value = "";
        
          for (var zaehler = 0; zaehler < dataValues.length; zaehler++) {
        
              oneValue = dataValues[zaehler];
              var splittedValue = oneValue.split(":");
              var valueKey = splittedValue[0];
              var valueValue = splittedValue[1];
              if (valueValue) {
                  activeTabs[valueKey] = valueValue;
                  $('#defTab'+valueValue).attr('checked', 'checked');
              }
          }
      }
  }
 
  var saveCookie = function(tabObject) {   
      var cookieString = '';
      for (var i in tabObject) {   
          if (tabObject[i] != null) {
              cookieString = cookieString + i + ':' + tabObject[i] + '/';
          } else {
              cookieString = cookieString + i + ':None' + i +'/';
          }
      }
      $.cookie('frnTab', cookieString, { expires: 3650 } );
  }
$(document).ready( function() {
  $('.setConf').click( function() {
    
      var tabToActivate = this.id.substr(6);
      myParentId = $(this).parent()[0].id.substr(17);
      activeTabs[myParentId] = tabToActivate;
      saveCookie(activeTabs);
      myParentId = $(this).parent()[0].id
      $('#'+myParentId).toggle();
      showPanels();
  } );
});

$(document).ready(function(){
frnScrolling = function() {
  this.init = function(obj) {
  isMousedown = false;
  $(".frn_LivetickerList").each(function(i){
   $(this).find("ul").scrollTop(4);
   if($(this).find("ul").scrollTop() == 4){
     $(this).find("ul").scrollTop(0);
     //$(".frn_scrollUp, this).remove();
     $(this).append('<div class="frn_scrollUp"></div><div class="frn_scrollDown"></div>');
   }
  });
  $(".frn_scrollUp").mousedown(function(){
    isMousedown = true;
    scrollUp($(':first', $(this).parent()));
  }).mouseup(function(){
    isMousedown = false;
  })
$(".frn_scrollDown").mousedown(function(){
    isMousedown = true;
    scrollDown($(':first', $(this).parent()));
  }).mouseup(function(){
    isMousedown = false;
  })
scrollUp = function (obj){
  scrollTop = obj.scrollTop();
  obj.scrollTop(scrollTop-16);
  setTimeout(function(){if(isMousedown)scrollUp(obj)}, 40);
 }
scrollDown = function (obj){
  scrollTop = obj.scrollTop();
  obj.scrollTop(scrollTop+16);
  setTimeout(function(){if(isMousedown)scrollDown(obj)}, 40);
}
}
}
 frnScrollBars = new frnScrolling();
 frnScrollBars.init();
})


$(document).ready(function(){

 if(!window.frnTextSelect){
   frnTextSelect = {};
 }
 var frnBHeight = $('#frnBanner').height();   
 var frnSuchBoxShowed = false;
 var newSelection = false;
 var frnSuchBoxTimeout = 0;
 var timeoutValue = 15000;
 var isInInput = false;
 var isInArtContent = false;
 frnTextSelect.Selector = {};
 frnTextSelect.Selector.getSelected = function(){
   var t = '';
   if(window.getSelection){
     t = window.getSelection();
   }else if(document.getSelection){
     t = document.getSelection();
   }else if(document.selection){
     t = document.selection.createRange().text;
   }
  
   return t;
 }
frnTextSelect.Selector.mouseup = function(e){
   var st = frnTextSelect.Selector.getSelected();
   newSelection = false;
   if ( st!='' ) {
   if (e.target.tagName != "INPUT") {
 newSelection = true;
 }
 showFrnSuchBox(st, e, newSelection);
   }
 }
 showFrnSuchBox = function(selectedText, myEvent, newSelection) {
 if (isInArtContent == true) {
 if ( (frnSuchBoxShowed == false) || (newSelection == true) ) {
 $('#frnSuchBox').css({
 "left": -18 + myEvent.pageX + "px",
 "top":-175 + myEvent.pageY - frnBHeight + "px"
 });
 }
 $('#frnSuchBoxInput').val(selectedText);
 $('#frnSuchBoxRadioWorld').trigger('click');
 $('#frnSuchBox').show();
 frnSuchBoxShowed = true;
 frnSuchBoxTimeout = setTimeout("$('#frnSuchBox').hide(); frnSuchBoxShowed = false;", timeoutValue);
 } else {
 return;
 }
 }
   $('#frnArtContent').mouseover( function(){
   isInArtContent = true;
   } );
   $('#frnArtContent').mouseout( function(){
   isInArtContent = false;
   } );
   $(document).bind("mouseup", frnTextSelect.Selector.mouseup);
   $('#frnSuchBoxClose').click( function(){
   $('#frnSuchBox').hide();
 frnSuchBoxShowed = false;
   } );
   $('#frnSuchBox').mouseover( function(){
   clearTimeout(frnSuchBoxTimeout)
   } );
   $('#frnSuchBox').mouseout( function(){
   if (isInInput == false) {
 frnSuchBoxTimeout = setTimeout("$('#frnSuchBox').hide(); frnSuchBoxShowed = false;", timeoutValue);
 }
   });
   $('#frnSuchBoxInput').focus( function(){
   clearTimeout(frnSuchBoxTimeout);
 isInInput = true;
   });
   $('#frnSuchBoxSubmit').click( function(){
   $('#frnSuchBox').hide();
 frnSuchBoxShowed = false;
   })
   $('#frnSuchBoxRadioShopping').click( function() {
   $('#frnSuchBoxInput').attr('name', 'searchText');
   $('#frnSuchBoxFormId').attr('action', 'http://shopping.freenet.de/search.do' );
   $('#frnSuchBoxFormId').attr('accept-charset', 'ISO-8859-1' );
   $('#frnSuchBoxFormId input[name="country"]').attr('value', '');
   $('#frnSuchBoxUL .frn_activ').attr('class', '');
   $('#frnSuchBoxListShopping').attr('class', 'frn_activ');
   });
   $('#frnSuchBoxRadioWorld').click( function() {
   $('#frnSuchBoxInput').attr('name', 'query');
   $('#frnSuchBoxFormId').attr('action', 'http://suche.freenet.de/suche' );
   $('#frnSuchBoxFormId').attr('accept-charset', 'UTF-8' );
   $('#frnSuchBoxFormId input[name="country"]').attr('value', '');
   $('#frnSuchBoxUL .frn_activ').attr('class', '');
   $('#frnSuchBoxListWorld').attr('class', 'frn_activ');
   });
   $('#frnSuchBoxRadioFreenet').click( function() {
   $('#frnSuchBoxInput').attr('name', 'query');
   $('#frnSuchBoxFormId').attr('action', 'http://suche.freenet.de/suche' );
   $('#frnSuchBoxFormId').attr('accept-charset', 'UTF-8' );
   $('#frnSuchBoxFormId input[name="country"]').attr('value', 'FN');
   $('#frnSuchBoxUL .frn_activ').attr('class', '');
   $('#frnSuchBoxListFreenet').attr('class', 'frn_activ');
   });
   $('#frnSuchBoxRadioLexikon').click( function() {
   $('#frnSuchBoxInput').attr('name', 'query');
   $('#frnSuchBoxFormId').attr('action', 'http://suche.freenet.de/suche' );
   $('#frnSuchBoxFormId').attr('accept-charset', 'UTF-8' );
   $('#frnSuchBoxFormId input[name="country"]').attr('value', '');
   $('#frnSuchBoxUL .frn_activ').attr('class', '');
   $('#frnSuchBoxListLexikon').attr('class', 'frn_activ');
   });
   $('#commentLayerSwitch').click( function() {$('#commentLayerContent').toggle();} );
 });

/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

/*
 * Facebox (for jQuery)
 * version: 1.2 (05/05/2008)
 * @requires jQuery v1.2 or later
 *
 * Examples at http://famspam.com/facebox/
 *
 * Licensed under the MIT:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Copyright 2007, 2008 Chris Wanstrath [ chris@ozmm.org ]
 *
 * Usage:
 *  
 *  jQuery(document).ready(function() {
 *    jQuery('a[rel*=facebox]').facebox() 
 *  })
 *
 *  <a href="#terms" rel="facebox">Terms</a>
 *    Loads the #terms div in the box
 *
 *  <a href="terms.html" rel="facebox">Terms</a>
 *    Loads the terms.html page in the box
 *
 *  <a href="terms.png" rel="facebox">Terms</a>
 *    Loads the terms.png image in the box
 *
 *
 *  You can also use it programmatically:
 * 
 *    jQuery.facebox('some html')
 *
 *  The above will open a facebox with "some html" as the content.
 *    
 *    jQuery.facebox(function($) { 
 *      $.get('blah.html', function(data) { $.facebox(data) })
 *    })
 *
 *  The above will show a loading screen before the passed function is called,
 *  allowing for a better ajaxy experience.
 *
 *  The facebox function can also display an ajax page or image:
 *  
 *    jQuery.facebox({ ajax: 'remote.html' })
 *    jQuery.facebox({ image: 'dude.jpg' })
 *
 *  Want to close the facebox?  Trigger the 'close.facebox' document event:
 *
 *    jQuery(document).trigger('close.facebox')
 *
 *  Facebox also has a bunch of other hooks:
 *
 *    loading.facebox
 *    beforeReveal.facebox
 *    reveal.facebox (aliased as 'afterReveal.facebox')
 *    init.facebox
 *
 *  Simply bind a function to any of these hooks:
 *
 *   $(document).bind('reveal.facebox', function() { ...stuff to do after the facebox and contents are revealed... })
 *
 */
(function($) {
  $.facebox = function(data, klass) {
    $.facebox.loading()
    if (data.ajax) fillFaceboxFromAjax(data.ajax)
    else if (data.image) fillFaceboxFromImage(data.image)
    else if (data.div) fillFaceboxFromHref(data.div)
    else if ($.isFunction(data)) data.call($)
    else $.facebox.reveal(data, klass)
  }
  /*
   * Public, $.facebox methods
   */
 
  $.extend($.facebox, {
    settings: {
      opacity      : 0.5,
      overlay      : true,
      loadingImage : '/contentblob/104220/data/wait.gif',
      closeImage   : '',
      imageTypes   : [ 'png', 'jpg', 'jpeg', 'gif' ],
      faceboxHtml  : '\
    <div id="facebox" style="display:none;"> \
      <div class="popup"> \
        <table border="0"> \
          <tbody> \
            <tr> \
              <td class="tl"/><td class="b"/><td class="tr"/> \
            </tr> \
            <tr> \
              <td class="b"/> \
              <td class="facebox_head"> \
    <a href="#" class="facebox_close"> \
                     \
               </a></td>\
               <td class="b"/> \
            </tr> \
            <tr> \
              <td class="b"/> \
              <td class="body"> \
                <div class="content"> \
                </div> \
                <div id="facebox_copy"> \
                </div> \
              </td> \
              <td class="b"/> \
            </tr> \
            <tr> \
              <td class="bl"/><td class="b"/><td class="br"/> \
            </tr> \
          </tbody> \
        </table> \
      </div> \
    </div>'
    },
    loading: function() {
      init()
      if ($('#facebox .loading').length == 1) return true
      showOverlay()
      $('#facebox .content').empty()
      $('#facebox .body').children().hide().end().
        append('<div class="loading"><img src="'+$.facebox.settings.loadingImage+'" /></div>')
      $('#facebox').css({
        top:getPageScroll()[1] + (getPageHeight() / 10),
        left:385.5
      }).show()
      $(document).bind('keydown.facebox', function(e) {
        if (e.keyCode == 27) $.facebox.close()
        return true
      })
      $(document).trigger('loading.facebox')
    },
    reveal: function(data, klass) {
      $(document).trigger('beforeReveal.facebox')
      if (klass) $('#facebox .content').addClass(klass)
      $('#facebox .content').append(data)
      $('#facebox .loading').remove()
      $('#facebox .body').children().fadeIn('normal')
      $('#facebox').css('left', $(window).width() / 2 - ($('#facebox table').width() / 2))
      $(document).trigger('reveal.facebox').trigger('afterReveal.facebox')
    },
    close: function() {
      $(document).trigger('facebox_close.facebox')
      return false
    }
  })
  /*
   * Public, $.fn methods
   */
  $.fn.facebox = function(settings) {
    init(settings)
    function clickHandler() {
      $.facebox.loading(true)
      // support for rel="facebox.inline_popup" syntax, to add a class
      // also supports deprecated "facebox[.inline_popup]" syntax
      var klass = this.rel.match(/facebox\[?\.(\w+)\]?/)
      if (klass) klass = klass[1]
      fillFaceboxFromHref(this.href, klass)
      return false
    }
    return this.click(clickHandler)
  }
  /*
   * Private methods
   */
  // called one time to setup facebox on this page
  function init(settings) {
    if ($.facebox.settings.inited) return true
    else $.facebox.settings.inited = true
    $(document).trigger('init.facebox')
    makeCompatible()
    var imageTypes = $.facebox.settings.imageTypes.join('|')
    $.facebox.settings.imageTypesRegexp = new RegExp('\.' + imageTypes + '$', 'i')
    if (settings) $.extend($.facebox.settings, settings)
    $('body').append($.facebox.settings.faceboxHtml)
    var preload = [ new Image(), new Image() ]
    preload[0].src = $.facebox.settings.closeImage
    preload[1].src = $.facebox.settings.loadingImage
    $('#facebox').find('.b:first, .bl, .br, .tl, .tr').each(function() {
      preload.push(new Image())
      preload.slice(-1).src = $(this).css('background-image').replace(/url\((.+)\)/, '$1')
    })
    $('#facebox .facebox_close').click($.facebox.close)
    $('#facebox .close_image').attr('src', $.facebox.settings.closeImage)
  }
  
  // getPageScroll() by quirksmode.com
  function getPageScroll() {
    var xScroll, yScroll;
    if (self.pageYOffset) {
      yScroll = self.pageYOffset;
      xScroll = self.pageXOffset;
    } else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
      yScroll = document.documentElement.scrollTop;
      xScroll = document.documentElement.scrollLeft;
    } else if (document.body) {// all other Explorers
      yScroll = document.body.scrollTop;
      xScroll = document.body.scrollLeft;
    }
    return new Array(xScroll,yScroll) 
  }
  // Adapted from getPageSize() by quirksmode.com
  function getPageHeight() {
    var windowHeight
    if (self.innerHeight) {// all except Explorer
      windowHeight = self.innerHeight;
    } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
      windowHeight = document.documentElement.clientHeight;
    } else if (document.body) { // other Explorers
      windowHeight = document.body.clientHeight;
    }
    return windowHeight
  }
  // Backwards compatibility
  function makeCompatible() {
    var $s = $.facebox.settings
    $s.loadingImage = $s.loading_image || $s.loadingImage
    $s.closeImage = $s.close_image || $s.closeImage
    $s.imageTypes = $s.image_types || $s.imageTypes
    $s.faceboxHtml = $s.facebox_html || $s.faceboxHtml
  }
  // Figures out what you want to display and displays it
  // formats are:
  //     div: #id
  //   image: blah.extension
  //    ajax: anything else
  function fillFaceboxFromHref(href, klass) {
    // div
    if (href.match(/#/)) {
      var url    = window.location.href.split('#')[0]
      var target = href.replace(url,'')
      $.facebox.reveal($(target).clone().show(), klass)
    // image
    } else if (href.match($.facebox.settings.imageTypesRegexp)) {
      fillFaceboxFromImage(href, klass)
    // ajax
    } else {
      fillFaceboxFromAjax(href, klass)
    }
  }
  function fillFaceboxFromImage(href, klass) {
    var image = new Image()
    image.onload = function() {
      $.facebox.reveal('<div class="image"><img src="' + image.src + '" /></div>', klass)
      $('#facebox #facebox_copy').empty().append($('#frnBsPicCopy').text());
    }
    image.src = href
  }
  function fillFaceboxFromAjax(href, klass) {
    $.get(href, function(data) { $.facebox.reveal(data, klass) })
  }
  function skipOverlay() {
    return $.facebox.settings.overlay == false || $.facebox.settings.opacity === null 
  }
  function showOverlay() {
$(".frn_inlinePlayer").css("visibility","hidden")
    if (skipOverlay()) return
    if ($('facebox_overlay').length == 0) 
      $("body").append('<div id="facebox_overlay" class="facebox_hide"></div>')
    $('#facebox_overlay').hide().addClass("facebox_overlayBG")
      .css('opacity', $.facebox.settings.opacity)
      .click(function() { $(document).trigger('facebox_close.facebox') })
      .fadeIn(200)
    return false
    
  }
  function hideOverlay() {
    if (skipOverlay()) return
    $('#facebox_overlay').fadeOut(1, function(){
      $("#facebox_overlay").removeClass("facebox_overlayBG")
      $("#facebox_overlay").addClass("facebox_hide") 
      $("#facebox_overlay").remove()

      $(".frn_inlinePlayer").css("visibility","visible")
    })
    
    return false
  }
  /*
   * Bindings
   */
  $(document).bind('facebox_close.facebox', function() {
    $(document).unbind('keydown.facebox')
    $('#facebox').fadeOut(function() {
      $('#facebox .content').removeClass().addClass('content')
      hideOverlay()
      $('#facebox .loading').remove()
    })
  })
})(jQuery);




jQuery.fn.clearInput = function() { 
    $(".popup  input").val('');
    $(".error_input").empty();

};

jQuery.fn.clearSelect = function() { 

var testVal = $(".popup  select").val();

  if (testVal != 'Vorwahl') {
    $(".error_select").empty();
  }else {
  return false;
  }


};

jQuery.fn.refillInput = function() { 
  var currentVal = $(".popup  input").val();
  if (currentVal == '') {
    $(".popup  input").val('Handynummer');
    } else {
      return false;
    }

};
jQuery.fn.processForm = function() { 
  var hasError = false;
  var preselection = $('.popup select').val();
   if(preselection == 'Vorwahl') {
  $('.error_select').text('Bitte geben Sie eine Vorwahl ein.');
  var pt043rnd = Math.round(Math.random() * 314159265);
  var imgUri = 'http://abakus.freenet.de/cgi-bin/ivw/SC/freenet/mobilportal/coremedia/smslink/fehler.html?TransactionID='+pt043rnd ;
  var ctPic = new Image();
  ctPic.src = imgUri;
  hasError = true;
  };
  var cellNumber = $('.popup input').val();
    if( (isNaN(cellNumber)) || (cellNumber == '') || (cellNumber.length < 7)) {
  $('.error_input').text('Bitte geben Sie eine gültige Nummer ein.');
  var pt043rnd = Math.round(Math.random() * 314159265);
  var imgUri = 'http://abakus.freenet.de/cgi-bin/ivw/SC/freenet/mobilportal/coremedia/smslink/fehler.html?TransactionID='+pt043rnd ;
  var ctPic = new Image();
  ctPic.src = imgUri;
  hasError = true;
  };
  if(hasError == false) {
    var frn075msgVal = $('#frn75link').html();
    var frn075rcptVal = preselection+cellNumber;
    $.getJSON((($.url.attr('host')=='www.freenet.de') ? "" : "http://weitersagen.freenet.de")+ "/smsVersand/send.php?callback=?", { frn075rcpt : frn075rcptVal, frn075msg : frn075msgVal } );
    var pt043rnd = Math.round(Math.random() * 314159265);
    var COOKIE_NAME = 'frnSendSms';
    var options = { path: '/', expires: 30 };
    $.cookie(COOKIE_NAME, '1', options);
    var imgUri = 'http://abakus.freenet.de/cgi-bin/ivw/SC/freenet/mobilportal/coremedia/smslink/absenden.html?TransactionID='+pt043rnd ;
    var ctPic = new Image();
    ctPic.src = imgUri;

    $('.popup  ul').remove();
    $('.popup  form').remove();
    $('.popup  #frn_smsVersandPopup div').html('<p>Der Versand an <strong>'+frn075rcptVal+'</strong> wurde erfolgreich durchgeführt.</p><p>Viel Spaß mit freenet auf Ihrem Handy.</p>');

  } else {
    return false;
  };
  return false;
  };


