function setLocation(url){
	if($("#formThickboxList").length > 0) {
		$("#formThickboxList").attr("action",url);
		$("#formThickboxList").submit();
	} else {
		window.location.href = url;
	}
}

// Funktion wird von Autocomplete aufgerufen
// Location zum Such-Treffer
function findValue(li) {
	if( li == null ) return alert("No match!");
	if( !!li.extra ) {
		var sValue = li.extra[0];
	}
	else {
		var sValue = li.selectValue;
	}
	if(sValue.substring(0,6) == "blank:") {
		sValue = sValue.substring(6);
		window.open(sValue,"");
	}
	else {
		setLocation(sValue);
	}
}
// DTV V0.4  08-12-2008
$(document).ready(function(){
    $('.jcarousel-next,.jcarousel-prev, #s_nav_main, #s_themen_menu').click(function(){
        $("#cluetip-close").click();
    });

    //Autocomplete
	if(typeof($.fn.autocomplete) != "undefined") {
	    $("#input_suche").autocomplete(
	        "/_ajax/search_autocomplete.cfm",
	        {
	             minChars: 4,
	             delay: 400,
	             width: 172,
	             cacheLength: -1,
	             onItemSelect: function(li) { findValue(li); },
	             onFindValue: findValue
	        }
	    );
	}
    
    $("#input_newsletter").click(function(){
        if ($(this).val() == 'Ihre E-Mail Adresse') {
            $(this).val('');
        }
    });

	if(typeof($.fn.superfish) != "undefined") {
	
	    //Verlagsprogramme
	    $('#m_verlagsprogramme ul').superfish({
	        autoArrows: false, 
	        animation: { top: '-47px', opacity:'show' },
	        delay: 1200,
	        speed: 'slow',
	        onHide: function(){ $(this).css( 'top', '0px'); }           
	    });
		
	    //#s_nav_main: Autoren, Bücher, magazin - fly out menu
	    $("#s_nav_main").superfish({
	        autoArrows: false, 
	        animation: { left: '-197px', height: '130px', opacity:'show', width: 'show' }, 
	        delay: 1200,
	        speed: 'fast',
	        onHide: function(){ $(this).css( 'left', '0px'); }
	    });
	    
	    //Portale
	    $('#s_nav_sub').superfish({
	        autoArrows: false, 
	        animation: { left: '-217px', height: '60px', opacity:'show', width: 'show' }, 
	        delay: 1200,
	        speed: 'fast',
	        onHide: function(){ $(this).css( 'left', '0px'); }          
	    });
	
	}
    
/*
    // m_header flash banner
    $('#m_header').flash({
        src: 'themes/dtv/flash/header.swf',
        width: 720,
        height: 300,
        wmode: 'transparent'
    }); 
*/
    
	if(typeof($.fn.accordion) != "undefined") {
	
	    //s_themen menu
	    $("#s_themen_menu").accordion({
	        header: 'div.h2',
	        //selectedClass: 'open',
	        event: 'click',
	        autoHeight: false,
	        active: false,
	        alwaysOpen: false,
			collapsible: true
	    });

	}
	
    //$("#s_themen_menu").accordion( 'activate' , 1);
    
    /* Targets */
    $("a.external").attr("target","_blank");
    
    $("div.matrix-cover").each(function() {
        var $div = $(this);
        var $a = $div.children("a");  
        var $img = $a.children("img");
        if(jQuery.trim($img.css("height")) != "" && $a.length > 0) {
            var height = parseInt($img.height());
            if(height < 175) {
                var padding = (175 - height) + "px";
                $a.css("padding-top",padding);
            }
            
        }
    }); 

    /* #############################################################
     * ################ WH Tooltips - BR 16-10-2009 ################
     * #############################################################
     */
	
    initTooltips();
	
	// Suche Leeren Button für Erweitere Suche soll auch die WH-Dropdowns resetten
	// KM 10.03.2010
	$("input.button-suchen-leeren").click(function () {
		// Themen
		$("div.jquery-wh-dropdown input[name=f_thema]")
		.val("0")
		.parent("div.jquery-wh-dropdown")
		.find("div.jquery-wh-select span.jquery-wh-caption")
		.html("- nichts ausgew&auml;hlt -");
		// Verlagsprogramme
		$("div.jquery-wh-dropdown input[name=f_verlag]")
		.val("0")
		.parent("div.jquery-wh-dropdown")
		.find("div.jquery-wh-select span.jquery-wh-caption")
		.html("- nichts ausgew&auml;hlt -");
		// Lesealter
		$("div.jquery-wh-dropdown input[name=f_alter]")
		.val("0")
		.parent("div.jquery-wh-dropdown")
		.find("div.jquery-wh-select span.jquery-wh-caption")
		.html("- nichts ausgew&auml;hlt -");
		// Reihen
		$("div.jquery-wh-dropdown input[name=f_reihen]")
		.val("0")
		.parent("div.jquery-wh-dropdown")
		.find("div.jquery-wh-select span.jquery-wh-caption")
		.html("- nichts ausgew&auml;hlt -");
	});
	
	// Buchfinder <div> auf visible setzen (KM 17.11.2010)
	$(".bf-container").css("display","block");
	
});


