/* basic i18n class with a dictionary and gettext function */

function I18N() {
	this.dict = new dojo.collections.Dictionary();
	this.gettext = function (msgid) {
		if(this.dict.contains(msgid)) {
			if(this.dict.item(msgid) != "" || this.dict.item(msgid) != "undefined") return this.dict.item(msgid);
			else return msgid;
		}
		else return "NO TRANSLATION for '"+msgid+"'. Add msgid to NEUI18N.js";
	};
}

/* extension of I18N for neu.de, contains the translations */

function NEUI18N() {
	this.base = I18N;
	/* add your js msgid here to have it translated by php's gettext */
	this.dict.add("neuprofile_online_notice", "Du hast Glück!");
this.dict.add("jc_status_standard", "Ich bin anwesend.");
this.dict.add("jc_status_readytoflirt", "Bin zum Flirten aufgelegt.");
this.dict.add("jc_status_dontdisturb", "Bitte nicht stören.");
this.dict.add("jc_visitors_none", "Dein Profil wurde noch nicht besucht");
this.dict.add("jc_fans_none", "Es hat Dich noch niemand als Favorit gespeichert.");
this.dict.add("Friends", "Freunde");
this.dict.add("Favorites", "Favoriten");
this.dict.add("jc_mood", "Stimmung");
this.dict.add("jc_watchprofile", "Profil ansehen");
this.dict.add("jc_sendmessage", "Flirtmessage senden");
this.dict.add("jc_startchat", "Chatten");
this.dict.add("jc_showusergallery", "Fotoalbum anzeigen");
this.dict.add("jc_added_friend_%{user}", "Du hast %{user} als Freund eingeladen.");
this.dict.add("jc_added_favorite_%{user}", "Du hast %{user} als Favorit gespeichert.");
this.dict.add("jc_addtofriends", "Als Freund einladen");
this.dict.add("jc_addtofriends_not_allowed", "Werde Premium-Mitglied, um Freunde einzuladen");
this.dict.add("jc_addtofavorites", "Als Favorit hinzufügen");
this.dict.add("jc_neude_alreadyopened_%{portalname}", "Du hast derzeit mehrere Fenster von %{portalname} geöffnet.<br />Alles, was auf %{portalname} »live« passiert - Nachrichten, Chats, Freunde einladen, Benachrichtigungen über Profilbesuche - kannst Du nur im Hauptfenster nutzen.");
this.dict.add("jc_chatwith_%{user}", "mit %{user} chatten");
this.dict.add("jc_invitation_deny", "Ablehnen");
this.dict.add("jc_invitation_accept", "annehmen");
this.dict.add("jc_showfulllist_%{group}", "Alle %{group} anzeigen");
this.dict.add("jc_hidefulllist_%{group}", "Nur Online-%{group}");
this.dict.add("jc_hide", "ausblenden");
this.dict.add("jc_invitation_denied_%{nick}", "%{nick} hat Deine Einladung abgelehnt.");
this.dict.add("jc_recipientnotexist_%{recipient}", "Die Flirtmessage an %{recipient} konnte nicht zugestellt werden, der Empfänger existiert nicht.");
this.dict.add("jc_listfull_%{no}", "Sorry, Du kannst nur maximal %{no} Freunde und Favoriten speichern. Entferne Freunde oder Favoriten, um neue hinzufügen zu können.");
this.dict.add("jc_friendshipended_%{nick}", "%{nick} hat Dir die Freundschaft gekündigt.");
this.dict.add("available", "online");
this.dict.add("unavailable", "offline");
this.dict.add("jc_noentriesyet_%{group}", "Noch keine %{group}.");
this.dict.add("jc_nobodyonline_%{group}", "Keine %{group} online.");
this.dict.add("jc_bandialog_confirm_%{user}", "Wenn Du JA wählst, kann Dir %{user} keine Nachrichten mehr senden!<br />Möchtest Du das wirklich?");
this.dict.add("jc_cancel", "Abbrechen");
this.dict.add("jc_banwait", "Blocken wird ausgeführt.");
this.dict.add("jc_banuser", "Benutzer blocken");
this.dict.add("jc_notify_abuse_user", "Benutzer melden");
this.dict.add("jc_bansuccess", "Benutzer erfolgreich geblockt.");
this.dict.add("jc_closenow", "schließen");
this.dict.add("jc_deleting_blocked_user", "Blockade dieses Benutzers aufheben.");
this.dict.add("jc_bt_ban_cancel", "Lieber nicht.");
this.dict.add("jc_bt_ban_ok", "Ja!");
this.dict.add("jc_alreadyadded", "Du hast diese Person bereits geblockt.");
this.dict.add("jc_accept_chat", "Chatten");
this.dict.add("jc_deny_chat", "Chat ablehnen");
this.dict.add("jc_xyWantsToChat", "möchte chatten");
this.dict.add("jc_show_profile", "Profil ansehen");
this.dict.add("jc_from", "von");
this.dict.add("jc_showprofileof_%{user}", "Profil von %{user} ansehen");
this.dict.add("zipwidget_no_zip", "Keine gültige Postleitzahl");
this.dict.add("zipwidget_ambiguous_select", "Es gibt mehrere Orte mit diesem Namen. Bitte klicke auf den richtigen Ort in der Liste.");
this.dict.add("zipwidget_zipnotindb", "Die Postleitzahl oder der Ort wurden nicht gefunden");
this.dict.add("jc_alttag_userpic", "[Bild]");
this.dict.add("NuJS_err_tryagain", "Erneut versuchen");
this.dict.add("jc_confirm_yes", "Ja");
this.dict.add("jc_confirm_no", "Nein");
this.dict.add("NEUSearch_js_deleteconfirm_%{search}", "Soll die Suche »%{search}« wirklich gelöscht werden?");
this.dict.add("NuJS_loading", "Ladevorgang…");
this.dict.add("jc_could_not_connect", "Es konnte keine Verbindung zum Server hergestellt werden. Bitte warte kurze Zeit und lade dann die Seite neu.");
this.dict.add("jc_removefriend", "Freundschaft kündigen");
this.dict.add("jc_removefavorite", "Als Favorit entfernen");
this.dict.add("visitors", "Besucher");
this.dict.add("fans", "Fans");
this.dict.add("male", "Mann");
this.dict.add("female", "Frau");
this.dict.add("jc_message_sent_successfully", "Nachricht erfolgreich verschickt.");
this.dict.add("is_required", "Dieses Feld muss ausgefüllt werden.");
this.dict.add("jc_open_message", "Flirtmessage öffnen");
this.dict.add("jc_chat_dlg_closewindow", "Fenster zu");
this.dict.add("jc_mainclosed_%{portalname}", "Dieser Chat läuft nur mit geöffneter Hauptseite von %{portalname}.");
this.dict.add("jc_wronguser_%{portalname}", "Du bist nicht mehr bei %{portalname} eingeloggt.");
this.dict.add("jc_sessionout_%{portalname}", "Du bist nicht mehr bei %{portalname} eingeloggt.");
this.dict.add("quicksearch_agemax_error", "Die Eingabe in maximales Alter ist ungültig. Bitte gib eine Zahl kleiner als 130 ein.");
this.dict.add("quicksearch_agemin_error", "Die Eingabe in minimales Alter ist ungültig. Bitte gib eine Zahl ab 18 ein.");
this.dict.add("quicksearch_age_error", "Das eingegebene Mindestalter ist größer als das maximale Alter.");
this.dict.add("neuevent_bt_filtershow", "Termine anzeigen");
this.dict.add("jc_addedasfriend_explanation_%{friend}", "Du hast %{friend} eingeladen. Wenn %{friend} Deiner Einladung zustimmt, wird %{friend} in Deine Freundesliste aufgenommen.");
this.dict.add("neuevent_zip_or_city_label", "Stadt oder PLZ");
this.dict.add("jc_you_can_only_chat_with_activated_account", "Bitte aktiviere Dein Konto, um chatten und Flirtnachrichten senden zu können.");
this.dict.add("jc_tryreconnect", "Die Verbindung zum Server ist unterbrochen. Wir versuchen sie wieder aufzubauen.");
this.dict.add("jc_nocon_tryagain", "Sorry, der Server ist im momentan nicht erreichbar.");
this.dict.add("jc_retry", "Erneut versuchen");
this.dict.add("jc_user_unblocked_%{user}", "Du hast %{user} von der Liste der blockierten Benutzer entfernt. %{user} kann Dir jetzt wieder Nachrichten senden.");
this.dict.add("bt_title_delete_from_banlist", "von der Liste der geblockten Benutzer löschen");
this.dict.add("link_remove_from_list", "löschen");
this.dict.add("jc_failed_deleting_blocked_user", "Löschen der Person aus der Liste der geblockten Personen ist fehlgeschlagen. Probier’s nochmal.");
this.dict.add("NuJS_err_err_occured", "Ein Fehler ist aufgetreten:");
this.dict.add("NuJS_err_ok", "Abbrechen");
this.dict.add("submit_statement", "Einreichen");
this.dict.add("nick_not_valid", "Kein Empfänger mit diesem Nicknamen vorhanden");
this.dict.add("messageview_showall", "Alle Nachrichten aufklappen");
this.dict.add("messageview_hideall", "Alle Nachrichten zuklappen");
this.dict.add("me", "Ich");
this.dict.add("img_alt_arrowdown_morelink", "auf- und zuklappen");
this.dict.add("jc_sendingmsg", "Flirtnachricht wird versendet…");
this.dict.add("jc_sentmsg", "Flirtmessage versendet");
this.dict.add("chatrequestpane_no_chatrequests", "Momentan möchte niemand mit Dir chatten.<br /><br />An dieser Stelle kannst Du immer alle aktuellen Chat-Anfragen ansehen und annehmen.");
this.dict.add("jc_date_fans", "hat Dich am %{2} um %{3} hinzugefügt");
this.dict.add("jc_date_visitors", "letzter Besuch am %{2} um %{3}");
this.dict.add("jc_openmessage", "Flirtmessage öffnen");
this.dict.add("event_subscriptionresponse_interested", "Dein Interesse wurde vorgemerkt");
this.dict.add("event_subscriptionresponse_attendance", "Deine Eintragung wurde vorgemerkt");
this.dict.add("event_subscriptionresponse_unsubscribe", "Deine Eintragung wurde gelöscht");
this.dict.add("jc_removeuserdialog_confirm_%{user}", "Möchtest Du %{user} wirklich entfernen?");
this.dict.add("jc_bt_removeuser_ok", "Entfernen");
this.dict.add("report_reason_undefined", "Sonstiges");
this.dict.add("report_reason_title", "Was missfällt Dir?");
this.dict.add("not_allowed_to_write_%{name}_%{url}", "Um %{name} eine Nachricht schreiben zu können musst Du Premium-Mitglied werden.");
this.dict.add("jc_uploading_attachment_failed", "Die Nachricht konnte nicht gesendet werden, da der Anhang nicht übertragen werden konnte.");
this.dict.add("jc_uploading_attachment", "Der Anhang wird übertragen und die Nachricht gesendet.");
this.dict.add("jc_bt_ok", "OK");
this.dict.add("messaging_message_has_attachment", "Bild angehängt");
this.dict.add("messaging_attachment_preview", "Vorschau");
this.dict.add("messaging_attachment_show_full", "Bild in voller Größe zeigen");
this.dict.add("jc_you_cannot_chat_with_%{user}", "Du darfst leider nicht mit %{user} chatten.");
this.dict.add("jc_become_certified_or_premium", "Werde geprüftes Mitglied oder Premium-Mitglied.");
this.dict.add("jc_become_premium", "Werde Premium-Mitglied!");
this.dict.add("jc_checking_recipient", "Empfänger wird überprüft…");
this.dict.add("jc_message_notification_forbidden_%{recipient}_%{subject}_%{body}", "Die Nachricht an %{recipient} mit dem Betreff %{subject} konnte nicht zugestellt werden: Du darfst %{recipient} keine Nachrichten senden oder Dein tägliches Nachrichtenlimit ist erreicht.");
this.dict.add("jc_remote_roster_exceeded_notification_%{remote_user}", "Du kannst %{remote_user} momentan nicht einladen, da %{remote_user} schon zu viele Einladungen erhalten hat oder zu viele Freunde hat.");
this.dict.add("jc_roster_exceeded_notification_%{remote_user}", "Du kannst %{remote_user} momentan nicht einladen, da Du zu viele Freunde auf Deiner Liste hast (max. %{MAX_NO_OF_FRIENDS}) oder zu viele unbeantwortete Einladungen.");
this.dict.add("agreement_images_uses_for_cooperations_alert_", "agreement_images_uses_for_cooperations_alert_");
this.dict.add("jc_msg_abuse_completed", "Gemeldet!");
this.dict.add("jc_msg_abuse_popup_desc_%{username}", "Du willst %{username} melden? Wähle im folgenden Auswahlfeld den Grund für Deine Beschwerde aus oder klicke auf »Sonstiges« um einen Text einzugeben.");
this.dict.add("jc_bt_abuse_ok", "Ja!");
this.dict.add("jc_bt_abuse_cancel", "Lieber nicht.");
this.dict.add("jc_doublelogin_boxheader", "ACHTUNG!");
this.dict.add("jc_doublelogin_infotext_", "jc_doublelogin_infotext_");
this.dict.add("quicksearch_age_error_ampexceeded", "Die Werte liegen zu weit auseinander, das maximale Alter wird korrigiert.");
this.dict.add("jc_chat_notification_forbidden", "Du darfst leider keine Nachrichten versenden. Werde Premium-Mitglied, um unbegrenzt zu chatten und Nachrichten zu versenden.");
this.dict.add("jc_addtofavorites_not_allowed", "Du musst dein Konto aktivieren, um Favoriten hinzuzufügen");
this.dict.add("jc_popupblocker_%{portalname}", "<strong>Achtung!</strong><br />Jemand möchte Dir Nachrichten senden, die Du nicht erhalten kannst, da Du Popup-Blocker-Software benutzt. Um %{portalname} nutzen zu können, musst Du den Blocker bzw. die Software für %{portalname} deaktivieren. <a href=\"%{base_url}\" class=\"rightarrowWhiteRight  underline\" rel=\"external\" >Wir helfen Dir auch gerne dabei!</a>");
this.dict.add("neumessaging_person_removed", "Die Person wurde aus Deinen Kontakten entfernt.");
this.dict.add("She", "Sie");
this.dict.add("He", "Er");
this.dict.add("is", "ist");
this.dict.add("neuprofile_offline_notice", "Schade!");
this.dict.add("neuprofile_postcode", "Postleitzahl");
this.dict.add("neuuserprofile_zip_or_city_label", "PLZ (oder Stadt)");
this.dict.add("neustats_welcome", "Wähle das gewünschte Diagramm aus und klicke auf »Erstellen«, um es anzuzeigen.");
this.dict.add("neustats_view", "Ansicht");
this.dict.add("neustats_name_choose", "Bitte wählen…");
this.dict.add("neustats_name_bar", "Balkendiagramm");
this.dict.add("neustats_name_pie", "Tortendiagramm");
this.dict.add("neustats_name_table", "Tabelle");
this.dict.add("neustats_view_not_available", "Keine Auswahl möglich");
this.dict.add("neustats_error_out_of_range", "Statistiken für diesen Zeitraum sind nicht verfügbar. Bitte ändere Deine Auswahl!");
this.dict.add("neustats_error_larger_than_end", "Das Enddatum Deines Zeitraums liegt vor dem Startdatum. Bitte ändere Deine Auswahl!");
this.dict.add("neustats_error_general", "Statistik kann nicht erstellt werden.<br />Bitte überprüfe Deine Auswahl!");
}

