/* website integration code (monitoring and chat) yalst LiveSupportTool Author: Dr. Markus Jasinski Copyright (c) 2003-2010 by rostock-digital, Rostock, Germany http://www.rostock-digital.com */ // initialisation and basic functions var tnow=new Date(); var yblocked=0; var ymtimer=Math.round(tnow.getTime()/1000); var ycb_chat=0; if (typeof y_nopid != 'undefined') { if (y_nopid==true) {var ypid=false;} else {var ypid=true;} } else {var ypid=true;} rnd.today=new Date(); rnd.seed=rnd.today.getTime(); function rnd() { rnd.seed=(rnd.seed*9301+49297) % 233280; return rnd.seed/(233280.0); } function rand(number) {return Math.ceil(rnd()*number);} var scriptid=rand(30000); function str_replace(search,replace,oldstring) { result=""+oldstring; while (result.indexOf(search)>-1) { pos=result.indexOf(search); result=""+(result.substring(0,pos)+replace+result.substring((pos+search.length),result.length)); } return result; } // Browser detection var yAgent=navigator.userAgent.toLowerCase(); var isNetscape=!!(document.captureEvents && !document.getElementById); var isIE4=!!(document.all && !document.documentElement); var isIE=(navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin=(navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var isOpera=(navigator.userAgent.indexOf("Opera") != -1) ? true : false; var isMac=!!(navigator.userAgent.indexOf("Mac")!=-1); var isGecko=(yAgent.indexOf('gecko')!=-1); var hasDOM=!!document.getElementById; // Layer handling function yMM_findObj(n,d) { //v4.01 var p,i,x; if (!d) d=document; if ((p=n.indexOf("?"))>0&&parent.frames.length) {d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if (!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 4) ? parseInt(aA[4]) : 0, iR = (aA.length > 5) ? parseInt(aA[5]) : 0; var iT = 10, sS = ""; if (!document.layers) {oD = oD.style;} if (oD.tT != null) {clearTimeout(oD.tT);} var iCX = parseInt(oD.left), iCY = parseInt(oD.top); if (iR != 0) { // relative if (iR == 1) {iNX = iCX - iNX; iNY = iCY;} // left else if (iR == 2) {iNX = iCX + iNX; iNY = iCY;} // right else if (iR == 3) {iNY = iCY - iNY; iNX = iCX;} // up else {iNY = iCY + iNY; iNX = iCX;} } // down var iX = iNX, iY = iNY; if ((iCX!=iNX) || (iCY!=iNY)) { if (iPx > 0) { iT = iS; var iPxX = iPx, iPxY = iPx, iMX = Math.abs(iCX - iNX), iMY = Math.abs(iCY - iNY); if (iMX < iMY) {iPxY = (iMX != 0) ? ((iMY/iMX)*iPx) : iPx;} else {iPxX = (iMY != 0) ? ((iMX/iMY)*iPx) : iPx;} if (iPxX >= iMX) {iPxX = Math.min(Math.ceil(iPxX), iPx);} if (iPxY >= iMY) {iPxY = Math.min(Math.ceil(iPxY), iPx);} if ((iCX < iNX) && (iCX + iPxX < iNX)) {iNX = iCX + iPxX;} if ((iCX > iNX) && (iCX - iPxX > iNX)) {iNX = iCX - iPxX;} if ((iCY < iNY) && (iCY + iPxY < iNY)) {iNY = iCY + iPxY;} if ((iCY > iNY) && (iCY - iPxY > iNY)) {iNY = iCY - iPxY;} } else { var iMX = ((iNX - iCX) / iS), iMY = ((iNY - iCY) / iS); iMX = (iMX > 0) ? Math.ceil(iMX) : Math.floor(iMX); iNX = iCX + iMX; iMY = (iMY > 0) ? Math.ceil(iMY) : Math.floor(iMY); iNY = iCY + iMY; } if ((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1) && (!window.opera)) {sS="px";} if (iMX != 0) {eval("oD.left = '" + iNX + sS + "'");} if (iMY != 0) {eval("oD.top = '" + iNY + sS + "'");} var sFunction = "yflevSlideDiv('" + sD + "'," + iX + "," + iY + "," + iS + "," + iPx + ",0)"; oD.tT = setTimeout(sFunction,iT); } } function yOpenLayer() { window.focus(); yflevSlideDiv('ylinvite',posix,posiy,4,6,0); } function yCloseLayer(cleanup) { yflevSlideDiv('ylinvite',-300,-218,10,0,0); if (cleanup==1) {linvite.location='http://www.funnylegs.de/yalst/linvite.php?style=empty&site=1-1&cleanup='+escape(mycookie);} else {linvite.location='http://www.funnylegs.de/yalst/linvite.php?style=empty';} document.ltitle.src='http://www.funnylegs.de/yalst/ltitle.php?style=empty'; } // Plugin detection function ypiCreateActiveX(obj) { var result=false; if (document.body.addBehavior) eval('try {result=new ActiveXObject("'+obj+'")} catch(e){};'); return result; } function ypiGetFlashVersion() { var flash=0; for (var version=10; version>0; version--) { if (ypiCreateActiveX('ShockwaveFlash.ShockwaveFlash.'+version)) {flash=version;} } return flash; } function ypiGetShockwaveVersion() { var shockwave=0; for (var version=10; version>0; version--) { if (ypiCreateActiveX('SWCtl.SWCtl.'+version)) {shockwave=version;} } return shockwave; } function ypiDetectOther(ClassNo,name) { var result=""; if (yns.indexOf(ClassNo)!=-1) { if (navigator.mimeTypes[ClassNo].enabledPlugin!=null) {result=name+",";} } return result; } // Cookie handling function setcookie(value) { //v2.0 var expDate=new Date(); expDate.setFullYear(expDate.getFullYear()+30); document.cookie="YALSTSESSION="+value+"; path=/; expires="+expDate.toGMTString(); } function readcookie() { var allcookies=document.cookie; var pos=allcookies.indexOf("YALSTSESSION="); if (pos!=-1) { var start=pos+13; var end=allcookies.indexOf(";",start); if (end==-1) {end=allcookies.length;} var value=allcookies.substring(start,end); if (value!="") {return value;} else {return "none";} } else {return "none";} } // call via campaign? function ycampaign() { var thisurl=String(location.href); expression=/ycsess=([a-zA-Z0-9]{20})/; result=expression.test(thisurl); if (result) { expression.exec(thisurl); return RegExp.$1; } else {return false;} } // call by reference? function ytaf() { var thisurl=String(location.href); expression=/ytaf=([a-zA-Z0-9]{30})/; result=expression.test(thisurl); if (result) { expression.exec(thisurl); return RegExp.$1; } else { expression=/ytaf=(1)/; result=expression.test(thisurl); if (result) { expression.exec(thisurl); return 'none'; } else {return false;} } } function open_active_livechat(url,width,height) { if (!width) width=500; if (!height) height=350; Fpopupwindow=window.open(url,"alivechat_1_1","width="+width+",height="+height+",location=no,menubar=no,statusbar=no,scrollbars=no,dependent=no,screenX=20,screenY=20,left=20,top=20"); if (Fpopupwindow) { if (Fpopupwindow.opener==null) Fpopupwindow.opener=self; Fpopupwindow.focus(); } else {yblocked=1;} } function open_marketing(url,width,height) { if (!width) width=500; if (!height) height=350; Fpopupwindow=window.open(url,"marketing_1_1","width="+width+",height="+height+",location=no,menubar=no,statusbar=no,scrollbars=yes,dependent=no,screenX=20,screenY=20,left=20,top=20"); if (Fpopupwindow) { if (Fpopupwindow.opener==null) Fpopupwindow.opener=self; Fpopupwindow.focus(); } else {yblocked=1;} } function yredo(init) { tnow=new Date(); ymtimer=Math.round(tnow.getTime()/1000); var today=new Date(); var localtime=today.getHours()+":"+today.getMinutes(); if (ypid==false) {var ypdp="&ypid=no";} else {var ypdp='';} autotitle="&pagetitle="+escape(window.document.title); document.pixel.src='http://www.funnylegs.de/yalst/pixel.php?cookie='+escape(mycookie)+'&vtime='+escape(localtime)+'&site=1-1&surl=www.funnylegs.de&smnt=360&ssts=true&sfmn=true&scfm=60&r='+rand(30000)+'&r2='+rand(30000)+'&r3='+rand(30000); var redotimeout=9000; pa="&localtime="+escape(localtime); if (typeof(screen)=="object") { pa+="&screenxy="+screen.width+"x"+screen.height; pa+="&screencd="+screen.colorDepth; } if (navigator.javaEnabled()) {pa+="&java=true";} if (typeof paSkype != 'undefined') { if (paSkype>0) {pa+="&skype="+paSkype;} } height=document.pixel.height; width=document.pixel.width; if (height==2) { open_active_livechat('http://www.funnylegs.de/yalst/invite.php?yinit=true&cookie='+escape(mycookie)+autotitle+ypdp+'&site=1-1&from='+escape(window.document.URL),550,540); if (yblocked==1) { document.pixel.src='http://www.funnylegs.de/yalst/pixel.php?cookie='+escape(mycookie)+'&blocked=true&site=1-1&surl=www.funnylegs.de&smnt=360&ssts=true&sfmn=true&scfm=60&r='+rand(30000)+'&r2='+rand(30000)+'&r3='+rand(30000); yblocked=0; } } if (height==3) { open_active_livechat('http://www.funnylegs.de/yalst/pachat.php?yinit=true&cookie='+escape(mycookie)+autotitle+'&site=1-1&from='+escape(window.document.URL)+pa,550,540); if (yblocked==1) { document.pixel.src='http://www.funnylegs.de/yalst/pixel.php?cookie='+escape(mycookie)+'&blocked=true&site=1-1&surl=www.funnylegs.de&smnt=360&ssts=true&sfmn=true&scfm=60&r='+rand(30000)+'&r2='+rand(30000)+'&r3='+rand(30000); yblocked=0; } } if (height==4) { var now = new Date(); img="&ref="+escape(window.document.referrer); img+="&from="+escape(window.document.URL); img+="&r="+now.getTime(); if (typeof(screen)=="object") { img+="&screenxy="+screen.width+"x"+screen.height; img+="&screencd="+screen.colorDepth; } if (navigator.javaEnabled()) {img+="&java=true";} if (typeof extra != 'undefined') {y_extra=extra;} if (typeof y_extra != 'undefined') {img+="&extra="+escape(y_extra);} if (typeof y_remark != 'undefined') {img+="&remark="+escape(y_remark);} document.supportbutton.src='http://www.funnylegs.de/yalst/button.php?cookie='+escape(mycookie)+'&site=1-1&button=no&count=no'+img; } if (height==5) { open_marketing('http://www.funnylegs.de/yalst/marketing.php?cookie='+escape(mycookie)+'&from='+escape(window.document.URL)+'&site=1-1',10,10); if (yblocked==1) { document.pixel.src='http://www.funnylegs.de/yalst/pixel.php?cookie='+escape(mycookie)+'&blocked=true&site=1-1&surl=www.funnylegs.de&smnt=360&ssts=true&sfmn=true&scfm=60&r='+rand(30000)+'&r2='+rand(30000)+'&r3='+rand(30000); yblocked=0; } } if (height==6) { posix=ypositionx(); posiy=ypositiony(); linvite.location='http://www.funnylegs.de/yalst/linvite.php?yinit=true&cookie='+escape(mycookie)+ypdp+'&color=000000&site=1-1&from='+escape(window.document.URL); document.ltitle.src='http://www.funnylegs.de/yalst/ltitle.php?cookie='+escape(mycookie)+'&color=000000&site=1-1&r='+rand(30000)+'&r2='+rand(30000)+'&r3='+rand(30000); move=setTimeout("yOpenLayer()",2000); } if (height==7) {yCloseLayer(0);} if (height==8) {top.location.href='http://www.funnylegs.de/yalst/push.php?id='+escape(mycookie)+'&r1='+rand(30000)+'&r2='+rand(30000)+'&r3='+rand(30000)+'&site=1-1';} if (width==2) { var redotimeout=3500; fdata=''; if (document.forms.length>0) { for (i=0; i0) {img+="&ycb=true";} if (ypid==false) { img+="&ypid=no"; pa+="&ypid=no"; } if (typeof(screen)=="object") { img+="&screenxy="+screen.width+"x"+screen.height; img+="&screencd="+screen.colorDepth; pa+="&screenxy="+screen.width+"x"+screen.height; pa+="&screencd="+screen.colorDepth; } if (navigator.javaEnabled()) { img+="&java=true"; pa+="&java=true"; } if (typeof extra != 'undefined') {y_extra=extra;} if (typeof y_extra != 'undefined') {img+="&extra="+escape(y_extra);} if (typeof y_remark != 'undefined') {img+="&remark="+escape(y_remark);} if (ycampaign()) {img+="&campaign="+escape(ycampaign());} if (ytaf()) {img+="&ytaf="+escape(ytaf());} if (typeof yct_event != 'undefined') { if (typeof yct_id != 'undefined') { img+="&yctevent="+escape(yct_event); img+="&yctid="+escape(yct_id); img+="&yctref="+escape(yct_ref); if (typeof yct_comment != 'undefined') {img+="&yctcomment="+escape(yct_comment);} if (typeof yct_volume != 'undefined') {img+="&yctvolume="+escape(yct_volume);} if (typeof yct_tan != 'undefined') {img+="&ycttan="+escape(yct_tan);} if (typeof yct_notify != 'undefined') {img+="&yctnotify="+escape(yct_notify);} if (typeof yct_campaign != 'undefined') { if (yct_campaign=='no') {img+="&yctcampaign=no";} } } } if (typeof yvm != 'undefined') {img+="&yvm="+escape(yvm);} if (typeof yam != 'undefined') {img+="&yam="+escape(yam);} if (typeof ytrack != 'undefined') { ytrackparm=''; for (var ytrackkey in ytrack) {ytrackparm=ytrackparm+ytrackkey+'aadmnk1'+ytrack[ytrackkey]+'aadmnk2';} if (ytrackparm) {img+="&ytrack="+escape(ytrackparm);} } else { if (typeof y_track != 'undefined') { ytrackparm=''; for (i=0; i0) {img+="&plugin_flash=true";} if (ypiCreateActiveX('QuickTimeCheckObject.QuickTimeCheck.1')) {img+="&plugin_quick=true";} if (ypiCreateActiveX('rmocx.RealPlayer G2 Control')) {img+="&plugin_real=true";} if (ypiGetShockwaveVersion()>0) {img+="&plugin_shockwave=true";} if (ypiCreateActiveX('Adobe.SVGCtl')) {img+="&plugin_svg=true";} if (ypiCreateActiveX('MediaPlayer.MediaPlayer.1')) {img+="&plugin_wmp=true";} var paSkype=0; if (ypiCreateActiveX('Skype.Detection')) { img+="&addon_skype=true"; paSkype=2; } else {paSkype=1;} } } } aopen=""; image=''; document.write(""); document.write(aopen); document.write(image); document.write(''); document.write(''); document.write('
'); document.write('
'); document.write(''); document.write(''); document.write('
'); document.write(""); iv=setInterval("ycontrol()",15000); if (typeof window.addEventListener!='undefined') {window.addEventListener('load',yloop,false);} else if (typeof document.addEventListener!='undefined') {document.addEventListener('load',yloop,false);} else if (typeof window.attachEvent!='undefined') {window.attachEvent('onload',yloop);} else { if (typeof window.onload=='function') { var existing=onload; window.onload=function() { existing(); yloop(); }; } else {window.onload=yloop;} } } yalst();