/* 
js
main
2021-01-11 15:39:30
 */

/*  json2.js  */ 
/* @ignoreCompress */
typeof JSON!="object"&&(JSON={}),function(){"use strict";function f(e){return e<10?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return typeof t=="string"?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,r,i,s,o=gap,u,a=t[e];a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(e)),typeof rep=="function"&&(a=rep.call(t,e,a));switch(typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";gap+=indent,u=[];if(Object.prototype.toString.apply(a)==="[object Array]"){s=a.length;for(n=0;n<s;n+=1)u[n]=str(n,a)||"null";return i=u.length===0?"[]":gap?"[\n"+gap+u.join(",\n"+gap)+"\n"+o+"]":"["+u.join(",")+"]",gap=o,i}if(rep&&typeof rep=="object"){s=rep.length;for(n=0;n<s;n+=1)typeof rep[n]=="string"&&(r=rep[n],i=str(r,a),i&&u.push(quote(r)+(gap?": ":":")+i))}else for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(i=str(r,a),i&&u.push(quote(r)+(gap?": ":":")+i));return i=u.length===0?"{}":gap?"{\n"+gap+u.join(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}",gap=o,i}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(e,t,n){var r;gap="",indent="";if(typeof n=="number")for(r=0;r<n;r+=1)indent+=" ";else typeof n=="string"&&(indent=n);rep=t;if(!t||typeof t=="function"||typeof t=="object"&&typeof t.length=="number")return str("",{"":e});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(e,t){var n,r,i=e[t];if(i&&typeof i=="object")for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r=walk(i,n),r!==undefined?i[n]=r:delete i[n]);return reviver.call(e,t,i)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()
;
;

/*  jquery.base64.js  */ 
/*!
 * jquery.base64.js 0.0.3 - https://github.com/yckart/jquery.base64.js
 * Makes Base64 en & -decoding simpler as it is.
 *
 * Based upon: https://gist.github.com/Yaffle/1284012
 *
 * Copyright (c) 2012 Yannick Albert (http://yckart.com)
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php).
 * 2013/02/10
 **/
;(function($){var b64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a256='',r64=[256],r256=[256],i=0;var UTF8={encode:function(strUni){var strUtf=strUni.replace(/[\u0080-\u07ff]/g,function(c){var cc=c.charCodeAt(0);return String.fromCharCode(0xc0|cc>>6,0x80|cc&0x3f);}).replace(/[\u0800-\uffff]/g,function(c){var cc=c.charCodeAt(0);return String.fromCharCode(0xe0|cc>>12,0x80|cc>>6&0x3F,0x80|cc&0x3f);});return strUtf;},decode:function(strUtf){var strUni=strUtf.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(c){var cc=((c.charCodeAt(0)&0x0f)<<12)|((c.charCodeAt(1)&0x3f)<<6)|(c.charCodeAt(2)&0x3f);return String.fromCharCode(cc);}).replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(c){var cc=(c.charCodeAt(0)&0x1f)<<6|c.charCodeAt(1)&0x3f;return String.fromCharCode(cc);});return strUni;}};while(i<256){var c=String.fromCharCode(i);a256+=c;r256[i]=i;r64[i]=b64.indexOf(c);++i;}
function code(s,discard,alpha,beta,w1,w2){s=String(s);var buffer=0,i=0,length=s.length,result='',bitsInBuffer=0;while(i<length){var c=s.charCodeAt(i);c=c<256?alpha[c]:-1;buffer=(buffer<<w1)+c;bitsInBuffer+=w1;while(bitsInBuffer>=w2){bitsInBuffer-=w2;var tmp=buffer>>bitsInBuffer;result+=beta.charAt(tmp);buffer^=tmp<<bitsInBuffer;}
++i;}
if(!discard&&bitsInBuffer>0)result+=beta.charAt(buffer<<(w2-bitsInBuffer));return result;}
var Plugin=$.base64=function(dir,input,encode){return input?Plugin[dir](input,encode):dir?null:this;};Plugin.btoa=Plugin.encode=function(plain,utf8encode){plain=Plugin.raw===false||Plugin.utf8encode||utf8encode?UTF8.encode(plain):plain;plain=code(plain,false,r256,b64,8,6);return plain+'===='.slice((plain.length%4)||4);};Plugin.atob=Plugin.decode=function(coded,utf8decode){coded=String(coded).split('=');var i=coded.length;do{--i;coded[i]=code(coded[i],true,r64,a256,6,8);}while(i>0);coded=coded.join('');return Plugin.raw===false||Plugin.utf8decode||utf8decode?UTF8.decode(coded):coded;};}(jQuery));;;

/*  mw.tools.js  */ 
String.prototype.format=function(){var args=arguments;return this.replace(/{(\d+)}/g,function(match,name){return name in args&&typeof args[name]?args[name]:match;});};function Clone(){}
function clone(obj){Clone.prototype=obj;return new Clone();}
function isFunction(functionToCheck){var getType={};return functionToCheck&&getType.toString.call(functionToCheck)=='[object Function]';}
function isArray(input){return typeof(input)=='object'&&(input instanceof Array);}
function mergeObjects(a,b,overwrite){for(var k in b){if(overwrite==undefined&&k in a){continue;}
a[k]=b[k];}
return a;}
function in_array(needle,haystack,argStrict){var key='',strict=!!argStrict;if(strict){for(key in haystack){if(haystack[key]===needle){return true;}}}else{for(key in haystack){if(haystack[key]==needle){return true;}}}
return false;}
if(!('contains'in String.prototype)){String.prototype.contains=function(str,startIndex){return-1!==String.prototype.indexOf.call(this,str,startIndex);};}
function paginationControlAsFormSubmit($controlClass,formId){var $form=jQuery('#'+formId);var $formPageField=jQuery('[name="page"]',$form);if($formPageField.length==0){$formPageField=jQuery('<input type="hidden" name="page" value="1" />');$form.append($formPageField);}
var $paginationControl=jQuery('.'+$controlClass);var $navItems=jQuery('li a',$paginationControl);$navItems.click(function(){var linkTarget=jQuery(this).attr('href');linkTarget=linkTarget.split('/');var page=1;for(var i=0;i<linkTarget.length;i++){if(linkTarget[i]=='page'){if(linkTarget[i+1]!=null){page=linkTarget[i+1];}}}
$formPageField.val(page);$form[0].submit();return false;});}
(function(jQuery,sr){var debounce=function(func,threshold,execAsap){var timeout=0;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap)
func.apply(obj,args);timeout=null;};if(timeout)
clearTimeout(timeout);else if(execAsap)
func.apply(obj,args);timeout=setTimeout(delayed,threshold||100);};};jQuery.fn[sr]=function(fn){return fn?this.bind('resize.smart',debounce(fn)):this.trigger(sr);};})(jQuery,'smartresize');(function(jQuery,sr){var debounce=function(func,threshold,execAsap){var timeout=0;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap)
func.apply(obj,args);timeout=null;};if(timeout)
clearTimeout(timeout);else if(execAsap)
func.apply(obj,args);timeout=setTimeout(delayed,threshold||100);};};jQuery.fn[sr]=function(fn,threshold,execAsap){return fn?this.bind('scroll.smart',debounce(fn,threshold,execAsap)):this.trigger(sr);};})(jQuery,'smartscroll');(function(jQuery){jQuery.fn.extend({center:function(POSITION){return this.each(function(){var top=(jQuery(window).height()-jQuery(this).outerHeight())/ 2;var left=(jQuery(window).width()-jQuery(this).outerWidth())/ 2;if(typeof POSITION=="undefined"){POSITION="absolute";}
jQuery(this).css({position:POSITION,margin:0,top:(top>0?top:0)+'px',left:(left>0?left:0)+'px'});});}});})(jQuery)
/*!
 * jquery.scrollto.js 0.0.1 - https://github.com/yckart/jquery.scrollto.js
 * Scroll smooth to any element in your DOM.
 *
 * Copyright (c) 2012 Yannick Albert (http://yckart.com)
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php).
 * 2013/02/17
 **/