function initTooltips(){
	   $(".cluetips").unbind();
	   $(".cluetip").unbind();
	   
	   if(typeof($.fn.hoverIntent) != "undefined") {
	   
		   $(".cluetips").hoverIntent({
	        over: function(){
	            //Cover Mouseover
	            $(this).addClass('mouseover');
	            
	            //Benötigte Elemente "Sammeln"
	            nexttip = $('#' + $(this).attr('rel'));
	            maincontainer = $(this).parents('.main_container');
	            
	            cell = $(this).parents('.cell');
				tiptyp = "matrix";
	            
	            if(cell.length == 0){
	                //Positionen für Slider statt für Matrix ermitteln
	                cell = $(this).parents('.jcarousel-item');
					tiptyp = "slider";				 
	            }     
				
				if (cell.length == 0) {
	                //Positionen für Text statt für Slider ermitteln
	                cell = $(this).parents('.sidebar_image');
	                tiptyp = "text";      
				}
				
				if(tiptyp == "matrix"){
		            row = $(this).parents('.row');
		            plus_x = 0;
		            plus_y = 0;
				}else if(tiptyp == "slider"){
	                row = $(this).parents('.slider');
	                plus_x = 40 + $(this).parents('.jcarousel-list').position().left;
	                plus_y = 0;
				}else if(tiptyp == "text"){
					row = $(this).parents('.text_images');
	                plus_x = 10;
	                plus_y = 0;
				}
				         
	            //Wenn das nächste Tooltip nicht sichtbar ist, erstmal alle nicht sichtbar machen
	            if (nexttip.is(':hidden')) {
	                $('.cluetip').hide();
	            }
	             
	            //Offsets berechnen     
	            cellpos = cell.position().left;
	            leftoffset = cellpos + cell.width() + plus_x - 10;  
	            rightoffset = cellpos - nexttip.width() + plus_x - 30;
	            topoffset = row.position().top + plus_y + 40;
	            		
	            nexttip.show();
	            
	            //Überschneidet das Tooltip den Contentbereich?
	            if((leftoffset + nexttip.width()) > maincontainer.width()){
	                //Ja tut es -->  cluetip auf der linken seite anzeigen
	                nexttip.addClass('cluetip-right');
	                nexttip.css('left', rightoffset);
	            }else{
	                //Nein, Cluetip normal anzeigen
	                nexttip.removeClass('cluetip-right');
	                nexttip.css('left', leftoffset);
	            }
	            
	            nexttip.css('top', topoffset);      
	            
	        }
	        ,out: function(){
	            //Cover Mouseout
	            nexttip = $('#' + $(this).attr('rel'));
	            
	            $(this).removeClass('mouseover');
	            if(!(nexttip.hasClass('mouseover'))){ //Verhindert Close, wenn Mauszeiger über Tooltip
	              nexttip.hide();  
	            }       
	        }
	        ,timeout: 500
	        ,interval: 50   
	        ,sensitivity: 3 
	    });
		
	
	    $(".cluetip").hoverIntent({
	        over: function(){
	                //Tooltip Mouseover
	                $(this).addClass('mouseover');
	        }
	        ,out: function(){
	                //Cover Mouseout
	                $(this).removeClass('mouseover');
	                id = $(this).attr('id');
	                coverid = '#cover'+id.substring(id.indexOf('_'));
	                if(!($(coverid).hasClass('mouseover'))){ //Verhindert Close, wenn Mauszeiger wieder über Cover
	                   $(this).hide();
	                }
	        }
	        ,timeout: 500
	        ,interval: 1   
	        ,sensitivity: 1 
	    });

	}
	
	burnout_header_init();
}

