$(document).ready(function(){var g="TrackingCookie";var f="";var e="";var c="";var h=[];var d=false;function b(i){if(i=="50"){return 10002146559723}if(i=="95"){return 1000189538048}if(i=="65"){return 1000690807371}if(i=="114"){return 1000484307740}if(i=="115"){return 10001883835677}else{return 10001146525413}}function a(l,n,q,p,r){var m=b(l);var j=YWA.getTracker(m);j.setAction(p);j.setDocumentGroup(q);j.setDocumentName(n);for(var k=0;k<r.length;k=k+2){var o="";o=r[k+1];j.setCF(r[k],o)}j.submit_action()}$(document).click(function(u){if(u.target.id!==""){var o=PageParamsVar.length;if(typeof(o)==="undefined"){o=1}for(var q=0;q<o;q++){var p=PageParamsVar[q];if(typeof(p)==="undefined"){p=PageParamsVar}var m=u.target.id.toLowerCase()==p.ElementID.toLowerCase();if(!m&&p.ElementID.indexOf("*")>=0){if(p.ElementID.indexOf("*")==0){var i=p.ElementID.toLowerCase().substr(1);m=u.target.id.toLowerCase().lastIndexOf(i)+i.length==u.target.id.length}else{var i=p.ElementID.toLowerCase().substr(0,p.ElementID.length-1);m=u.target.id.toLowerCase().indexOf(i)==0}}if(m){if(p.TypID==1){d=p.AppendFields;MedienID=p.MedienID;f=p.Action;e=p.DocName;c=p.DocGroup;h=p.cf;var t=[];if(typeof(h)!=="undefined"){if(typeof(h.length)=="undefined"){t.push(h.CustomFieldName);t.push(h.CustomFieldValue)}else{for(var s=0;s<h.length;s++){t.push(h[s].CustomFieldName);t.push(h[s].CustomFieldValue)}}}var l=t.join(";");var n=d+";"+f+";"+e+";"+c+";"+l;$.cookie(g,n,{path:"/",expires:1})}if(p.TypID==2){MedienID=p.MedienID;e=p.DocName;c=p.DocGroup;f=p.Action;h=p.cf;var k=[];if(typeof(h)!=="undefined"){if(typeof(h.length)=="undefined"){k.push(h.CustomFieldName);k.push(h.CustomFieldValue)}else{for(var v=0;v<h.length;v++){k.push(h[v].CustomFieldName);k.push(h[v].CustomFieldValue)}}}var r=0;if(p.AppendFields=="1"){r=1}a(MedienID,e,c,f,k)}}}}})});
