// AB: Kleiderschrank aus Flash anzeigen
function zeigekleiderschrank() {
	alert("TODO: Parameter an Akkordeon mitgeben (Language,Parameters");
}

// TB 09. Juli 2009
function popup_kleiderschrank (sprache,params) {
    if (sprache == "" || sprache == "de") {
        url = "/" + sprache + "/creativestudio/kleiderschrank/kleiderschrank.html?lang=" + sprache;
    } else {
        if (sprache == "nl") {
            url = "/" + sprache + "/creativestudio/klerenkast/klerenkast.html?lang=" + sprache;
        }
        if (sprache == "dk") {
            url = "/" + sprache + "/creative-studio/kl-deskab/kl-deskab.html?lang=" + sprache;
        }
        if (sprache == "fi") {
            url = "/" + sprache + "/creative-studio/vaatekaappi/vaatekaappi.html?lang=" + sprache;
        }
        if (sprache == "se") {
            url = "/" + sprache + "/creativestudio/klaedsk-p/klaedsk-p.html?lang=" + sprache;
        }
        if (sprache == "fr") {
            url = "/" + sprache + "/studio-de-cr-ation/garde-robe/garde-robe.html?lang=" + sprache;
        }
        if (sprache == "en") {
            url = "/" + sprache + "/creative-studio/wardrobe/wardrobe.html?lang=" + sprache;
        }
        if (sprache == "es") {
            url = "/" + sprache + "/creative-studio/tu-armario/tu-armario.html?lang=" + sprache;
        }
        if (sprache == "it") {
        	url = "/" + sprache + "/creativestudio/armadio/armadio.html?lang=" + sprache;
        }
        if (sprache == "no") {
        	//url = "/" + sprache + "/creativestudio/armadio/armadio.html?lang=" + sprache;
        	alert('TODO: Sprache NO in functions.js noch nicht eingerichtet.');
        }
    }
    
    if (params != "" && params != 'undefined')
        url += "&"+params;

    
    if (sprache == "nl") {
        fensterKleiderschrank = window.open(url, "klerenkast", "width=990, height=640");
        fensterKleiderschrank.focus();
    }
    else
    if (sprache == "dk") {
        fensterKleiderschrank = window.open(url, "kldeskab", "width=990, height=640");
        fensterKleiderschrank.focus();
    } 
    else
    if (sprache == "fi") {
        fensterKleiderschrank = window.open(url, "vaatekaappi", "width=990, height=640");
        fensterKleiderschrank.focus();
    }
    else
    if (sprache == "se") {
        fensterKleiderschrank = window.open(url, "klaedskp", "width=990, height=640");
        fensterKleiderschrank.focus();
    }
    else
    if (sprache == "fr") {
    	fensterKleiderschrank = window.open(url, "garderobe", "width=990, height=640");
        fensterKleiderschrank.focus();
    }
    else
    if (sprache == "en") {
      	fensterKleiderschrank = window.open(url, "wardrobe", "width=990, height=640");
        fensterKleiderschrank.focus();
    }
    else
    if (sprache == "it") {
      	fensterKleiderschrank = window.open(url, "armadio", "width=990, height=640");
        fensterKleiderschrank.focus();
    }
    else
    if (sprache == "es") {
        fensterKleiderschrank = window.open(url, "tuarmario", "width=990, height=640");
        fensterKleiderschrank.focus();
    }
    else
    if (sprache == "no") {
    	alert('TODO: Sprache NO in functions.js noch nicht eingerichtet.');
        //fensterKleiderschrank = window.open(url, "tuarmario", "width=990, height=640");
        //fensterKleiderschrank.focus();
    }
    else {
        fensterKleiderschrank = window.open(url, "kleiderschrank", "width=990, height=640");
        fensterKleiderschrank.focus();
    }
    //return false;
}

function kleiderschrank_kommentar_linkToAuthor(username,userid){
    url = translationSite('/de/community/profil_von_','links')+username+translationSite('/anschauen.html','links')+"?userid="+userid;
    //alert(url);
    window.opener.location.href = url;
}

function kleiderschrank_linkToAnmeldung(page){
    url = page;
    window.opener.location.href = url;
    window.close();
}