function closetooltip(id){
	$("#tooltip_"+id).hide();	
}


function gm_tooltip(id){
	$.scrollTo( "#veranstaltung" + id, {duration:500} );
	$("div.veranstaltungsliste").removeClass("veranstaltung_highlight");
	$("div.veranstaltung_zeile_" + id).addClass("veranstaltung_highlight");
}

function titellistePopup(page_id,widget_id,lang,sort,alpha,suche,themenseite){
	buchfinder = typeof(buchfinder) == "undefined" ? 0 : buchfinder;
	if($("#thickbox_vars_"+widget_id).length > 0) {
		tb_show("","/list/titel.html?page_id="+page_id+"&lang="+lang+"&widget_id="+widget_id+"&f_sort_"+widget_id+"="+sort+"&f_alpha_"+widget_id+"="+alpha+"&f_suche_"+widget_id+"="+suche+"&themenseite=" + themenseite + "&TB_iframe=true&height=500&width=720",null);
	}
}

function autorenlistePopup(page_id,widget_id,lang,sort,alpha){
	if($("#thickbox_vars_"+widget_id).length > 0) {
		tb_show("","/list/autoren.html?page_id="+page_id+"&lang="+lang+"&widget_id="+widget_id+"&f_sort_"+widget_id+"="+sort+"&f_alpha_"+widget_id+"="+alpha+"&TB_iframe=true&height=500&width=720",null);
	}
}

function themenlistePopup(page_id,widget_id,lang,sort){
/*
	if($("#idlist_slider"+id).length > 0) {
		tb_show("","/themes/dtv/themenliste.cfm?lang="+lang+"&id="+id+"&TB_iframe=true&height=500&width=800",null);
	}
*/
	if($("#thickbox_vars_"+widget_id).length > 0) {
		tb_show("","/list/themen.html?page_id="+page_id+"&lang="+lang+"&widget_id="+widget_id+"&f_sort_"+widget_id+"="+sort+"&TB_iframe=true&height=500&width=720",null);
	}
}

function speciallistePopup(page_id,widget_id,lang,sort){
/*
	if($("#idlist_slider"+id).length > 0) {
		tb_show("","/themes/dtv/specialliste.cfm?lang="+lang+"&id="+id+"&TB_iframe=true&height=500&width=800",null);
	}
*/
	if($("#thickbox_vars_"+widget_id).length > 0) {
		tb_show("","/list/specials.html?page_id="+page_id+"&lang="+lang+"&widget_id="+widget_id+"&f_sort_"+widget_id+"="+sort+"&TB_iframe=true&height=500&width=720",null);
	}
}

function veranstaltungslistePopup(page_id,widget_id,lang,sort,anker){
/*
	if($("#idlist_slider"+id).length > 0) {
		tb_show("","/themes/dtv/veranstaltungsliste.cfm?lang="+lang+"&id="+id+anker+"&TB_iframe=true&height=500&width=800",null);
	}
*/
	if($("#thickbox_vars_"+widget_id).length > 0) {
		tb_show("","/list/veranstaltungen.html?page_id="+page_id+"&lang="+lang+"&widget_id="+widget_id+"&f_sort_"+widget_id+"="+sort+anker+"&TB_iframe=true&height=500&width=720",null);
	}
}

function quickserach(exakt) {
	exakt = typeof(exakt) == "undefined" ? false : exakt;
	window.location.href = "/suche.html?s=" + $("#input_suche").val() + "&exakt=" + exakt;
}

function openMenu(page_id,parents) {
	//
	// Element Array zusammenbauen
	//
	var elements = parents;
	if(typeof(elements) == "string") {
		elements = elements.split(",");
	}
	elements.push(""+page_id+"");
	// --------------------------------------------------
	//  Hauptmenü
	// --------------------------------------------------
	for(var i=0;i<elements.length;i++) {
		var element_id = parseInt(elements[i]);
		$("li#s_themen_menu_" + element_id).find("ul").show();
		$("li#s_themen_menu_" + element_id).find("div.h2").addClass("selected");
	}
	$("li#s_themen_menu_"+page_id).find("a").css("color","white");
    
	$("li#s_themen_head_" + page_id).find("div.h2").addClass("selected");
	
	// --------------------------------------------------
	//  Portal-Submenu
	// --------------------------------------------------
	if(typeof(openPortalSubmenu) == "function") {
		openPortalSubmenu(elements);
	}
}

