function checkJSLogin(prev,pad,file,lid,i) { var AJAX = null; // Initialize the AJAX variable. if (window.XMLHttpRequest) { // Does this browser have an XMLHttpRequest object? AJAX=new XMLHttpRequest(); // Yes -- initialize it. } else { // No, try to initialize it IE style AJAX=new ActiveXObject("Microsoft.XMLHTTP"); // Wheee, ActiveX, how do we format c: again? } // End setup Ajax. if (AJAX==null) { // If we couldn't initialize Ajax... alert("Your browser doesn't support AJAX."); // Sorry msg. return false // Return false, couldn't set up ajax } AJAX.onreadystatechange = function() { // When the browser has the request info.. if (AJAX.readyState==4 || AJAX.readyState=="complete") { // see if the complete flag is set. callback(AJAX.responseText, prev,pad,file,lid,i); // Pass the response to our processing function } // End Ajax readystate check. } var url='http://www.persuader.nl/groettv/isLogedIn.php'; // This is the URL we will call. AJAX.open("GET", url, true); // Open the url this object was set-up with. AJAX.send(null); // Send the request. } function alertLoginMsg(){ alert('Je bent niet ingelogd. Log in om de video te bekijken of meld je eerst aan.'); } function loadFlashPlayer(prev,url,file,i,lid,rql) { document.getElementById('player').innerHTML=''; if(rql>0){ checkJSLogin(prev,url,file,lid,i);} else { callback('1',prev,url,file,lid,i); } } function LoadFlashBanner(){ var so = new SWFObject("http://www.persuader.nl/groettv/sponsors.swf", "sponsors", "160", "315", "6", "#FFFFFF"); so.addParam("wmode", "transparent"); so.addVariable("scale", "noscale"); so.addVariable("logoBase","http://www.persuader.nl/groettv/logos/"); so.addVariable("sCount", "6"); so.addVariable("sNames", "Tennisdiscount,HI.nl,megafun,Boxer Direct,Hunkemoller,Parship"); so.addVariable("sUrls", "http://www.tennisdiscount.nl/nl,http://ad.zanox.com/ppc/?9661435C2143354656T,http://www.megafun.com/?ref=41583,http://www.boxerdirect.nl/link/?id=022001,http://ad.zanox.com/ppc/?9708271C1048245469T,http://ad.zanox.com/ppc/?9758110C526761316T"); so.addVariable("sLogos", "1213872799.jpg,1217787705.jpg,1297434357.jpg,1297434179.jpg,1297434044.jpg,1297434300.jpg"); so.addVariable("lCount", "9"); so.addVariable("lIDs", "5,6,7,8,9,11,14,15,16"); so.addVariable("lNames", "Fun Pub Copacabana,Blow Up Disco,Altro Mondo Studios,Life Club,Baia Imperiale,Carnaby Disco,Gotha Discobar,Malindi Beach,Le Palme"); so.addVariable("lUrls", "copacabana,blowup,altromondo,lifeclub,baiaimperiale,carnabydisco,gotha,malindi,lepalme"); so.addVariable("lExtUrls", "http://www.copacabanarimini.com,http://www.blowup.it,http://www.altromondo.com,http://www.lifemedias.com,http://www.baiaimperiale.net,http://www.carnaby.it,http://www.gotha-rimini.com,http://www.malindi-bikini.com,http://www.groet.tv/lepalme"); so.addVariable("lLogos", "1217944256.jpg,1216296182.jpg,1216297047.jpg,1216297337.jpg,1216298102.jpg,1217660849.jpg,1217839743.jpg,1217839773.jpg,1218953194.jpg"); so.write("sponsors"); } function callback(serverData,prev,url,file,lid,i) { if(serverData){ window.document.sponsors.SetVariable('lokatieID',lid); var swf = new SWFObject("http://www.persuader.nl/groettv/flvplayer.swf","single","400","246","7"); swf.addParam("allowfullscreen","true"); swf.addParam("swliveconnect","true"); swf.setAttribute("style", ";"); swf.addVariable("file","http://dnl.interoute.com/{51a8c827-90a1-4bb5-984c-c67e4b62c3b3}/" + url + "/" + file); swf.addVariable("image",prev); swf.addVariable("backcolor","0x000000"); swf.addVariable("frontcolor","0xCCCCCC"); swf.addVariable("lightcolor","0x557722"); swf.addVariable("usefullscreen","false"); swf.addVariable("width","400"); swf.addVariable("height","246"); swf.write("player"); makeRequest('templates/tellafriend.php','tellafriend'); document.getElementById('tellafriend').style.visibility = 'visible'; iframe.location.href ="http://www.persuader.nl/groettv/registerClip.php?id="+i; } else { iframe.location.href ="http://www.persuader.nl/groettv/setWishClip.php?id="+i; var so = new SWFObject("http://www.persuader.nl/groettv/stillOnly.swf", "still","400","246","7"); so.addParam("scale", "noscale"); so.addVariable("file",prev); so.write("player"); } } function logout() { iframe.location.href = "http://www.persuader.nl/groettv/login.php?mode=logout"; } function contentLoad(url,dvname) { makeRequest(url,dvname); document.getElementById('tellafriend').style.visibility = 'hidden'; }