NEUI18N.prototype = new I18N;
var NEUI18N = new NEUI18N();
function NuPostcodeWidget(){
 this.busy=false;
 this.current_check=false;
 this.subform=false;
 this.quicksearch=false;
 this.zip_selected=false;
 this.check=function(_1){
 if(this.busy){
 return false;
 }
 var pa=dojo.string.trim(document.getElementById("zip").value);
 loading_tools.setInputElementLoadingStatus("zip",1);
 if(_1){
 this.subform=_1;
 }else{
 this.subform=false;
 }
 var _3=dojo.string.trim(document.getElementById("country").value);
 if(pa==""){
 if(this.quicksearch){
 showInlinePopupError(dojo.byId("zip"),dojo.byId("zipresult"),NEUI18N.gettext("zipwidget_no_zip"));
 }else{
 document.getElementById("zipresult").innerHTML=NEUI18N.gettext("zipwidget_no_zip");
 toggleElement(dojo.byId("zipresult"),1,300);
 }
 if(this.subform){
 showInlinePopupError(dojo.byId("zip"),dojo.byId("zipresult"),NEUI18N.gettext("zipwidget_no_zip"));
 }
 loading_tools.setInputElementLoadingStatus("zip",0);
 return;
 }
 if(dojo.lang.inArray(dojo.byId("country").value,countries_in_db)){
 this.current_check=false;
 if(!isNaN(pa)){
 this.current_check=pa;
 }
 var _4=encodeURI(base_url+"/api/findcitywithcountry/"+_3+"/"+pa+"/JSON");
 var _5={url:_4,method:"POST",error:function(_6,_7){
 this.busy=false;
 if(dojo.string.has(_7.message,"404")){
 showInlinePopupError(dojo.byId("zip"),dojo.byId("zipresult"),NEUI18N.gettext("zipwidget_no_zip"));
 }
 loading_tools.setInputElementLoadingStatus("zip",0);
 NEUXHRErrHandler.handle(_6,_7,_5);
 },load:function(_8,_9,_a){
 this.busy=true;
 NuPostcodeWidget.zipResponse(_8,_9,_a);
 },mimetype:"text/plain"};
 dojo.io.bind(_5);
 }
 };
 this.setActive=function(_b,_c,_d){
 if(_c.length==4&&_d=="DE"){
 _c="0"+_c;
 }
 dojo.byId("zipresult").style.display="none";
 document.getElementById("zip").value=_c;
 document.getElementById("main_zip").value=_c;
 document.getElementById("country").value=_d;
 var _e=document.getElementById("city");
 if(_e){
 _e.value=_b;
 }
 this.zip_selected=true;
 };
 this.zipResponse=function(_f,_10,evt){
 var _12=eval("("+_10+")");
 if(_12.length){
 var _13="";
 if(_12.length==1){
 if(this.current_check){
 myzip=this.current_check;
 }else{
 myzip=_12[0]["main_zip"];
 }
 var _14=document.getElementById("city");
 if(_14){
 _14.value=_12[0]["city"];
 }
 document.getElementById("zip").value=myzip;
 document.getElementById("main_zip").value=_12[0]["main_zip"];
 document.getElementById("country").value=_12[0]["countrycode"];
 document.getElementById("latitude").value=_12[0]["latitude"];
 document.getElementById("longitude").value=_12[0]["longitude"];
 this.zip_selected=true;
 if(this.subform){
 this.subform.submit();
 }else{
 if(this.quicksearch){
 dojo.byId("zipresult").style.visibility="hidden";
 }else{
 toggleElement(dojo.byId("zipresult"),0,300);
 }
 }
 }else{
 this.zip_selected=false;
 for(var c=0;c<_12.length;c++){
 _13+="<ul>";
 _13+="<li><a style=\"display:block;width:100%;\" href=\"#\" onclick=\"NuPostcodeWidget.setActive('"+_12[c]["city"]+"', '"+_12[c]["main_zip"]+"', '"+_12[c]["countrycode"]+"'); return false;\">"+_12[c]["city"]+" ("+_12[c]["main_zip"]+")</a></li>";
 _13+="</ul>";
 }
 if(this.quicksearch){
 showInlinePopupError(dojo.byId("zip"),dojo.byId("zipresult"),NEUI18N.gettext("zipwidget_ambiguous_select")+"<br/><br/>"+_13);
 }else{
 document.getElementById("zipresult").innerHTML=NEUI18N.gettext("zipwidget_ambiguous_select")+"<br/>"+_13;
 toggleElement(dojo.byId("zipresult"),1,300);
 }
 }
 }else{
 this.zip_selected=false;
 if(this.quicksearch){
 showInlinePopupError(dojo.byId("zip"),dojo.byId("zipresult"),NEUI18N.gettext("zipwidget_zipnotindb"));
 }else{
 document.getElementById("zipresult").innerHTML=NEUI18N.gettext("zipwidget_zipnotindb");
 toggleElement(dojo.byId("zipresult"),1,300);
 }
 }
 loading_tools.setInputElementLoadingStatus("zip",0);
 this.busy=false;
 };
 dojo.event.connect(window,"onload",function(){
 if(dojo.byId("quicksearch")){
 NuPostcodeWidget.quicksearch=true;
 }
 });
 }
 var NuPostcodeWidget=new NuPostcodeWidget();
 function NuSlideshow(){
 this.step;
 this.speed;
 this.scrollwidthneg;
 this.scrollwidth;
 this.scrollheight;
 this.scroller1;
 this.scroller2;
 this.scrollers;
 this.active;
 this.pause;
 this.imgcount;
 this.imgelwidth;
 this.scroll=function(){
 if(!this.pause){
 for(var i=0;i<this.scrollers.length;i++){
 var _17=parseInt(this.scrollers[i].style.left);
 this.scrollers[i].style.left=_17-this.step+"px";
 if(_17<this.scrollwidthneg){
 this.scrollers[i].style.left=this.scrollwidth+"px";
 }
 }
 }
 window.setTimeout("slideshow.scroll()",this.speed);
 };
 this.stop=function(){
 this.pause=true;
 };
 this.play=function(){
 this.pause=false;
 };
 this.init=function(_18,_19,_1a,_1b,_1c,_1d){
 this.step=_1a?_1a:1;
 this.speed=_1b?_1b:40;
 this.imgcount=_1d?_1d:10;
 this.imgelwidth=_1c?_1c:109;
 var _1e=dojo.html.getContentBox(dojo.byId(_19));
 this.scrollwidth=this.imgelwidth*this.imgcount;
 this.scrollheight=_1e.height*-1;
 this.scrollwidthneg=this.scrollwidth*-1;
 document.getElementById("scroller").style.left="0px";
 this.scroller1=document.getElementById("scroller");
 this.scroller1.style.width=this.scrollwidth+"px";
 this.scroller2=this.scroller1.cloneNode(true);
 this.scroller1.parentNode.appendChild(this.scroller2);
 with(this.scroller2){
 style.width=this.scrollwidth+"px";
 style.overflow="hidden";
 style.position="relative";
 style.top=this.scrollheight+"px";
 style.left=this.scrollwidth+"px";
 setAttribute("id","scroller2");
 }
 this.scrollers=new Array(this.scroller1,this.scroller2);
 var _1f=dojo.byId(_18);
 dojo.event.connect(_1f,"onmouseover",function(){
 slideshow.stop();
 });
 dojo.event.connect(_1f,"onmouseout",function(){
 slideshow.play();
 });
 this.pause=false;
 this.scroll();
 };
 }
 var slideshow=new NuSlideshow();
 function createCookie(_20,_21,_22){
 if(_22){
 var _23=new Date();
 _23.setTime(_23.getTime()+(_22*1000));
 var _24="; expires="+_23.toGMTString();
 }else{
 var _24="";
 }
 document.cookie=_20+"="+_21+_24+"; path=/";
 }
 function readCookie(_25){
 var _26=_25+"=";
 var ca=document.cookie.split(";");
 for(var i=0;i<ca.length;i++){
 var c=ca[i];
 while(c.charAt(0)==" "){
 c=c.substring(1,c.length);
 }
 if(c.indexOf(_26)==0){
 return c.substring(_26.length,c.length);
 }
 }
 return null;
 }
 function eraseCookie(_2a){
 createCookie(_2a,"",-1);
 }
 function NEUDojoXHRErrorHandler(){
 this.bindArgs=new dojo.collections.Dictionary();
 this.dialogs=new dojo.collections.Dictionary();
 this.handle=function(_2b,_2c,_2d){
 NuLoadingScreen.hide();
 var uid=Date.parse(new Date());
 this.bindArgs.add(uid,_2d);
 if(dojo.string.has(_2c.message,"403")){
 if(stopJabberClient){
 stopJabberClient();
 }
 location.href=base_url+"/login/"+USER_GENDER+"session-out";
 }else{
 if(JS_XHR_ERRORS){
 var msg=NEUI18N.gettext("NuJS_err_err_occured")+": "+_2c.message;
 var _30=new Array();
 _30[0]=new Array(NEUI18N.gettext("NuJS_err_tryagain"),"NEUXHRErrHandler.dialogs.item('"+uid+"').hide(); dojo.io.bind(NEUXHRErrHandler.bindArgs.item('"+uid+"'))","redonlight");
 _30[1]=new Array(NEUI18N.gettext("NuJS_err_ok"),"","greyonlight");
 var _31=new NuLightboxDialog(msg,_30);
 this.dialogs.add(uid,_31);
 }
 }
 };
 }
 var NEUXHRErrHandler=new NEUDojoXHRErrorHandler();
 global_dialogs=new dojo.collections.Dictionary();
 dojo.require("dojo.widget.Dialog");
 function getNuDialogBox(msg){
 return "<div class=\"NuDialogHeader\"></div><div class=\"NuDialog\">"+msg+"</div><div class=\"NuDialogFooter\"></div>";
 }
 function NuLightboxDialog(msg,_34){
 this.name;
 this.getButtons=function(_35){
 var msg="";
 msg+="<br/><br/><div style=\"text-align:right\">";
 for(var i=0;i<_35.length;i++){
 msg+="<div class=\"submitbutton\" style=\"padding-right: 0;display:inline;\"><input type=\"submit\" class=\"button "+_35[i][2]+"\" value=\""+_35[i][0]+"\" id=\"dialog_option_"+i+"\" onclick=\"";
 if(_35[i][1]){
 msg+=_35[i][1]+";";
 }
 if(!_35[i][1]){
 msg+="global_dialogs.item('"+this.name+"').hide();";
 }
 msg+="\" /></div>";
 if(i!=_35.length-1){
 msg+="&#160;&#160;";
 }
 }
 msg+="</div><br class=\"visualClear\" />";
 return msg;
 };
 this.update=function(msg,_39){
 var msg=msg;
 if(_39){
 msg+=this.getButtons(_39);
 }
 global_dialogs.item(this.name).setContent(getNuDialogBox(msg));
 buttonEndings();
 };
 this.hide=function(){
 global_dialogs.item(this.name).hide();
 };
 this.show=function(){
 global_dialogs.item(this.name).show();
 };
 this.destroy=function(){
 global_dialogs.item(this.name).destroy();
 };
 this.name=Date.parse(new Date());
 var _3a=dojo.widget.createWidget("dojo:Dialog",{bgcolor:"white",bgOpacity:0.4,toggle:"fade",toggleDuration:250});
 global_dialogs.add(this.name,_3a);
 if(_34){
 var msg=msg+=this.getButtons(_34);
 }
 global_dialogs.item(this.name).setContent(getNuDialogBox(msg));
 document.body.appendChild(global_dialogs.item(this.name).domNode);
 buttonEndings();
 global_dialogs.item(this.name).show();
 return this;
 }
 function NuLightboxLoadingScreen(){
 this.dialog;
 this.show=function(msg){
 if(this.dialog){
 this.dialog.hide();
 this.dialog.destroy();
 }
 this.dialog=dojo.widget.createWidget("dojo:Dialog",{bgcolor:"white",bgOpacity:0.4,toggle:"fade",toggleDuration:250});
 if(!msg){
 var msg=NEUI18N.gettext("NuJS_loading");
 }
 msg+="<br/><br/><div style=\"text-align: center\"><img src=\"/static/js/lightbox/images/loading.gif\" alt=\""+NEUI18N.gettext("NuJS_loading")+"\" /></div>";
 this.dialog.setContent(getNuDialogBox(msg));
 document.body.appendChild(this.dialog.domNode);
 this.dialog.show();
 };
 this.hide=function(){
 if(this.dialog){
 this.dialog.hide();
 this.dialog.destroy();
 this.dialog=false;
 }
 };
 }
 var NuLoadingScreen=new NuLightboxLoadingScreen();
 function sessionRelocate(url){
 var i=1;
 var _3e=new Object();
 while(i<sessionRelocate.arguments.length){
 _3e[sessionRelocate.arguments[i]]=sessionRelocate.arguments[i+1];
 i=i+2;
 }
 _3e["uniqId"]=UNIQ_ID;
 var _3f=encodeURI(base_url+"/api/setsession/JSON");
 dojo.io.bind({url:_3f,method:"post",content:_3e,error:function(_40,_41){
 window.location.href=url;
 return true;
 },load:function(_42,_43,evt){
 window.location.href=url;
 },mimetype:"text/plain"});
 }
 function getImageDir(_45){
 var res="";
 res+="vcard/"+_45+"/";
 return res;
 }
 function NuInlinePopup(_47,pos){
 this.shadow;
 this.mnode;
 this.ieHackSetSelects=function(_49){
 var pos=dojo.html.getAbsolutePosition(this.mnode,true);
 var _4b=pos.x;
 var _4c=pos.y;
 var _4d=dojo.html.getContentBox(this.mnode);
 var _4e=_4b+_4d.width;
 var _4f=_4c+_4d.height;
 if(dojo.render.html.ie&&!dojo.render.html.ie70){
 var _50=document.getElementsByTagName("SELECT");
 for(var i=0;i<_50.length;i++){
 var _52=dojo.html.getAbsolutePosition(_50[i],true);
 if(((_4b<_52.x)&&(_52.x<_4e)&&((_4c<_52.y)&&(_52.y<_4f)))){
 _50[i].style.visibility=_49;
 }
 }
 }
 };
 this.close=function(){
 this.mnode.style.visibility="hidden";
 this.ieHackSetSelects("visible");
 };
 this.setPos=function(pos){
 this.mnode.style.left=pos.x+"px";
 this.mnode.style.top=pos.y+"px";
 };
 this.setShadow=function(){
 this.shadow=new dojo.lfx.shadow(_47);
 this.shadow.size(dojo.html.getBorderBox(this.mnode).width,dojo.html.getBorderBox(this.mnode).height);
 };
 this.show=function(){
 this.ieHackSetSelects("hidden");
 dojo.html.setDisplay(this.mnode,true);
 dojo.html.setOpacity(this.mnode,true);
 dojo.html.setVisibility(this.mnode,true);
 this.setShadow();
 };
 this.setContent=function(_54){
 this.mnode.innerHTML=_54;
 };
 this.mnode=_47;
 if(pos){
 this.setPos(pos);
 }
 return this;
 }
 function showInlinePopupError(_55,_56,err){
 if((location.href.indexOf("/mout")!=-1)||(location.href.indexOf("/wout")!=-1)){
 _56.style.left=dojo.html.getAbsolutePosition(_55,true).left+dojo.html.getContentBox(_55).width-245+"px";
 _56.style.top=dojo.html.getAbsolutePosition(_55,true).top-21+"px";
 }else{
 _56.style.left=dojo.html.getAbsolutePosition(_55,true).left+dojo.html.getContentBox(_55).width+10+"px";
 _56.style.top=dojo.html.getAbsolutePosition(_55,true).top-4+"px";
 }
 var tmp=new NuInlinePopup(_56);
 if(err){
 tmp.setContent(err);
 }
 tmp.show();
 return tmp;
 }
 function killCache(_59){
 var _5a=encodeURI(base_url+"/api/killcache/"+_59+"/JSON");
 dojo.io.bind({url:_5a,method:"POST",content:{uniqId:UNIQ_ID},error:function(_5b,_5c){
 NEUXHRErrHandler.handle(_5b,_5c,bindArgs);
 },mimetype:"text/plain"});
 }
 function toggleButton(_5d,_5e,_5f,_60,_61){
 node=dojo.byId(_5d);
 currclass=dojo.html.getClass(node);
 if(currclass==_5e){
 dojo.html.removeClass(node,_5e,true);
 dojo.html.addClass(node,_5f);
 node.innerHTML=_61;
 }else{
 dojo.html.removeClass(node,_5f,true);
 dojo.html.addClass(node,_5e);
 node.innerHTML=_60;
 }
 }
 function toggleElement(_62,_63,_64){
 if(_63==1){
 dojo.html.setDisplay(_62,"block");
 dojo.lfx.html.fadeShow(_62,_64).play();
 }else{
 dojo.lfx.html.fadeHide(_62,_64).play();
 dojo.html.setDisplay(_62,false);
 }
 }
 function copyArray(arr){
 var _66=new Array();
 for(var i=0;i<arr.length;i++){
 _66.push(arr[i]);
 }
 return _66;
 }
 function NuLoadingTools(){
 this.setInputElementLoadingStatus=function(_68,_69){
 var _6a=dojo.byId(_68);
 if(!_6a){
 return;
 }
 if(_69==1){
 dojo.html.addClass(_6a,"loading-state");
 }else{
 dojo.html.removeClass(_6a,"loading-state");
 }
 };
 this.setTextareaElementLoadingStatus=function(_6b,_6c){
 var _6d=dojo.byId(_6b);
 if(!_6d){
 return;
 }
 if(_6c==1){
 dojo.html.addClass(_6d,"loading-state-bigwheel");
 }else{
 dojo.html.removeClass(_6d,"loading-state-bigwheel");
 }
 };
 this.setSubmitButtonLoadingStatus=function(_6e,_6f,msg){
 var _71=dojo.byId(_6e);
 if(!_71){
 return;
 }
 var _72=dojo.byId("submit-loading-info");
 if(_6f==1){
 if(_72){
 return;
 }
 var _73=document.createElement("div");
 _73.setAttribute("id","submit-loading-info");
 _73.className="submit-loading-info";
 _73.innerHTML=msg;
 var _74=_71.nextSibling&&dojo.html.hasClass("buttonEnding",_71.nextSibling)?_71.nextSibling:_71;
 dojo.dom.insertAfter(_73,_74);
 }else{
 if(_72){
 _72.parentNode.removeChild(_72);
 }
 }
 };
 }
 var loading_tools=new NuLoadingTools();
 var JSTarget={init:function(att,val,_77){
 if(document.getElementById&&document.createElement&&document.appendChild){
 var _78=((typeof att=="undefined")||(att==null))?"class":att;
 var _79=((typeof val=="undefined")||(val==null))?"non-html":val;
 var _7a=((typeof _77=="undefined")||(_77==null))?" (opens in a new window)":_77;
 var _7b;
 var _7c=document.getElementsByTagName("a");
 var _7d;
 var _7e=new RegExp("(^|\\s)"+_79+"(\\s|$)");
 for(var i=0;i<_7c.length;i++){
 _7d=_7c[i];
 if((_78=="class")&&(_7e.test(_7d.className))||(_7e.test(_7d.getAttribute(_78)))){
 _7b=document.createElement("em");
 _7b.appendChild(document.createTextNode(_7a));
 _7d.appendChild(_7b);
 _7d.onclick=JSTarget.openWin;
 }
 _7b=null;
 }
 }
 },openWin:function(e){
 var _81=(!e)?window.event:e;
 if(_81.shiftKey||_81.altKey||_81.ctrlKey||_81.metaKey){
 return true;
 }else{
 var _82=window.open(this.getAttribute("href"),"_blank");
 if(_82){
 if(_82.focus){
 _82.focus();
 }
 return false;
 }
 _82=null;
 return true;
 }
 },addEvent:function(obj,_84,fn){
 if(obj.addEventListener){
 obj.addEventListener(_84,fn,false);
 }else{
 if(obj.attachEvent){
 obj["e"+_84+fn]=fn;
 obj[_84+fn]=function(){
 obj["e"+_84+fn](window.event);
 };
 obj.attachEvent("on"+_84,obj[_84+fn]);
 }
 }
 }};
 JSTarget.addEvent(window,"load",function(){
 JSTarget.init("rel","external","");
 });
 function NuTools(){
 }
 function NEUTools(){
 this.alert_messages=new function(){
 this.counter=1;
 this.showAlertMsg=function(msg,_87,ttl){
 var _89=dojo.byId("msgAlert");
 if(!_89){
 return false;
 }
 _89.innerHTML=msg;
 var _87=_87?_87:"watchout";
 dojo.html.setClass(_89,"alert-message-"+_87);
 dojo.html.setDisplay(_89,1);
 dojo.lfx.html.fadeShow(_89,100).play();
 var _8a=dojo.html.getAbsolutePosition(_89,false).y;
 if(_8a<0){
 location.href="#msgAlert";
 }
 if(ttl){
 window.setTimeout(function(){
 NEUTools.alert_messages.hideAlertMsg();
 },ttl*1000);
 }
 };
 this.hideAlertMsg=function(){
 var _8b=dojo.byId("msgAlert");
 if(!_8b){
 return false;
 }
 dojo.html.className="alert-message";
 dojo.lfx.html.fadeHide(_8b,100).play();
 };
 this.checkDisplayStatus=function(){
 var _8c=dojo.byId("msgAlert");
 if(!_8c){
 return false;
 }
 if(_8c.style.display=="none"){
 return false;
 }else{
 return true;
 }
 };
 this.addAdditionalAlertMsg=function(msg,_8e){
 var _8f=dojo.byId("msgAlert");
 if(!_8f){
 return false;
 }
 var _8e=_8e?_8e:"watchout";
 var _90=_8f.cloneNode(true);
 _90.className="alert-message  alert-message-"+_8e;
 _90.innerHTML=msg;
 _90.setAttribute("id","msgAlert"+String(this.counter));
 dojo.dom.insertAfter(_90,_8f);
 dojo.html.setDisplay(_90,1);
 dojo.lfx.html.fadeShow(_90,300).play();
 this.counter++;
 };
 };
 }
 NEUTools.prototype=new NuTools();
 NEUTools=new NEUTools();
 function getElementsByClass(_91,_92,tag){
 var _94=new Array();
 if(_92==null){
 _92=document;
 }
 if(tag==null){
 tag="*";
 }
 var els=_92.getElementsByTagName(tag);
 var _96=els.length;
 var _97=new RegExp("(^|\\s)"+_91+"(\\s|$)");
 for(i=0,j=0;i<_96;i++){
 if(_97.test(els[i].className)){
 _94[j]=els[i];
 j++;
 }
 }
 return _94;
 }
 function insertAfter(_98,_99){
 var _9a=_99.parentNode;
 if(_9a.lastChild==_99){
 _9a.appendChild(_98);
 }else{
 _9a.insertBefore(_98,_99.nextSibling);
 }
 }
 function buttonEndings(){
 if(dojo.render.html.safari){
 var tmp=dojo.render.html.UA.split("AppleWebKit/")[1];
 var ver=parseFloat(tmp.split(" ")[0]);
 if(ver>=420){
 gt420=true;
 }
 }
 if((dojo.render.html.safari&&!gt420)||navigator.vendor=="Camino"){
 return false;
 }
 if(!document.getElementsByTagName){
 return false;
 }
 var _9d=getElementsByClass("button");
 for(i=0;i<_9d.length;i++){
 var div=document.createElement("div");
 var _9f=_9d[i].className.split(" ");
 div.className="buttonEnding"+" "+_9f[1]+"right";
 insertAfter(div,_9d[i]);
 }
 }
 dojo.event.connect(window,"onload","buttonEndings");
 