function checkForm() {
	var allowSubmit = true;
	var errors = 0;
	for(var i=0;i<requiredFieldsArray.length;i++) {
		var fieldName = requiredFieldsArray[i];
		if(jQuery.trim($("input[name=" + fieldName + "], textarea[name=" + fieldName + "]").val()) == "") {
			$("input[name=" + fieldName + "], textarea[name=" + fieldName + "]").css("border-color","#ffa4a6");
			allowSubmit = false;
			errors++;
		}
	}
	if(errors > 0) {
		alert("Bitte überprüfen Sie die markierten Felder.");
	}
	return allowSubmit;
}

function checkFormVeranstaltungPlanen() {
	return checkForm();
}

function checkFormAnfrage() {
	return checkForm();
}

function decryptThis(s) {
	var n=0;
	var r="";
	for(var i=0;i<s.length;i++) { 
		n=s.charCodeAt(i); 
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(2)); 
	}
	return r;
}

function decrypt_mail(element, email, params) {
	if (!params) var params = '';
	element.href = 'mailto:' + decryptThis(email) + params;
}

function dM(element,mail) {
	return decrypt_mail(element,mail);
}

/*
-----------------------------------
Version vom 02.09.2009 vor Änderung
-----------------------------------
function init_cluetips() {
	$('a.cluetips').cluetip({
	    local: true
	   ,width: '370px'
	   ,arrows: true
	   ,positionBy: 'fixed'
	   ,hoverIntent: 
	    {    
	      sensitivity:  7,
	      interval:     50,
	      timeout:      1000
        }
	   ,mouseOutClose: true
	   ,dropShadow: false
	   ,closeText: ''
	});
}
*/

function init_cluetips() {
	$('a.cluetips').cluetip({
	    local: true
	   ,width: '370px'
	   ,arrows: true
	   ,positionBy: 'fixed'
	   ,mouseOutClose: true
	   ,dropShadow: false
	   ,closeText: ''
	   ,sticky: true
	   ,onActivate: function ($a) {
	   		/*
			if(! ( $a.children("img:eq(0)").hasClass("sidebar_img") || $a.parent("li").length > 0 || $a.parent("div").hasClass("matrix-cover") ) ) {
				$("#cluetip").css("margin-left","-180px");
			}
			else {
				$("#cluetip").css("margin-left","0px");
			}
			*/
			return true;
	   	}
	});
}

/* Copyright (c) 2006 Mathias Bank (http://www.mathias-bank.de)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * 
 * Thanks to Hinnerk Ruemenapf - http://hinnerk.ruemenapf.de/ for bug reporting and fixing.
 */
jQuery.extend({
/**
* Returns get parameters.
*
* If the desired param does not exist, null will be returned
*
* @example value = $.getURLParam("paramName");
*/ 
	 getURLParam: function(strParamName){
		var strReturn = "";
		var strHref = window.location.href;
		var bFound=false;
		
		var cmpstring = strParamName + "=";
		var cmplen = cmpstring.length;
		
		if ( strHref.indexOf("?") > -1 ){
			var strQueryString = strHref.substr(strHref.indexOf("?")+1);
			// kill hash by CR, 16.09.09
			if (window.location.hash != '') {
				strQueryString = strQueryString.replace(window.location.hash,"");
			}
			// kill hash END
			var aQueryString = strQueryString.split("&");
			for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
				if (aQueryString[iParam].substr(0,cmplen)==cmpstring){
					var aParam = aQueryString[iParam].split("=");
					strReturn = aParam[1];
					bFound=true;
					break;
				}
				
			}
		}
		if (bFound==false) return null;
		return strReturn;
	}
});

