var xmlhttp; var jackpotnames = new Array(); var jackpotamounts = new Array(); var jackpotimages = new Array(); var current=0; function loadXMLDoc(){ var url = '/webservices/requests/jackpots.php'; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); xmlhttp.onreadystatechange=stateChange; xmlhttp.open("GET",url,true); xmlhttp.send(null); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.onreadystatechange=stateChange; xmlhttp.open("GET",url,true); xmlhttp.send(); } } function stateChange(){ if (xmlhttp.readyState==4){ if (xmlhttp.status==200){ txt=""; x=xmlhttp.responseXML.documentElement.getElementsByTagName("Jackpot"); // txt=txt + x.length; for (i=0;i'; var xxxx = x[i].getElementsByTagName("JackpotImg"); var ji = xxxx[0].firstChild.nodeValue; jackpotimages[i] = ji; txt=txt + ''; var xx = x[i].getElementsByTagName("JackpotName"); var jn = xx[0].firstChild.nodeValue; jackpotnames[i] = jn; txt=txt + ''+jn + ''; var xxx = x[i].getElementsByTagName("JackpotAmount"); var ja = xxx[0].firstChild.nodeValue; jackpotamounts[i] = ja; txt=txt + ''+ja + ''; txt=txt + ''; } document.getElementById('gameslist').innerHTML=txt; $(function() { $(".carousel").jCarouselLite({ btnNext: ".next", btnPrev: ".prev", auto: 3000, speed: 800, visible:1 }); }); $(function() { $(".carouselv").jCarouselLite({ btnNext: ".next", btnPrev: ".prev", auto: 3000, speed: 200, visible:1, vertical:true }); }); } else { alert("Problem retrieving data:" + xmlhttp.statusText); } } //updateFeedbox(0); } function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } function nextgame(){ /* if(current == jackpotimages.length-1){ current = 0; }else{ current = current + 1; } updateFeedbox(current); */ } function pregame(){ /* if(current == 0){ current = jackpotimages.length - 1; }else{ current = current - 1; } updateFeedbox(current); */ } function updateFeedbox(num){ if(num === false){num = 0;} // update image document.getElementById('gamimg').src = jackpotimages[num]; // update game name document.getElementById('gamename').innerHTML = jackpotnames[num]; //update game ammount document.getElementById('gameammo').innerHTML = jackpotamounts[num]; } jackpotimages[0] = 'high-roller.jpg'; jackpotnames[0] = 'High Roller'; jackpotamounts[0] = '3161200'; //addLoadEvent(updateFeedbox); addLoadEvent(loadXMLDoc); /////////////////////////////////////////////////// /// Jcarousellite 1 0 1 (function($) { // Compliant with jquery.noConflict() $.fn.jCarouselLite = function(o) { o = $.extend({ btnPrev: null, btnNext: null, btnGo: null, mouseWheel: false, auto: null, speed: 200, easing: null, vertical: false, circular: true, visible: 3, start: 0, scroll: 1, beforeStart: null, afterEnd: null }, o || {}); return this.each(function() { // Returns the element collection. Chainable. var running = false, animCss=o.vertical?"top":"left", sizeCss=o.vertical?"height":"width"; var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl = tLi.size(), v = o.visible; if(o.circular) { ul.prepend(tLi.slice(tl-v-1+1).clone()) .append(tLi.slice(0,v).clone()); o.start += v; } var li = $("li", ul), itemLength = li.size(), curr = o.start; div.css("visibility", "visible"); li.css({overflow: "hidden", float: o.vertical ? "none" : "left"}); ul.css({margin: "0", padding: "0", position: "relative", "list-style-type": "none", "z-index": "1"}); div.css({overflow: "hidden", position: "relative", "z-index": "2", left: "0px"}); var liSize = o.vertical ? height(li) : width(li); // Full li size(incl margin)-Used for animation var ulSize = liSize * itemLength; // size of full ul(total length, not just for the visible items) var divSize = liSize * v; // size of entire div(total length for just the visible items) li.css({width: li.width(), height: li.height()}); ul.css(sizeCss, ulSize+"px").css(animCss, -(curr*liSize)); div.css(sizeCss, divSize+"px"); // Width of the DIV. length of visible images if(o.btnPrev) $(o.btnPrev).click(function() { return go(curr-o.scroll); }); if(o.btnNext) $(o.btnNext).click(function() { return go(curr+o.scroll); }); if(o.btnGo) $.each(o.btnGo, function(i, val) { $(val).click(function() { return go(o.circular ? o.visible+i : i); }); }); if(o.mouseWheel && div.mousewheel) div.mousewheel(function(e, d) { return d>0 ? go(curr-o.scroll) : go(curr+o.scroll); }); if(o.auto) setInterval(function() { go(curr+o.scroll); }, o.auto+o.speed); function vis() { return li.slice(curr).slice(0,v); }; function go(to) { if(!running) { if(o.beforeStart) o.beforeStart.call(this, vis()); if(o.circular) { // If circular we are in first or last, then goto the other end if(to<=o.start-v-1) { // If first, then goto last ul.css(animCss, -((itemLength-(v*2))*liSize)+"px"); // If "scroll" > 1, then the "to" might not be equal to the condition; it can be lesser depending on the number of elements. curr = to==o.start-v-1 ? itemLength-(v*2)-1 : itemLength-(v*2)-o.scroll; } else if(to>=itemLength-v+1) { // If last, then goto first ul.css(animCss, -( (v) * liSize ) + "px" ); // If "scroll" > 1, then the "to" might not be equal to the condition; it can be greater depending on the number of elements. curr = to==itemLength-v+1 ? v+1 : v+o.scroll; } else curr = to; } else { // If non-circular and to points to first or last, we just return. if(to<0 || to>itemLength-v) return; else curr = to; } // If neither overrides it, the curr will still be "to" and we can proceed. running = true; ul.animate( animCss == "left" ? { left: -(curr*liSize) } : { top: -(curr*liSize) } , o.speed, o.easing, function() { if(o.afterEnd) o.afterEnd.call(this, vis()); running = false; } ); // Disable buttons when the carousel reaches the last/first, and enable when not if(!o.circular) { $(o.btnPrev + "," + o.btnNext).removeClass("disabled"); $( (curr-o.scroll<0 && o.btnPrev) || (curr+o.scroll > itemLength-v && o.btnNext) || [] ).addClass("disabled"); } } return false; }; }); }; function css(el, prop) { return parseInt($.css(el[0], prop)) || 0; }; function width(el) { return el[0].offsetWidth + css(el, 'marginLeft') + css(el, 'marginRight'); }; function height(el) { return el[0].offsetHeight + css(el, 'marginTop') + css(el, 'marginBottom'); }; })(jQuery); ///////////////////////// /// Switch box function switchMe(){ if(document.getElementById('fisw')){ var codes = document.getElementById('fisw').innerHTML; document.getElementById('fisw').innerHTML = document.getElementById('sesw').innerHTML; document.getElementById('sesw').innerHTML = codes; setTimeout("switchMe()",7000); } } addLoadEvent(switchMe); ///////////////////////////////////////////////////////////////////////////////////////////////// // author; Adrian Mursec @ theEword // var opac = 0; // set opacity to full var current = 0; // current testimonial var childCount = 0; var scre = null; var uls = null; //middle rotate var opact = 0; // set opacity to full var currentt = 0; // current testimonial var childCountt = 0; var scret = null; var ulst = null; //middle rotate var opact = 0; // set opacity to full var currentl = 0; // current testimonial var childCountl = 0; var scretl = null; var ulstl = null; function countWords(thevar){ var totalwords; var returnHTML = ""; //totalwords = thevar.split(' ').length; //return totalwords; totalwords = thevar.split(' '); var i = 0; while (i < 35) { if (i == 0) { returnHTML = returnHTML+totalwords[i] } else { returnHTML = returnHTML+" "+totalwords[i]; } i = i+1; } return returnHTML; } function runfade(){ if(document.getElementById("testaul")){ uls = document.getElementById("testaul"); /// get content list parent childCount = uls.getElementsByTagName('li').length; // count testimonials / li's scre = document.getElementById('testmon'); // set testimonial screen document.getElementById('testaul').style.display = 'none';// hide ul scre.innerHTML = uls.getElementsByTagName('li')[0].innerHTML; //////////////////////// middl3e coulmn if(document.getElementById("testault")){ ulst = document.getElementById("testault"); /// get content list parent childCountt = ulst.getElementsByTagName('li').length; // count testimonials / li's scret = document.getElementById('testmont'); // set testimonial screen document.getElementById('testault').style.display = 'none';// hide ul scret.innerHTML = ulst.getElementsByTagName('li')[0].innerHTML; } setTimeout("nextTestimonial()",5000); } } function nextTestimonial(){ if(current != (childCount-1)){ current = current + 1; scre.innerHTML = uls.getElementsByTagName('li')[current].innerHTML; }else{ current = 0; scre.innerHTML = uls.getElementsByTagName('li')[current].innerHTML; } ///// middle colulmn rotate if(document.getElementById("testault")){ if(currentt != (childCountt-1)){ currentt = currentt + 1; scret.innerHTML = ulst.getElementsByTagName('li')[currentt].innerHTML; }else{ currentt = 0; scret.innerHTML = ulst.getElementsByTagName('li')[currentt].innerHTML; } } //// setTimeout("nextTestimonial()",4000); } function lower(){ if(opac > 0){ opac = (opac - 0.20); document.getElementById('imgfad').style.opacity = opac; document.getElementById('imgfad').style.filter = 'alpha(opacity='+(opac*100)+')'; setTimeout("lower()",250); }else{ setTimeout("higher()",4000); } } function higher(){ if(opac < 1){ opac = (opac + 0.20); document.getElementById('imgfad').style.opacity = opac; document.getElementById('imgfad').style.filter = 'alpha(opacity='+(opac*100)+')'; setTimeout("higher()",250); }else{ nextTestimonial() lower(); } } /////////////////// var childCountlq = 1; var currentlq = 0; function runfadeleft(){ //////////////////////// middl3e coulmn if(document.getElementById("testaultl")){ ulstl = document.getElementById("testaultl"); /// get content list parent childCountl = ulstl.getElementsByTagName('li').length; // count testimonials / li's scretl = document.getElementById('testmontl'); // set testimonial screen document.getElementById('testaultl').style.display = 'none';// hide ul scretl.innerHTML = ulstl.getElementsByTagName('li')[0].innerHTML; setTimeout("nextTestimoniall()",3000); } } function nextTestimoniall(){ //document.getElementById('linum').innerHTML = (currentlq + ' ' +(childCountlq-1) ); if(currentlq != (childCountlq - 1 )){ currentlq = currentlq + 1; scretl.innerHTML = ulstl.getElementsByTagName('li')[currentlq].innerHTML; }else{ currentlq = 0; scretl.innerHTML = ulstl.getElementsByTagName('li')[currentlq].innerHTML; } ///// middle colulmn rotate if(document.getElementById("testaultl")){ if(currentl != (childCountl-1)){ currentl = currentl + 1; scretl.innerHTML = ulstl.getElementsByTagName('li')[currentl].innerHTML; }else{ currentl = 0; scretl.innerHTML = ulstl.getElementsByTagName('li')[currentl].innerHTML; } } //// setTimeout("nextTestimoniall()",3000); } /////////////// addLoadEvent(runfade); addLoadEvent(runfadeleft); function homepopup(num){ var links = new Array(); links[0] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page_authenticated.do?gameType=Iron%20Man%20SA"; links[1] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page_authenticated.do?gameType=Castle%20Cashalot%20SA"; links[2] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page_authenticated.do?gameType=Wheel%20Of%20Light%20SA"; links[3] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page_authenticated.do?gameType=Cogmania%20SA"; links[4] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page_authenticated.do?gameType=Block%20Bashers%20SA"; links[5] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page_authenticated.do?gameType=Risk%20It%20SA"; links[6] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page_authenticated.do?gameType=Donkey%20Derby%20SA"; links[7] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page_authenticated.do?gameType=Video%20Roulette%20SA"; links[9] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page_authenticated.do?gameType=Dynamite%20Digger%20SA"; links[10] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page_authenticated.do?gameType=Bouncy%20Balls%20SA" links[11] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page_authenticated.do?gameType=Clover%20Rollover%20SA" links[12] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page_authenticated.do?gameType=Dynamite%20Digger%20SA" popupWin = window.open(links[num],null, 'menubar, toolbar=no, location=no, directories, status=no, scrollbars, resizable, dependent, width=800, height=600, left=0, top=0') return false; } function homepopup2(num){ var links = new Array(); links[1] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page.do?gameType=Bingo" links[2] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page.do?gameType=Bingo" links[3] = "https://buckinghambingo.virtuefusion.com/cwc/play/game_page.do?gameType=Bingo" popupWin = window.open(links[num],null, 'menubar, toolbar=no, location=no, directories, status=no, scrollbars, resizable, dependent, width=1000, height=800, left=0, top=0') return false; }