;jQuery.scrollTo=jQuery.fn.scrollTo=function(x,y,options){if(!(this instanceof jQuery))return jQuery.fn.scrollTo.apply(jQuery('html, body'),arguments);options=jQuery.extend({},{gap:{x:0,y:0},animation:{easing:'swing',duration:600,complete:jQuery.noop,step:jQuery.noop}},options);return this.each(function(){var elem=jQuery(this);elem.stop().animate({scrollLeft:!isNaN(Number(x))?x:jQuery(y).offset().left+options.gap.x,scrollTop:!isNaN(Number(y))?y:jQuery(y).offset().top+options.gap.y},options.animation);});};jQuery.fn.extend({hasAttr:function(attr){return jQuery(this).is('[{0}]'.format(attr));}});function getCookie(name){var regexp=new RegExp("(?:^"+name+"|s*"+name+")=(.*?)(?:;|$)","g");var result=regexp.exec(document.cookie);return(result===null)?null:jQuery.base64('decode',result[1]);}
function deleteCookie(name,path,domain){if(getCookie(name))
createCookie(name,"",-1,path,domain);}
function createCookie(name,value,expires,path,domain){var cookie=name+"="+jQuery.base64('encode',value)+";";if(expires){if(expires instanceof Date){if(isNaN(expires.getTime()))
expires=new Date();}
else
expires=new Date(new Date().getTime()+parseInt(expires)*1000*60*60*24);cookie+="expires="+expires.toGMTString()+";";}
if(path)
cookie+="path="+path+";";if(domain)
cookie+="domain="+domain+";";document.cookie=cookie;}
function isBool(input){return(mixed_var===true||mixed_var===false);}
function reloadCaptcha(evt,self){evt.preventDefault();$self=jQuery(self);var cImg=$self.parent().find('img');var append='?v='.concat((new Date()).getTime());var src=cImg.attr('src');cImg.attr('src',(src.indexOf('reload')!==-1)?src.split('?')[0].concat(append):src.concat('/reload/1').concat(append));}
var Countable=function(params){for(var paramName in params){this[paramName]=params[paramName];}
this.count=function(){var count=0;for(var key in this){if(typeof this[key]!=="function"){++count;}}
return count;};};;