function checkErweiterteSuche() {
	var textFields   = ["f_autor","f_titel","f_isbn","f_all","f_thema","f_verlag","f_alter","f_reihen"];
	var selectFields = []; // Selectfields wurden durch jQuery Elemente mit Hidden Textfields ersetzt, KM 08.12.2009
	var checkFields  = ["f_lehrer","f_unterricht","f_neu","f_leseprobe"];
	// Text Felder
	for(var i=0;i<textFields.length;i++) {
		if(jQuery.trim($("input[name=" + textFields[i] + "]").val()) != "") {
			return true;
		}
	}
	// Select Boxen
	for(var i=0;i<selectFields.length;i++) {
		if(jQuery.trim($("select[name=" + selectFields[i] + "]").val()) != 0) {
			return true;
		}
	}
	// Check Boxen
	for(var i=0;i<checkFields.length;i++) {
		if($("input[name=" + checkFields[i] + "]").is(":checked")) {
			return true;
		}
	}
	alert("Bitte geben Sie einen Suchbegriff ein\n" +
	      "oder wählen Sie ein Kriterium aus.");
	return false;
}

function expandReviewList(dtvnr,titel,gaestebuch) {
	if(!gaestebuch) gaestebuch = false;
	$("#titel_leserstimmenliste").append("<div class='leserstimmenliste liste' id='titel_leserstimmenliste_loader'><div class='spalte1'></div><div class='spalte2' style='text-align: center;'><img src='/themes/jugendbuch/images/ajax-loader.gif' alt='...' /></div></div>");
	$.ajax({
		 url:		"/_ajax/get_leserstimmen.cfm"
		,type:		"get"
		,data:		{ dtvnr: dtvnr, titel: titel, type: (gaestebuch == true ? "gaestebuch" : "normal") }
		,dataType: 	"html"
		,success:   function(data,status) {
			$("#titel_leserstimmenliste_loader").remove();
			$("#titel_leserstimmenliste").html(data);
			$("#titel_leserstimmenliste_mehr").remove();
		 }
		,error:		function() {
			$("#titel_leserstimmenliste").append("Fehler beim Laden der Leserstimmen.");
			$("#titel_leserstimmenliste_loader").remove();
			$("#titel_leserstimmenliste_mehr").remove();
		}
	});
}

function wako_add(dtvnr) {
	$.ajax({
		 url: "/warenkorb/ajax_additem.cfm?dtvnr=" + dtvnr + "&callback=?"
		,dataType: "jsonp"
		,cache: false
		,success: function(data, status) {
			$("dd.bestell_button a").hover(
				 function() {}
				,function() { window.setTimeout(function() { $("#wako_bestaetigung").fadeOut(); }, 1000); }
			);
			$("#wako_bestaetigung").fadeIn();
			$.getJSON("/warenkorb/ajax_wakobox.cfm?callback=?", function (data) { wako_box_update(data); });
		 }
		,error: function() {
			alert("Der Artikel konnte nicht in den Warenkorb gelegt werden.\nBitte versuchen Sie es später erneut.");
		 }
	});
}

function bestellschein_add(dtvnr) {
	var anzahl = parseInt($("#feld_bestellschein_anzahl").val());
	if(isNaN(anzahl) || anzahl < 1) {
		alert("Die minimale Anzahl beträgt 1 Exemplar.");
		return;
	}
	$.ajax({
		 url: "/warenkorb/ajax_handel_additem.cfm?dtvnr=" + dtvnr + "&anzahl=" + anzahl + "&callback=?"
		,dataType: "jsonp"
		,cache: false
		,success: function(data, status) {
			$("dd.bestell_button a").hover(
				 function() {}
				,function() { window.setTimeout(function() { $("#wako_bestaetigung").fadeOut(); }, 1000); }
			);
			$("#wako_bestaetigung").fadeIn();
			$.getJSON("/warenkorb/ajax_handel_wakobox.cfm?callback=?", function (data) { wako_box_handel_update(data); });
		 }
		,error: function() {
			alert("Der Artikel konnte nicht in den Warenkorb gelegt werden.\nBitte versuchen Sie es später erneut.");
		 }
	});
}

