//Date           Name        Description
//21/8/2009      S Rao       Added winners - Dave Bromley, Martin Waterhouse.
//10/10/2009     S Rao       Added winners - Phil HorsePool and Ben Sithole.
//20/10/2009     S Rao       Added winners - Sandra Bain and Dave Jenkins.
//21/10/2009     S Rao       Added winners - Jeffery.R, Ermor.D and Lou.H
//22/10/2009     S Rao       Removed winners Kathleen.B and Carl.K
//30/10/2009     S Rao       Added winners - Ingrid.K, Clive.H and Michel.E

var initWin = 0;
var winbox = 0;

var winName = new Array(
"Ingrid Knox",
"Clive Heale",
"Michel Euesden",
"Jeffery Rogers",
"Esmor Davies",
"Lou Haynes",
"Sandra Bain",
"Dave Jenkins",
"Phil Horsepool",
"Ben Sithole",
"Martin Waterhouse",
"David Howard",
"John Dodds",
"Dave Bromley",
"Dennis Baker",
"Diana Krieg",
"Maximilian Schwieger"
);

var winPic = new Array(
"https://www.virtualworlddirect.com/images/golden_ticket/michel_euesden.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/clive_heale.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/Ingrid_Knox.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/jeffery_rogers.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/esmor_davies.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/lou_haynes.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/sandra_bain.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/dave_jenkins.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/phil_horsepool.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/ben_sithole.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/martin_waterhouse.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/david_howard.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/john_dodds.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/dave_bromley.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/dennis_baker.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/diana_krieg.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/winner.jpg"
);