/*  mw.wizard.js  */ 
(function(window,undefined){var WizardCore=(function(){var WizardCore=function(){return new WizardCore.fn.init();},_WizardCore=window.WizardCore,_wiz=window.wiz;WizardCore.fn={prototype:WizardCore.fn,constructor:WizardCore,type:"WizardCore",version:'0.5.0a',settings:{flashMessagesId:'flashMessenger',titleTag:'',disableFlashCheck:false,urlBoxClass:'.urlBox',contentContainerId:'zContentPage',contentContainerIdFallBack:'zContentPage',viewLoaderBackgroundId:'viewLoaderBackground',messageBoxes:{standard:{messageBoxHdlClass:'.messageBox',messagesClass:'messages',messageBoxOkId:'messageBox_ok',messageBoxDeclineId:'messageBox_decline'}},enableSubmitFormsClass:'.submitFormDisabled',multiSelectHdlClass:'.multiSelectHdl',multiSelectParams:{dividerLocation:0.5,availableFirst:true,addAllAllowed:false,doubleClickable:false,maxSelect:0},checkFlashClass:'.checkFlash',ajax:{targetClass:'.zContentPage'},style:{messagesClass:'flashMessages'},minWidthTags:{required:'nav',target:'header'},coinsUpdater:{uri:"/ajax/coins",coinsStatusId:'availableCoins'},messageUpdater:{newMessagesCountId:'newMessagesCount'},NOT_PAID:400,UNDEFINED_USER:401,VALID_COINS:402,INSUFFICIENT_COINS:412,HAS_PAID_DOWNLOAD:200,OWNER:201,HAS_PAID_FLV:206},modules:{},links:{},global:{params:{coins:0,messageCount:0,mobiledevice:null,forms:{}}},translations:{messages:{main:{flashNotFound:"flashNotFoundMessage",removeImage:"Bild wirklich löschen?",removeEntry:"Eintrag wirklich löschen?",ignoreUser:"User wirklich ignorieren?",deleteMessage:"Nachricht wirklich löschen?",emptyTrash:"emptyTrashMessage",boughtVideoAskDel:"boughtVideoAskDelMessage",boughtVideoAskRestore:"boughtVideoAskRestoreMessage",boughtGalAskDel:"boughtGalAskDelMessage",boughtGalAskRestore:"boughtGalAskRestoreMessage",blogDel:"blogDelMessage",blogDelAttachment:"blogDelAttachmentMessage"},opt:{accept:"Weiter",decline:"Abbrechen"}},referrerBox:{referrerLinkLabel:"Dein persönlicher Link:",copyLinkLabel:'Link kopieren'},paginator:{upLink:'upLink',nextLink:'nextLink'}},templates:{messageBox:'<div id="messageBox" class="messageBox messageBoxSize overflow_hidden textCenter paddingTop_10 paddingBottom_10 paddingLeft_10 paddingRight_10">'+' <div class="color_2 fontSize_11 marginAll_10 bold">{0}</div>'+' <span class="field marginAll_5 inlineBlock"><input type="submit" name="messageBox_ok" id="messageBox_ok" value="{1}" class="paddingAll_1 paddingLeft_10 paddingRight_10 fontSize_11 linkButtonColor_4 bold"></span>'+' <span class="field marginAll_5 inlineBlock"><input type="reset" name="messageBox_decline" id="messageBox_decline" value="{2}" class="paddingAll_1 paddingLeft_10 paddingRight_10 marginLeft_5 fontSize_11 linkButtonColor_3 bold"></span>'+'</div>',infoBox:'<div id="messageBox" class="messageBox messageBoxSize overflow_hidden textCenter paddingTop_10 paddingBottom_10 paddingLeft_10 paddingRight_10">'+' <div class="color_2 fontSize_11 marginAll_10 bold">{0}</div>'+' <span class="field marginAll_5 inlineBlock"><input type="submit" name="messageBox_ok" id="messageBox_ok" value="{1}" class="paddingAll_2 paddingLeft_10 paddingRight_10 fontSize_11 linkButtonColor_4 bold"></span>'+'</div>'},init:function(){var core=WizardCore.fn;core.initOnLoad();core.wizard=core;return core;},initOnLoad:function(){var core=this;jQuery(document).ready(function(){with(core){initFancyBox();initJqueryByPass();switchSubmitStatusForms();initDefaultMessageBoxHdl();showUrlBox();checkFlashBox();}});},getConfirmationModal:function(title,message){var msgString=title;if(message){msgString=msgString+'\n\n'+message;}
return confirm(msgString);},initMultiSelectHdl:function(){var core=jQuery.wiz;jQuery(core.settings.multiSelectHdlClass).children(':first').remove();jQuery(core.settings.multiSelectHdlClass).multiselect(core.settings.multiSelectParams);core.initInlineLabels();},initJqueryByPass:function(){jQuery('.noJquery').removeClass('noJquery');},initFancyBox:function(){jQuery('.fancybox').fancybox({padding:0,openSpeed:150,closeSpeed:150,beforeShow:function(){this.title=null;},helpers:{}});},updateCoinStatus:function(){var core=jQuery.wiz;jQuery("#{0}".format(core.settings.coinsUpdater.coinsStatusId)).html(core.global.params.coins);},updateMessageCount:function(){var core=jQuery.wiz;jQuery("#{0}".format(core.settings.messageUpdater.newMessagesCountId)).html(core.global.params.messageCount);},updateAllInformationFields:function(){var core=jQuery.wiz;with(core){updateCoinStatus();updateMessageCount();}},openDialog:function(params){settings={beforeClose:function(){jQuery.wiz.changeUIMode(true);},beforeLoad:function(){jQuery.wiz.changeUIMode(false);},padding:0,autoCenter:true,autoResize:true,autoDimensions:true,autoScale:true,fixed:false,maxWidth:'90%',maxHeight:'90%',scrolling:'no',data:null,closeBtn:false,helpers:{}};for(paramKey in params){settings[paramKey]=params[paramKey];}
jQuery.fancybox.open({},settings);},initDefaultMessageBoxHdl:function(){var core=jQuery.wiz;jQuery(core.settings.messageBoxes.standard.messageBoxHdlClass).each(function(){var $this=jQuery(this);var classes=$this.attr('class').split(' ');var callBack=(typeof $this.attr('cb')!="undefined")?$this.attr('cb'):null;for(var key in classes){if(typeof classes[key]!=="string"||core.translations.messages.main[classes[key]]==undefined){continue;}
$this.bind('click.messageBox',function(e){e.preventDefault();core.showMessageBox(classes[key],function(){jQuery("#{0}".format(core.settings.messageBoxes.standard.messageBoxOkId)).bind('click.msgBxOk',function(){if($this.is("input")){var parentForm=$this.closest("form");if(parentForm.is("form")){parentForm.submit();}}else{if(callBack===null&&typeof window[callBack]==="undefined"){document.location=$this.attr('href');}else{var params=callBack.split(':');var method=params[0];window[method](params[1]);core.closeDialog();}}});jQuery("#{0}".format(core.settings.messageBoxes.standard.messageBoxDeclineId)).bind('click.msgBxDecl',function(){core.closeDialog();});});});break;}});},showMessageBox:function(type,callback){var core=jQuery.wiz;var messageBox=core.templates.messageBox.format(core.translations.messages.main[type],core.translations.messages.opt.accept,core.translations.messages.opt.decline);core.openDialog({type:'inline',content:messageBox,beforeShow:callback});},showInfoBox:function(message){var core=jQuery.wiz;var messageBox=core.templates.infoBox.format(message,core.translations.messages.opt.accept,core.translations.messages.opt.decline);core.openDialog({type:'inline',content:messageBox,beforeShow:function(){jQuery("#{0}".format(core.settings.messageBoxes.standard.messageBoxOkId)).bind('click.msgBxOk',function(event){event.preventDefault();core.closeDialog();});}});},showUrlBox:function(){var core=jQuery.wiz;jQuery(core.settings.urlBoxClass).bind('click.urlBox',function(e){e.preventDefault();core.openDialog({type:'ajax',href:jQuery(this).attr('href')});});},checkFlashBox:function(){var core=jQuery.wiz;return true;if(core.settings.disableFlashCheck){return true;}
jQuery(core.settings.checkFlashClass).each(function(){var $this=jQuery(this);$this.parent().bind('click.flashMessageBox',function(e){e.preventDefault();core.showMessageBox('flashNotFound',function(){jQuery("#{0}".format(core.settings.messageBoxes.standard.messageBoxOkId)).bind('click.msgBxOk',function(){window.open($this.attr('href'));core.closeDialog();});jQuery("#{0}".format(core.settings.messageBoxes.standard.messageBoxDeclineId)).bind('click.msgBxDecl',function(){core.closeDialog();});});});});},updateDialogSize:function(){jQuery.fancybox.update();},closeDialog:function(){jQuery.fancybox.close();},changeUIMode:function(state){var F=jQuery.fancybox;if(state){if(!F.opts.autoCenter){jQuery(window).unbind('resize.wiz');}}else{if(!F.opts.autoCenter){jQuery(window).bind('resize.wiz',function(){F.update(false);});}}},showLoading:function(form,noOverlay,target){var core=jQuery.wiz;var F=jQuery.fancybox;if(F.inner!==undefined||noOverlay){F.showLoading();}
if(noOverlay){if(!jQuery('#{0}'.format(core.settings.viewLoaderBackgroundId))){jQuery('<div id="{0}">'.format(core.settings.viewLoaderBackgroundId)).appendTo("#{0}".format(target));}
jQuery('#{0}'.format(core.settings.viewLoaderBackgroundId)).css('display','block');}
jQuery(form).find('input[type=submit]').attr('disabled','disabled');},hideLoading:function(form,noOverlay){var core=jQuery.wiz;var F=jQuery.fancybox;if(F.inner!==undefined||noOverlay){F.hideLoading();}
if(form)
jQuery(form).find('input[type=submit]').removeAttr('disabled');jQuery('#{0}'.format(core.settings.viewLoaderBackgroundId)).css('display','none');},getFancyInner:function(alt){var F=jQuery.fancybox;return(F.inner!==undefined)?F.inner:jQuery("#{0}".format(alt));},switchSubmitStatusForms:function(enable){var core=jQuery.wiz;if(enable==undefined||!enable){jQuery(core.settings.enableSubmitFormsClass).find('input[type=submit]').attr('disabled','disabled');return;}
jQuery(core.settings.enableSubmitFormsClass).find('input[type=submit]').removeAttr('disabled');},clearFlashMessages:function(){var flashmessageContainer=jQuery('#{0} .{1}'.format(jQuery.wiz.settings.flashMessagesId,jQuery.wiz.settings.style.messagesClass));if(flashmessageContainer.length>0){flashmessageContainer.detach();}},appendFlashMessages:function(appendTo,data){var target=jQuery('#{0}'.format(appendTo));var isValid=true;try{response=jQuery.parseJSON(data);}catch(e){response=null;}
if(response===null){return false;}
if(target.children('.{0}'.format(jQuery.wiz.settings.style.messagesClass)).length===0){target.append(jQuery('<div class="{0}">'.format(jQuery.wiz.settings.style.messagesClass)));}
target=target.children(':first');response=(!jQuery.isArray(response))?[response]:response;for(respId in response){var res=response[respId];if(typeof res==='object'){if(res.info!==undefined||res.error!==undefined){target.children().remove();for(respKey in res){if(typeof res[respKey]==='object'){message=res[respKey];for(code in message){var msg=jQuery('<p class="{0}Icon">{1}</p>'.format(respKey,message[code]));target.append(msg);}}else{if(respKey!=="result"){var msg=jQuery('<p class="{0}Icon">{1}</p>'.format(respKey,res[respKey]));target.append(msg);}}}}
if(res.error&&res.error.length!=0){isValid=false;}}}
return isValid;},isError:function(xhr){switch(xhr.status){case 0:case 200:return false;default:location.reload();return true;}
return false;},appendResource:function(Resource){var moduleContainer={};var backup=this;try{var module=new Resource(this);moduleContainer[module.type]=module;this.extend(moduleContainer);}catch(e){if(e){jQuery.message(e,'');}}
return this;},setDefaults:function(settings){try{if(settings===undefined||typeof(settings)==='string'){throw('malformed  settings');}}catch(e){if(e){jQuery.message(e,'');}}
for(var moduleName in settings){try{if(moduleName==='WizardCore'){jQuery.extend(true,this,settings[moduleName]);}else if(this[moduleName]===undefined||typeof(this[moduleName])!=='object'){throw('malformed  settings: module "{0}" not found'.format(moduleName));}else{jQuery.extend(true,this[moduleName],settings[moduleName]);}}catch(e){if(e){jQuery.message(e,'');}}}
return this;},reinitModules:function(fullReInit){for(moduleName in this.modules){if(typeof jQuery.wiz[moduleName]!=="undefined"){if(typeof jQuery.wiz[moduleName].initOnLoad!=='undefined'){jQuery.wiz[moduleName].initOnLoad(fullReInit);}}}
jQuery.wiz.initOnLoad(fullReInit);}};return(window.WizardCore=window.wiz=WizardCore);})();WizardCore.extend=WizardCore.fn.extend=function(){var options,name=null,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;if(typeof target==="boolean"){deep=target;target=arguments[1]||{};i=2;}
if(typeof target!=="object"&&!jQuery.isFunction(target)){target={};}
if(length===i){target=this;--i;}
for(;i<length;i++){if((options=arguments[i])!==null){for(name in options){this.modules[name]=name;src=target[name];copy=options[name];if(target===copy){continue;}
copyIsArray=false;if(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=jQuery.isArray(copy)))){if(copyIsArray){copyIsArray=false;clone=src&&jQuery.isArray(src)?src:[];}else{clone=src&&jQuery.isPlainObject(src)?src:{};}
target[name]=jQuery.extend(deep,clone,copy);}else if(copy!==undefined){target[name]=copy;}}}}
return target;};})(window);jQuery.extend({wiz:wiz(),status:"body",debugContainer:"div[id=debug]",message:function(msg,nd){if(typeof debugMode!=="undefined"&&debugMode){if(jQuery(jQuery.debugContainer).size()===0){jQuery("<div id='debug' style='position: absolute;bottom:0;right:0;width:300px;background:#e00;color:#fff;'></div>").appendTo(jQuery(jQuery.status));}
if(nd!=="")
jQuery("<{0} />".format([nd])).appendTo(jQuery(jQuery.debugContainer));else
jQuery("<span>{0}</span><br>".format(msg.toString())).appendTo(jQuery(jQuery.debugContainer));}}});;;