function wako_box_update(data) {
	var $box = $("#wako_box");
	if(data.count > 0) {
		// Count an Link anfügen
		$("#wako_link_counter").html("(" + data.count + ")").show();
		// Table füllen
		$table = $box.find("table:eq(0) tbody");
		$table.empty();
		for(var i=0; i < data.count; i++) {
			html = "";
			html = html + "<tr>";
			html = html + "	<td class=\"wako_box_count\">" + data.items[i].count + "x</td>";
			html = html + "	<td class=\"wako_box_title\"><div title=\"" + data.items[i].title + "\">" + data.items[i].title + "</div></td>";
			html = html + "	<td class=\"wako_box_price\">" + data.items[i].price.toFixed(2).replace(".",",") + " &euro;</td>";
			html = html + "</tr>";
			html = html + "<tr>";
			html = html + "	<td class=\"warenkorb_box_trennstrich\" colspan=\"3\">&nbsp;</td>";
			html = html + "</tr>";
			$html = $(html);
			$table.append($html);
		}
		html = "";
		html = html + "<tr class=\"wako_box_summe\">";
		html = html + "	<td colspan=\"2\">Gesamt:</td>";
		html = html + "	<td class=\"wako_box_price\">" + data.sum.toFixed(2).replace(".",",") + " &euro;</td>";
		html = html + "</tr>";
		$html = $(html);
		$table.append($html);
		$box.slideDown("slow");
	}
	else {
		$box.slideUp("slow");
	}
}

function wako_box_handel_update(data) {
	var $box = $("#wako_box");
	if(data.count > 0) {
		// Count an Link anfügen
		$("#wako_link_counter").html("(" + data.count + ")").show();
		// Table füllen
		$table = $box.find("table:eq(0) tbody");
		$table.empty();
		for(var i=0; i < data.count; i++) {
			html = "";
			html = html + "<tr>";
			html = html + "	<td class=\"wako_box_count\">" + data.items[i].count + "x</td>";
			html = html + "	<td class=\"wako_box_title\"><div title=\"" + data.items[i].title + "\">" + data.items[i].title + "</div></td>";
			html = html + "	<td class=\"wako_box_price\">" + data.items[i].price.toFixed(2).replace(".",",") + " &euro;</td>";
			html = html + "</tr>";
			html = html + "<tr>";
			html = html + "	<td class=\"warenkorb_box_trennstrich\" colspan=\"3\">&nbsp;</td>";
			html = html + "</tr>";
			$html = $(html);
			$table.append($html);
		}
		html = "";
		html = html + "<tr class=\"wako_box_summe\">";
		html = html + "	<td colspan=\"2\">Gesamt:</td>";
		html = html + "	<td class=\"wako_box_price\">" + data.sum.toFixed(2).replace(".",",") + " &euro;</td>";
		html = html + "</tr>";
		$html = $(html);
		$table.append($html);
		$("#wako_box_content_info").remove(); // Keine Versandkosten und MwSt Info bei Händlern
		$("#wako_box_content_pfeil a").attr("href", "/direktbestellung/");
		$box.slideDown("slow");
	}
	else {
		$box.slideUp("slow");
	}
}

function wako_show_lieferadresse(show) {
	if(show == true) {
		$("#formular_lieferadresse").slideDown("fast");
	}
	else {
		$("#formular_lieferadresse").slideUp("fast");
	}
}

// Funktion zum Google Analytics Event Tracking (KM 16.03.2011)
function ga_track_event(ga_category, ga_action, ga_opt_label, target_location) {
	// Wenn Google Analytics Objekt vorhanden, dann Tracken
	if(typeof(pageTracker) != "undefined") {
		// console.log(ga_category + " " + ga_action + " " + ga_opt_label); return false;
		pageTracker._trackEvent(ga_category, ga_action, ga_opt_label);
	}
	// Wenn Location übergeben dann auf diese umleiten
	if(typeof(target_location) != "undefined") {
		setLocation(target_location);
	}
	return false;
}

function burnout_header_init() {
	$("#burnout_header_container").flash({
		src: "http://come-in-and-burn-out.dtv.de/app/DTVARInterviews.swf",
		width: 720,
		height: 540,
		wmode: 'transparent',
		quality: 'high',
		allowscriptaccess: 'sameDomain'
	} ,	{
	 	 update: true
		,version: 10
	} ,	function(htmlOptions) {
			htmlOptions.flashvars.baseURL = "http://come-in-and-burn-out.dtv.de/app/";
			$(this).before($.fn.flash.transform(htmlOptions));
			$("#burnout_header_container").remove();
	});
}