var leftrightslide = new Array(
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/ingrid_knox.jpg' alt='Ingridf Knox' border='0' onmouseover='LoadWinner(0,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/clive_heale.jpg' alt='Clive Heale' border='0' onmouseover='LoadWinner(1,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/michel_euesden.jpg' alt='Michel Euesden' border='0' onmouseover='LoadWinner(2,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/jeffery_rogers.jpg' alt='Jeffery Roger' border='0' onmouseover='LoadWinner(3,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/esmor_davies.jpg' alt='Esmor Davies' border='0' onmouseover='LoadWinner(4,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/images/golden_ticket/lou_haynes.jpg' alt='Lou Haynes' border='0' onmouseover='LoadWinner(5,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/sandra_bain.jpg' alt='Sandra Bain' border='0' onmouseover='LoadWinner(6,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/dave_jenkins.jpg' alt='Dave Jenkins' border='0' onmouseover='LoadWinner(7,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/phil_horsepool.jpg' alt='Phil Horsepool' border='0' onmouseover='LoadWinner(8,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/ben_sithole.jpg' alt='Ben Sithole' border='0' onmouseover='LoadWinner(9,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/martin_waterhouse.jpg' alt='Martin Waterhouse' border='0' onmouseover='LoadWinner(10,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/david_howard.jpg' alt='David Howard' border='0' onmouseover='LoadWinner(11,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/images/golden_ticket/john_dodds.jpg' alt='John Dodds' border='0' onmouseover='LoadWinner(12,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/dave_bromley.jpg' alt='Dave Bromley' border='0' onmouseover='LoadWinner(13,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/dennis_baker.jpg' alt='Dennis Baker'  border='0' onmouseover='LoadWinner(14,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/diana_krieg.jpg' alt='Diana Krieg' border='0' onmouseover='LoadWinner(15,1)'>",
"<img src='https://www.virtualworlddirect.com/images/golden_ticket/winner.jpg' alt='Maximilian Schwieger' border='0' onmouseover='LoadWinner(16,1)'>"
);

var winTitle = new Array(
"Muddyfox Mountain Bike",
"Dell Net Book",
"Nintendo Dsi",
"Olympus X-42 12MP Camera",
"Grundig 16\" HD TV",
"Supercar Experience",
"Flip Mino Camcorder",
"Afga 8\" Digital Photo Frame",
"Wii and Sports Game",
"Sat Nav NAVMAN F15 GPS",
"Sat Nav",
"Muddyfox Mountain Bike",
"iPod Touch",
"Olympus X-42 12MP Camera",
"SONY Bravia 42\" TV",
"Sat Nav NAVMAN F15 GPS",
"Digital Camera"
);

var winImage = new Array(
"https://www.virtualworlddirect.com/images/golden_ticket/muddyfox_vortex.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/dell_netbook.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/nintendo_dsi.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/olympus_x42.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/Grundig16in.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/supercar_experience.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/flip_mino.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/agfa_photo.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/wii_and_sports_game.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/satnav2.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/binatone_g350.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/muddyfox_vortex.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/ipod_touch.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/olympus_x42.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/42inch_flattv.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/satnav.jpg",
"https://www.virtualworlddirect.com/images/golden_ticket/digital_camera.jpg"
);

var winText = new Array(
"\"VWD's e-lottery is more than just a very interesting way to take part in the lottery. I have only been a member for a few weeks, and I have already won a prize!\"",
"\"I have been an e-lottery member since October 2004 and would not play the lottery any other way. To October 2009, my EuroMillions syndicate has had eighty wins, in which I have had a share!\"",
"\"My friends recommended that I play the lottery this way, and you can't go wrong with a good recommendation.\"",
"\"I regularly bank cheques of accumulated e-lottery winnings - winning small amounts almost every week - much more than I ever won playing on my own.\"",
"\"It is so easy to take part in the draws. Being in a syndicate really does improve your chances of winning a payout.\"",
"\"I have been playing for a while now and have won a few times,but a great surprise to win a prize in the golden ticket promotion too.\"",
"\"Winning a Golden Ticket prize simply gives me even more confidence to play the e-lottery way.\"",
"\"I have been with e-lottery now for over 5 years, and just when I thought things couldn’t get any better I win a prize with my Golden Ticket! It’s such a simple and more convenient way to play the lottery.\"",
"\"I have been playing the EuroMillions and Spanish Lottery with the e-lottery syndicate for over a year now, and although we haven't yet won a major prize the syndicate has had over twenty smaller prizes.\"",
"\"I play the e-lottery way because...it has the best chances of winning big prizes.\"",
"\"e-lottery gives me 44 times the chance of winning on the UK Lotto. It's a no-brainer\"",
"\"I enjoy being an active Affiliate with a successful group, and winning a Golden Ticket prize was a fantastic bonus!\"",
"\"It's simple to play the lottery this way - no more hassle, no more travelling to the shops to buy tickets.\"",
"\"I have been a member of VWD nearly from the start. In all those years I have never missed a lottery draw and have been a winner many times.\"",
"\"I am so impressed with the security measures taken by this companies on-line business, which makes me excited and confident to be part of this huge opportunity.\"",
"\"I am so thrilled to have won a Golden Ticket prize and ecstatic to be one of VWD's Australian syndicate members.\"`",
"\"I live in Namibia and find that this is the only way I can take part. Now I never miss a lottery draw.\""
);

// preload images
for (i = 0; i <= winPic.length; i++) {
    var x = new Image;
    x.src = winPic[i];
    x.src = winImage[i];
}

function LoadWinner(Count,mode)
{

document.images.winImage.src = winImage[Count];
document.getElementById("winTitle").innerHTML = winTitle[Count];
document.images.winPic.src = winPic[Count];
document.getElementById("winName").innerHTML = winName[Count];
document.getElementById("winText").innerHTML = winText[Count];
initWin = Count;
initWin++;
if (initWin >= winPic.length) initWin = 0;
if (mode == 0)
    winbox = setTimeout ("LoadWinner(" + initWin + ",0)", 10000 );
else
    clearTimeout(winbox);
}

function ChangeWin(mode)
{
   if (mode == 1)
        clearTimeout(winbox);
   else
        winbox = setTimeout ("LoadWinner(" + initWin + ",0)", 3000 );
}
ChangeWin(0);


//Specify the slider's width (in pixels)
var sliderwidth="450px"
//Specify the slider's height
var sliderheight="58px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=1
//configure background color:
slidebgcolor="#ffffdf"

//Specify the slider's images

var finalslide=''


//Specify gap between each image (use HTML):
var imagegap=" "

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=5


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide

function fillup()
{
    if (iedom)
    {
        cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
        cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
        cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
        actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
        cross_slide2.style.left=actualwidth+slideshowgap+"px"
    }
    else if (document.layers)
    {
        ns_slide=document.ns_slidemenu.document.ns_slidemenu2
        ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
        ns_slide.document.write(leftrightslide)
        ns_slide.document.close()
        actualwidth=ns_slide.document.width
        ns_slide2.left=actualwidth+slideshowgap
        ns_slide2.document.write(leftrightslide)
        ns_slide2.document.close()
    }
    lefttime=setInterval("slideleft()",60)
}

window.onload=fillup


function slideleft()
{
    //if (copyspeed == 0)
    //    clearInterval(winbox);

    if (iedom)
    {
        if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
            cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
        else
            cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"

        if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
            cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
        else
            cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"
    }
    else if (document.layers)
    {
        if (ns_slide.left>(actualwidth*(-1)+8))
            ns_slide.left-=copyspeed
        else
            ns_slide.left=ns_slide2.left+actualwidth+slideshowgap

        if (ns_slide2.left>(actualwidth*(-1)+8))
            ns_slide2.left-=copyspeed
        else
            ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
    }
}

if (iedom||document.layers)
{
    with (document)
    {
        document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
        if (iedom)
        {
        write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
        write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0;ChangeWin(1);" onMouseout="copyspeed=slidespeed;ChangeWin(0);">')
        write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
        write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')
        write('</div></div>')
        }
        else if (document.layers)
        {
        write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
        write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0;ChangeWin(1);" onMouseout="copyspeed=slidespeed;ChangeWin(0);"></layer>')
        write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0;ChangeWin(1);" onMouseout="copyspeed=slidespeed;ChangeWin(0);"></layer>')
        write('</ilayer>')
        }
        document.write('</td></table>')
    }
}