/*  mw.misc.js  */ 
var Misc=function(wiz){this.fn={prototype:this.fn,constructor:this,type:"Misc",version:'0.5.0',settings:{switchableSourceClass:'.fieldRadio',auto:{formIds:{mediaSearchForm:{formId:'mediaSearchForm',partial:true},videoSearchForm:{formId:'videoSearchForm',partial:true},gallerySearchForm:{formId:'gallerySearchForm',partial:true},mediaTypeForm:{formId:'mediaTypeForm',partial:true},mediaGenderForm:{formId:'mediaGenderForm',partial:true},searchForm:{formId:'searchForm',partial:true,keyval:true,include:[]},guestBookForm:{formId:'guestBookForm',partial:true,include:[]},messageListControlsFilterForm:{formId:'messageListControlsFilterForm',partial:true},paComposeForm:{formId:'PaComposeForm',partial:true,include:[]},paDelMsgForm:{formId:'paDelMsgForm',partial:true,include:[]}}},pagination:{ajax:{directPaginationAjaxClass:'a.directPaginationAjax',targetClass:'.zContentPage',scrollToElement:'default'}},ignoreHash:['search','faq','cm']},global:{params:{baseUrl:null}},init:function(wiz){this.wiz=wiz;this.initOnLoad(true);return this;},initOnLoad:function(firstRun){jQuery(document).ready(function(){with(jQuery.wiz.Misc){initAutoForms();initRadioBtnSwitch(settings.switchableSourceClass);}});},loadContent:function(node,url,extUrl){jQuery(node).append('<div class="waitp_main">&nbsp;</div>');if(location.hash.indexOf('/a/')!=-1){xurl=location.hash.replace(/#/,'');tmp=xurl.split('|');if(tmp.length>1&&node=='#'+tmp[1]){url=tmp[0];}else if(tmp.length==1){url=xurl;}}
jQuery(node).load(url,null,function(){jQuery.wiz.Misc.initOnLoad();});},initRadioBtnSwitch:function(source){var core=jQuery.wiz.Misc;jQuery(source).find(':radio').filter(':checked').parent().addClass('checked');jQuery(source).find(':radio').parent().bind('click.radioBtnSwitchLabel',core.initClickLabelHandler);},initClickLabelHandler:function(e){e.preventDefault();jQuery(this).children(':input').attr('checked','checked');jQuery(this).parents('form').trigger('submit');},initAutoForms:function(){var core=jQuery.wiz.Misc;var settings=core.settings;for(formKey in settings.auto.formIds){var form=jQuery("#{0}".format(settings.auto.formIds[formKey].formId));if(form.length!=0){var formId=settings.auto.formIds[formKey].formId;var partial=settings.auto.formIds[formKey].partial;if(settings.auto.formIds[formKey].exclude!=undefined){var exclude=settings.auto.formIds[formKey].exclude;var elements=(exclude.length>0)?form.find(":input:not(:{0})".format(exclude.join(', :'))):form.find(":input");elements.each(function(){core.bindSubmitListener(this);});}else if(settings.auto.formIds[formKey].include!=undefined){var include=settings.auto.formIds[formKey].include;var elements=(include.length>0)?form.find(":input[type={0}]".format(include.join(', :input[type=:'))):jQuery('');elements.each(function(){core.bindSubmitListener(this);});}else{form.find(":input").each(function(){core.bindSubmitListener(this);});}
if(partial){form.bind('submit.{0}'.format(formId),core.partialSubmitPageRender);}}}},ignoreHashParams:function(){var core=jQuery.wiz.Misc;var ignore=false;for(i=0;i<core.settings.ignoreHash.length;i++){if(currentPage.indexOf(core.settings.ignoreHash[i])!==-1){ignore=true;break;}}
return ignore;},partialSubmitPageRender:function(e){e.preventDefault();var $this=jQuery(this);var core=jQuery.wiz.Misc;var nodes=$this.parentsUntil(core.settings.pagination.ajax.targetClass);var target=jQuery(nodes[nodes.length-1]).parent().attr("id");core.wiz.showLoading($this,true,target);var params=$this.serializeArray();jQuery.ajax({type:'post',url:$this.attr('action'),data:$this.serialize(),success:function(data,textStatus,jqXHR){try{response=jQuery.parseJSON(data);}catch(e){response=null;}
if(response===null){jQuery("#{0}".format(target)).html(data);if(!core.ignoreHashParams()){location.hash=currentPage+'|'+target;}
core.initOnLoad();core.wiz.hideLoading($this,true,target);}else{window.location.replace(response.url);}}});uri=$this.attr("action").replace(/\/a\//,'').split('/');core.gaPush(uri.concat(params));},gaPush:function(params){},bindSubmitListener:function(element){var $this=jQuery(element);var form=$this.parents('form');switch(element.type){case'radio':$this.bind("click.{0}".format(form.attr('id')),function(){form.trigger('submit');});break;case'select':case'select-one':$this.bind("change.{0} keyup.{0}".format(form.attr('id')),function(){form.trigger('submit');});break;case'text':case'textarea':$this.bind("focusout.{0}".format(form.attr('id')),function(){form.trigger('submit');});break;}},setDefaults:function(resource,settings){this.wiz.setDefaults(this.type,resource,settings||{});}};return this.fn.init(wiz);};jQuery.wiz.appendResource(Misc);if(!Array.prototype.findIndex){Object.defineProperty(Array.prototype,'findIndex',{value:function(predicate){if(this==null){throw new TypeError('"this" is null or not defined');}
var o=Object(this);var len=o.length>>>0;if(typeof predicate!=='function'){throw new TypeError('predicate must be a function');}
var thisArg=arguments[1];var k=0;while(k<len){var kValue=o[k];if(predicate.call(thisArg,kValue,k,o)){return k;}
k++;}
return-1;},configurable:true,writable:true});};;

/*  mw.comments.js  */ 
var Comments=function(wiz){this.fn={prototype:this.fn,constructor:this,type:"Comments",version:'0.5.0',settings:{buyFormClass:'.buy-form',commentPostFormClass:'.js-comment-form',commentReportClass:'.js-report-comment',commentReportFormClass:'.js-report-form',commentAnswerClass:'.js-answer-comment',commentAnswerFormClass:'.js-answer-form',commentDeleteClass:'.js-delete-comment',userIgnoreClass:'.js-ignore-user',commentsContainerClass:'.js-comment-section',commentsListWrapper:'.media-list',targetId:'zContentPage'},global:{params:{}},init:function(wiz){this.wiz=wiz;this.initOnLoad(true);return this;},initOnLoad:function(firstRun){var core=this;jQuery(document).ready(function(){with(core){initCommentHandler();}});},initCommentHandler:function(){var core=jQuery.wiz.Comments;jQuery(core.settings.buyFormClass).on('submit.submitBuy',core.handlePurchase);jQuery(core.settings.commentPostFormClass).live('submit.commentSubmit',core.submitComment);jQuery(core.settings.commentAnswerClass).live('click.commentAnswer',core.getAnswerForm);jQuery(core.settings.commentAnswerFormClass).live('submit.answerSubmit',core.submitAnswerForm);jQuery(core.settings.commentReportClass).live('click.commentReport',core.getReportForm);jQuery(core.settings.commentReportFormClass).live('submit.reportSubmit',core.submitReportForm);jQuery(core.settings.commentReportFormClass).live('reset.reportReset',core.cancelReportForm);jQuery(core.settings.commentDeleteClass).live('click.commentDelete',core.doCommentDelete);jQuery(core.settings.userIgnoreClass).live('click.userIgnore',core.doUserIgnore);jQuery('.rating a').each(function(){jQuery(this).live('click',core.handleVideoRating);});},handlePurchase:function(e){var core=jQuery.wiz.Comments;var submit=jQuery(this).find(':submit');var title=submit.attr('title');var message=submit.data('description');if(jQuery('#js-insufficientdc-notification').length>0){e.preventDefault();var confirmed=false;if(jQuery('.js-buy-form').data('origin')=='video'&&jQuery('.js-buy-form').data('videoid')!==undefined){jQuery.post('/video/trackinsufficientdc/'+jQuery('.js-buy-form').data('videoid'),{});}
jQuery('#js-insufficientdc-notification').modal('show');}else{var confirmed=core.wiz.getConfirmationModal(title,message);if(confirmed&&window.location.hash==='#shared'){jQuery(this).trigger('ga-virtual-page-trigger',{'virtualPage':'video_purchased','mapping':'sharedVideo'});}}
if(!confirmed){e.preventDefault();}},submitComment:function(e){e.preventDefault();var $this=jQuery(this);var core=jQuery.wiz.Comments;var data=$this.serializeArray();jQuery.post($this.attr('action'),data).success(function(response){jQuery(core.settings.commentsListWrapper).prepend(response);jQuery('.js-comment').remove();}).fail(function(response){jQuery('#comment-form').replaceWith(response.responseText);})},doCommentDelete:function(e){e.preventDefault();var $this=jQuery(this);var core=jQuery.wiz.Comments;var title=$this.attr('title');var message=$this.data('description');var confirmed=core.wiz.getConfirmationModal(title,message);if(confirmed){var data={uvc_id:$this.attr('uvc_id'),uv_id:$this.attr('uv_id')};jQuery.post($this.attr('href'),data,function(response){jQuery(core.settings.commentsContainerClass).replaceWith(response);});}},getReportForm:function(e){e.preventDefault();var $this=jQuery(this);if(!jQuery('#comment-report-form').length&&!$this.hasClass('active')){$this.addClass('active');var data={uvc_id:$this.data('uvcid')};jQuery.get($this.attr('href'),data,function(response){$this.parents('.media-body').append(response);$this.addClass("hidden");});}},submitReportForm:function(e){e.preventDefault();var $this=jQuery(this);var core=jQuery.wiz.Comments;var data=$this.serializeArray();jQuery.post($this.attr('action'),data,function(response){$this.parents('.js-report').first().replaceWith(response);});},cancelReportForm:function(e){e.preventDefault();var core=jQuery.wiz.Comments;jQuery(this).parents('.js-report').fadeOut(400,function(){jQuery(this).parents('.media-body').find(core.settings.commentReportClass).removeClass('active hidden');jQuery(this).detach();});jQuery(core.settings.commentReportClass).removeClass('active');},getAnswerForm:function(e){e.preventDefault();var $this=jQuery(this);if(!jQuery('#comment-answer-form').length&&!$this.hasClass('active')){$this.addClass('active');var data={uvc_id:$this.attr('uvc_id')};jQuery.get($this.attr('href'),data,function(response){$this.parents('.media-body').append(response);});}},submitAnswerForm:function(e){e.preventDefault();var $this=jQuery(this);var core=jQuery.wiz.Comments;var data=$this.serializeArray();var uvcId=$this.find('input[name="uvc_id"]').val();jQuery.post($this.attr('action'),data,function(response){$this.parents('.js-answer').first().replaceWith(response);});jQuery('#answer-'+uvcId).detach();jQuery(core.settings.commentAnswerClass).removeClass('active');},doUserIgnore:function(e){e.preventDefault();var $this=jQuery(this);var core=jQuery.wiz.Comments;var message=$this.data('description');var confirmed=core.wiz.getConfirmationModal(message);if(confirmed){var data={uvc_id:$this.attr('uvc_id'),uv_id:$this.attr('uv_id')};jQuery.post($this.attr('href'),data,function(response){jQuery(core.settings.commentsContainerClass).replaceWith(response);});}},handleVideoRating:function(e){e.preventDefault();var $this=jQuery(this);var data={rating:$this.data('rating-value')};$this.parent().addClass('active');jQuery.post($this.attr('href'),data,function(){jQuery('.rating-wrapper').fadeOut(200,function(){jQuery(this).detach();})});},setDefaults:function(resource,settings){this.wiz.setDefaults(this.type,resource,settings||{});}};return this.fn.init(wiz);};jQuery.wiz.appendResource(Comments);;;

/*  mg.register.js  */ 
var Register=function(wiz){this.fn={prototype:this.fn,constructor:this,type:"Register",version:'0.5.0',requestMade:0,lang:{error:'Error:'},links:{lastPage:'/lastpage/last'},settings:{overlayContentId:'register-modal',overlayTrigger:'a[href$="/register"],a[href$="/n/register"],a[href*="/lphotornot/register"],.js-register-modal',registerFormClass:'.registerForm',loginFormClass:'.loginForm',params:{setid:'setid'},flashMessengerId:'flashMessenger',info:{INFO_SUCCESS:1,INFO_REGISTERED:2,INFO_ACTIVATION:3,INFO_ACTIVATED:4},errors:{FAILURE_IP_BLOCKED:-5,FAILURE_NOTREGISTERED:-6,FAILURE_DOUBLE_REGISTER:-7,FAILURE_NOTACTIVATED:-8,FAILURE_USER_BLOCKED:-9,FAILURE_USER_SECURITY_BLOCKED:-10,FAILURE_FORCE_REDIRECT:-11,FAILURE_FORCE_CAPTCHA:-12}},global:{params:{},registerCallback:null,requestLink:null},init:function(wiz){this.wiz=wiz;this.initOnLoad();return this;},initOnLoad:function(){var core=this;jQuery(document).ready(function(){with(core){initRegisterOpen();}});},initRegisterOpen:function(){var core=this;jQuery(core.settings.overlayTrigger).live('click.registermodal',this.registerEvent.bind(this))},openModalsDefault:function(type){var modalType=type||'Register';this.getAndLoadRVModal(modalType);this._oldModal();},registerEvent:function(e,switchModal,openedModal){var $this=jQuery(e.currentTarget),link=$this.data('register-url'),switchModalInstead=switchModal||false,currentlyOpenedModal=openedModal||false;e.preventDefault();if(typeof jQuery.cookie('rfrm')!=='undefined'&&!jQuery(e.target).hasClass('fa-user-circle-o')){window.location.href='/registerfrommedia';return false;}
jQuery(document).trigger('show.registermodal');if(typeof link==='undefined'){link=$this.attr('href');}
if($this.data('userid')!==undefined){link+='/'+$this.data('userid');}
if(typeof link==="undefined"){link=e.currentTarget.href;}
if(typeof link==="undefined"){link='/n/register';}
if($this.data('continuity_redirect')!==undefined){window.continuity_redirect=$this.data('continuity_redirect')}
this._oldModal($this,link,currentlyOpenedModal);},setDefaults:function(settings){var set={};set[this.type]=settings;this.wiz.setDefaults(set);return this;},initRegisterForm:function(linkElement){var core=jQuery.wiz.Register;var form=jQuery(core.settings.registerFormClass);if(linkElement){if(linkElement.data('continuity_webcam')!==undefined){form.find('#continuity_webcam').val(linkElement.data('continuity_webcam'));}
if(linkElement.data('continuity_redirect')!==undefined){form.find('.continuity-redirect').val(linkElement.data('continuity_redirect'));}
if(linkElement.data('fjstracking')!==undefined){form.find('#fjstracking').val(linkElement.data('fjstracking'));}}
form.ajaxForm({beforeSubmit:function(){form.parents('.registration-modal-form').addClass('waiting');if(typeof linkElement!='undefined'&&jQuery(linkElement).data('message')&&typeof window.isRegisterMessageTest!='undefined'){ga('send','event','chat-butt-join-ab-test-2','form-submit',window.isRegisterMessageTest,0);}},success:function(data,textStatus,jqXHR){if(typeof data==='object'){data=JSON.stringify(data);}
var response;try{response=jQuery.parseJSON(data);}catch(e){response=null;}
if(response===null){jQuery('#'+core.settings.overlayContentId).find('.modal-content').html(data);core.initRegisterForm(linkElement);core.initLoginForm(linkElement);}else{if(typeof core.global.params.registrationFormTracking!=='undefined'&&core.global.params.registrationFormComplete!==null){if(typeof core.global.params.registrationFormComplete[core.global.params.registrationFormTracking]!=='undefined'){ga('set','page',core.global.params.registrationFormComplete[core.global.params.registrationFormTracking]);ga('send','pageview');}}
if(core.wiz.appendFlashMessages(core.settings.flashMessengerId,data)){switch(parseInt(response.result)){case core.settings.info.INFO_SUCCESS:var loginTarget=document.URL;if(typeof response.redirect!=='undefined'){loginTarget=response.redirect;}else if(typeof core.global.registerCallback==='function'){return core.global.registerCallback(core.global.requestLink);}else if(typeof response.oneEuroRedirectUrl=='string'){loginTarget=response.oneEuroRedirectUrl;}else if(core.global.requestLink!==null){if(typeof core.global.requestLink=="string"){loginTarget=core.global.requestLink;}else{loginTarget=core.global.requestLink.attr('href');}}
jQuery('#register-modal').modal('hide');if(loginTarget.indexOf("/register")!==-1||loginTarget.indexOf("/logout")!==-1){window.location.replace(core.links.lastPage);}else{window.location.replace(loginTarget);}
break;case core.settings.info.INFO_REGISTERED:break;case core.settings.info.INFO_ACTIVATION:break;}}
jQuery('#register-modal').modal('hide');}},error:function(){window.location.replace('/n/register');}});},getAndLoadRVModal:function(modalType,link,openedModal){var newModalsOpened=openedModal||null,endPoint=link||"/n/login";endPoint=endPoint+'?rvmodal=true';this.requestMade+=1;jQuery.get(endPoint,function(data){jQuery('body').append(data);if(jQuery.wiz.Register.requestMade>1){jQuery.wiz.Register.requestMade-=1;return;}
try{jQuery.wiz.Register.requestMade=0;if(modalType==='Register'){return newModalsOpened&&RVmodals.switchModal('Register')||RVmodals.openModal("Register");}
return newModalsOpened&&RVmodals.switchModal('Login')||RVmodals.openModal("Login");}catch(e){return newModalsOpened&&RVmodals.switchModal('Login')||RVmodals.openModal("Login");}}).fail(function(){window.location.replace('/n/login');})
newModalsOpened&&window.RVmodals.closeModal(newModalsOpened);var newModalBackdrop=jQuery('body > .MuiDialog-root');newModalBackdrop.length>0&&newModalBackdrop.hide();},initLoginForm:function(linkElement){var core=jQuery.wiz.Register;var form=jQuery(core.settings.loginFormClass);if(linkElement){if(linkElement.data('continuity_redirect')!==undefined){form.find('.continuity-redirect').val(linkElement.data('continuity_redirect'));}}
form.ajaxForm({beforeSubmit:function(){form.parents('.registration-modal-form').addClass('waiting');},success:function(data,textStatus,jqXHR){try{response=jQuery.parseJSON(data);}catch(e){response=null;}
if(data.redirect!="undefined"&&data.redirect){window.location.replace(data.redirectUrl);}
if(response===null){jQuery('#'+core.settings.overlayContentId).find('.modal-content').html(data);core.initRegisterForm();core.initLoginForm();}else{if(core.wiz.appendFlashMessages(core.settings.flashMessengerId,data)){switch(parseInt(response[0].result)){case core.settings.info.INFO_SUCCESS:if(typeof core.global.registerCallback==='function'){return core.global.registerCallback(core.global.requestLink);}
jQuery('#register-modal').modal('hide');var loginTarget=document.URL;if(core.global.requestLink!==null){if(typeof core.global.requestLink=="string"){loginTarget=core.global.requestLink;}else{loginTarget=core.global.requestLink.attr('href');}}
if(typeof response[0].redirectUrl=='string'){loginTarget=response[0].redirectUrl;}
if(loginTarget.indexOf("/register")!==-1||loginTarget.indexOf("/logout")!==-1){window.location.replace(core.links.lastPage);}else{window.location.replace(loginTarget);}
break;case core.settings.info.INFO_REGISTERED:break;case core.settings.info.INFO_ACTIVATION:break;}}
jQuery('#register-modal').modal('hide');}},error:function(){window.location.replace('/n/login');}});},initTabSwitch:function(){var core=jQuery.wiz.Register;jQuery(core.settings.switchTabClass).each(function(){jQuery(this).bind('click.registerTabSwitch',core.changeActiveTab);});},changeActiveTab:function(e){e.preventDefault();var core=jQuery.wiz.Register;var tabId=jQuery(this).closest(core.settings.tabClass).attr('id');jQuery('#{0}'.format(tabId)).css('display','none');jQuery(core.settings.tabClass).not('#{0}'.format(tabId)).css('display','block');core.wiz.initInlineLabels();},clearForm:function(form){jQuery(':input',form).not(':button, :submit, :reset, :hidden').val('').removeAttr('checked').removeAttr('selected');},callback:{ajaxError:function(jqXHR,textStatus){var core=jQuery.wiz.Register;var F=jQuery.fancybox;switch(jqXHR.status){}}},_oldModal:function(ele,addLink,openedModal){var $this=ele||null,core=this,newModalsOpened=openedModal||null,link=addLink||'/n/register';var hasRegisterAction=$this&&($this.hasClass('register-action')||$this.parent().hasClass('register-action'));var hasRegisterUrl=$this&&($this.data('register-url')&&$this.data('register-url').includes('register'));var modalType='Login';try{modalType=(hasRegisterUrl||hasRegisterAction||link.includes('register'))?'Register':'Login';}catch(e){}
return core.getAndLoadRVModal(modalType,link,newModalsOpened)}};return this.fn.init(wiz);};jQuery.wiz.appendResource(Register);;;

/*  languages/mw.wizard_de.js  */ 
if(typeof locale!="undefined"&&locale=="de"){var messages={WizardCore:{translations:{messages:{main:{flashNotFound:"Keine Flashunterstützung gefunden, fortfahren?",removeImage:"Bild wirklich löschen?",removeEntry:"Eintrag wirklich löschen?",ignoreUser:"User wirklich ignorieren?",deleteMessage:"Nachricht wirklich löschen?",emptyTrash:"Papierkorb leeren?",search:"Suchen",boughtVideoAskDel:"Soll das Video wirklich aus Deinen gekauften Videos entfernt werden?",boughtVideoAskRestore:"Soll das Video in Deinen gekauften Videos wiederhergestellt werden?",boughtGalAskDel:"Soll die Galerie wirklich aus Deinen gekauften Galerien entfernt werden?",boughtGalAskRestore:"Soll die Galerie in Deinen gekauften Galerien wiederhergestellt werden?",blogDel:"Diesen Blog Eintrag entfernen?",blogDelAttachment:"Blog Anhang entfernen?"},opt:{accept:"Weiter",decline:"Abbrechen"}},comment:{commentEmpty:"Der Kommentar kann nicht leer sein"},referrerBox:{referrerLinkLabel:"Dein persönlicher Link:",copyLinkLabel:'Link markieren'},paginator:{upLink:'nach oben',nextLink:'weitere Ergebnisse'}}}};jQuery.wiz.setDefaults(messages);};;

/*  languages/mw.wizard_en.js  */ 
if(typeof locale!="undefined"&&locale=="en"){var messages={WizardCore:{translations:{messages:{main:{flashNotFound:"No flash support found, continue anyway?",removeImage:"Remove Picture permanently?",removeEntry:"Remove Entry permanently?",ignoreUser:"Do you want to ignore this user?",deleteMessage:"Do you want to delete this message?",emptyTrash:"Empty trash?",search:"Search",boughtVideoAskDel:"Are you sure you want to delete this video form your Purchased Videos list?",boughtVideoAskRestore:"Should this video return to your Purchased Videos list?",boughtGalAskDel:"Are you sure you want to delete this Picture Gallery form your Purchased Picture Galleries list?",boughtGalAskRestore:"Should this Picture Gallery return to your Purchased Picture Galleries list?",blogDel:"Remove this blog entry?",blogDelAttachment:"Remove blog attachment?"},opt:{accept:"Confirm",decline:"Cancel"}},comment:{commentEmpty:"Comment cant be empty"},referrerBox:{referrerLinkLabel:"Your link:",copyLinkLabel:'select link'},paginator:{upLink:'to top',nextLink:'next entries'}}}};jQuery.wiz.setDefaults(messages);};;

/*  languages/mw.wizard_nl.js  */ 
if(typeof locale!="undefined"&&locale=="nl"){var messages={WizardCore:{translations:{messages:{main:{flashNotFound:"No flash support found, continue anyway?",removeImage:"Verwijder Foto permanent?",removeEntry:"Verwijder Weblogitem?",ignoreUser:"Do you want to ignore this user?",deleteMessage:"Do you want to delete this message?",emptyTrash:"Lege Prullenbak?",search:"zoeken",boughtVideoAskDel:"Weet je zeker dat je deze video uit je gekochte video's lijst wilt verwijderen?",boughtVideoAskRestore:"Moet deze video weer teruggezet worden in je gekochte video's lijst?",boughtGalAskDel:"Weet je zeker dat je deze foto gallerij uit je gekochte foto's galerij wilt verwijderen?",boughtGalAskRestore:"Moet deze fot galerij weer teruggezet worden in je gekochte foto's galerij lijst?",blogDel:"Wil je dit bericht van je blog verwijderen?",blogDelAttachment:"Wil je deze bijlage van je blog verwijderen?"},opt:{accept:"Bevestigen",decline:"Annuleren"}},comment:{commentEmpty:"Comment cant be empty"},referrerBox:{referrerLinkLabel:"Your link:",copyLinkLabel:'select link'},paginator:{upLink:'to top',nextLink:'next entries'}}}};jQuery.wiz.setDefaults(messages);};;

/*  mg.profile.js  */ 
var Profile=function(wiz){this.fn={prototype:this.fn,constructor:this,type:"Profile",version:'0.5.0',settings:{profilePictureSlideshow:{selector:'.js-profile-pictures-load',interval:1000,fadespeed:400,snapback:true},guestbook:{commentPostFormClass:'.js-report-gb-form',commentReportClass:'.js-report-guestbook',commentReportFormClass:'.js-gb-report-form',commentDeleteClass:'.js-delete-guestbook',userIgnoreClass:'.js-ignore-user-guestbook',commentsContainerClass:'.page-section',commentsListWrapper:'.media-list'}},global:{params:{profileStatsWrapperHeight:0}},init:function(wiz){this.wiz=wiz;this.initOnLoad();return this;},initOnLoad:function(fullReInit){jQuery(document).ready(function(){var core=jQuery.wiz.Profile;core.initGuestbook();});},setDefaults:function(settings){var set={};set[this.type]=settings;this.wiz.setDefaults(set);return this;},initGuestbook:function(){var core=jQuery.wiz.Profile;jQuery(core.settings.guestbook.commentReportClass).live('click.commentReport',core.getReportForm);jQuery(core.settings.guestbook.commentReportFormClass).live('submit',core.submitReportForm);jQuery(core.settings.guestbook.commentReportFormClass).live('reset',core.cancelReportForm);jQuery('#guestbookcommentCancel').live('click',core.cancelReportForm);jQuery(core.settings.guestbook.commentDeleteClass).live('click.commentDelete',core.doCommentDelete);jQuery(core.settings.guestbook.userIgnoreClass).live('click.userIgnore',core.doUserIgnore);},doCommentDelete:function(e){e.preventDefault();var $this=jQuery(this);var core=jQuery.wiz.Profile;var title=$this.attr('title');var message=$this.data('description');var confirmed=core.wiz.getConfirmationModal(title,message);if(confirmed){jQuery.get($this.attr('href'),null,function(response){jQuery(core.settings.guestbook.commentsContainerClass).replaceWith(response);jQuery('.profile-head-wrapper').on('affix.bs.affix',function(){jQuery('body').addClass('fixed fixed-header');});jQuery('.profile-head-wrapper').on('affix-top.bs.affix',function(){jQuery('body').removeClass('fixed fixed-header');});jQuery(".profile-head-wrapper").affix('checkPosition');});}},getReportForm:function(e){e.preventDefault();var $this=jQuery(this);if(!jQuery('#guestbook-report-form').length&&!$this.hasClass('active')){$this.addClass('active');var data={ugb_id:$this.data('ugb_id')};jQuery.get($this.attr('href'),data,function(response){$this.addClass('hidden').parents('.media-body').append(response);});}},submitReportForm:function(e){e.preventDefault();var $this=jQuery(this);var core=jQuery.wiz.Profile;var data=$this.serializeArray();jQuery.post($this.attr('action'),data,function(response){$this.parents('.js-report').first().replaceWith(response);});},cancelReportForm:function(e){e.preventDefault();var core=jQuery.wiz.Profile;var $this=jQuery(this);jQuery(this).parents('.js-report').fadeOut(400,function(){$this.parents('.media-body').find(core.settings.guestbook.commentReportClass).removeClass('hidden');jQuery(this).detach();});jQuery(core.settings.guestbook.commentReportClass).removeClass('active');},doUserIgnore:function(e){e.preventDefault();var $this=jQuery(this);var core=jQuery.wiz.Profile;var message=$this.attr('title');var confirmed=core.wiz.getConfirmationModal(message);if(confirmed){var objActive=[];jQuery(".js-report-guestbook").each(function(index){var id=jQuery(this).attr('id');var currentMessage=jQuery('#'+id).parents('.media-body').find("#flash-messenger").html();if(jQuery('#'+id).hasClass('hidden')&&currentMessage!=null){var objItem={'id':id,'message':currentMessage};objActive.push(objItem);}});jQuery.get($this.attr('href'),null,function(response){if(response===true){$this.addClass('hideGuestbookIgnore');$this.parent().find('a').not($this).removeClass('hideGuestbookIgnore');}
if(objActive.length>0){jQuery.each(objActive,function(key,obj){jQuery('#'+obj.id).addClass("hidden");if(obj.message!=null)
jQuery('#'+obj.id).parents('.media-body').append('<div class="col-xs-12" id="flash-messenger">'+obj.message+'</div>');});}});}}};return this.fn.init(wiz);};jQuery.wiz.appendResource(Profile);;;

/*  mg.playlist.js  */ 
var Playlist=function(wiz){this.fn={prototype:this.fn,constructor:this,type:"Playlist",version:'0.5.0',lang:{error:'Error:'},links:{lastPage:'/lastpage/last'},settings:{overlayContentId:'mdh-modal',overlayTrigger:'a[id*="PlaylistTrigger"]',playlistFormClass:'.playlistForm',params:{setid:'setid'},flashMessengerId:'flashMessenger',info:{INFO_SUCCESS:1,INFO_REGISTERED:2,INFO_ACTIVATION:3,INFO_ACTIVATED:4},errors:{FAILURE_ADD_PLAYLIST:-4,FAILURE_IP_BLOCKED:-5,FAILURE_NOTREGISTERED:-6,FAILURE_DOUBLE_REGISTER:-7,FAILURE_NOTACTIVATED:-8,FAILURE_USER_BLOCKED:-9,FAILURE_USER_SECURITY_BLOCKED:-10,FAILURE_FORCE_REDIRECT:-11,FAILURE_FORCE_CAPTCHA:-12}},global:{params:{},playlistCallback:null,playlistLink:null},translations:{messages:{opt:{accept:"Confirm",decline:"Cancel"}}},init:function(wiz){this.wiz=wiz;this.initOnLoad();return this;},initOnLoad:function(){var core=this;jQuery(document).ready(function(){with(core){initPlaylistOpen();}});},initPlaylistOpen:function(){var core=this;jQuery(core.settings.overlayTrigger).live('click.mdhmodal',function(e){e.preventDefault();var $this=jQuery(this);$this.addClass('waiting');jQuery.get($this.attr('href'),function(data,statusText,xhr){if(xhr.status==204){location.reload();}else{jQuery('body').append('<div id="mdh-modal" class="modal fade mdh-modal" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="playlist-content">'+data+'</div></div></div>');var playlistModal=jQuery('#mdh-modal').modal({backdrop:'static'});playlistModal.on('hidden.bs.modal',function(e){jQuery('#mdh-modal').detach();$this.removeClass('waiting');});playlistModal.on('shown.bs.modal',function(e){core.initPlaylistForm($this);});}});return false;});},setDefaults:function(settings){var set={};set[this.type]=settings;this.wiz.setDefaults(set);return this;},initPlaylistForm:function(linkElement){var core=jQuery.wiz.Playlist;var form=jQuery(core.settings.playlistFormClass);form.ajaxForm({beforeSubmit:function(){form.parent().addClass('waiting');},success:function(data,textStatus,jqXHR){try{response=jQuery.parseJSON(data);}catch(e){response=null;}
if(response===null){jQuery('#'+core.settings.overlayContentId).find('.modal-content').html(data);core.initPlaylistForm(linkElement);}else{switch(parseInt(response.result)){case core.settings.info.INFO_SUCCESS:bootbox.alert(core.translations.messages.main.addedToPlaylist);jQuery('#mdh-modal').modal('hide');break;case core.settings.errors.FAILURE_ADD_PLAYLIST:bootbox.alert(core.translations.messages.main.failedToAdd);break;}}
form.parent().removeClass('waiting');}});},clearForm:function(form){jQuery(':input',form).not(':button, :submit, :reset, :hidden').val('').removeAttr('checked').removeAttr('selected');},callback:{ajaxError:function(jqXHR,textStatus){var core=jQuery.wiz.Playlist;var F=jQuery.fancybox;switch(jqXHR.status){}}}};return this.fn.init(wiz);};jQuery.wiz.appendResource(Playlist);;;

/*  languages/mg.playlist_de.js  */ 
var language=jQuery('html').attr('lang')||'en';if(language=="de"){var messages={Playlist:{translations:{messages:{main:{addedToPlaylist:"Es kann bis zu 10-20 Minuten dauern, bis das Video hier zu sehen ist.",failedToAdd:"Hinzufügen zur Playlist fehlgeschlagen"},opt:{accept:"Weiter",decline:"Abbrechen"}}}}};jQuery.wiz.setDefaults(messages);};;

/*  languages/mg.playlist_en.js  */ 
var language=jQuery('html').attr('lang')||'en';if(language=="en"){var messages={Playlist:{translations:{messages:{main:{addedToPlaylist:"This video will appear in this list in about 10 – 20 minutes.",failedToAdd:"Failed to add to playlist"},opt:{accept:"Confirm",decline:"Cancel"}}}}};jQuery.wiz.setDefaults(messages);};;

/*  languages/mg.playlist_it.js  */ 
var language=jQuery('html').attr('lang')||'en';if(language=="it"){var messages={Playlist:{translations:{messages:{main:{addedToPlaylist:"Questo video apparirà in questo elenco in circa 10 - 20 minuti.",failedToAdd:"Impossibile aggiungere alla playlist"},opt:{accept:"Confermare",decline:"Cancellare"}}}}};jQuery.wiz.setDefaults(messages);};;

/*  languages/mg.playlist_fr.js  */ 
var language=jQuery('html').attr('lang')||'en';if(language=="fr"){var messages={Playlist:{translations:{messages:{main:{addedToPlaylist:"Cette vidéo apparaîtra dans cette liste dans environ 10 à 20 minutes.",failedToAdd:"Failed to add to playlist"},opt:{accept:"Vonfirmer",decline:"Annuler"}}}}};jQuery.wiz.setDefaults(messages);};;

/*  languages/mg.playlist_es.js  */ 
var language=jQuery('html').attr('lang')||'en';if(language=="es"){var messages={Playlist:{translations:{messages:{main:{addedToPlaylist:"Este video aparecerá en la lista en unos 10 – 20 minutos.",failedToAdd:"No se pudo agregar a la lista de reproducción"},opt:{accept:"Confirmar",decline:"Cancelar"}}}}};jQuery.wiz.setDefaults(messages);};;
