// JavaScript Document

// Poll
function results (pollURL) {
resultsWindow = window.open(pollURL,"results","menubar=no,status=no,scrollbars=yes,resizable=no,width=600,height=400");
}

// Display English
function showEng (english){
	if (english > 0){
	window.document.getElementById("english" + english).style.display = "block";
	}
	if (english < 0){
	window.document.getElementById("english" + (english*-1)).style.display = "none";
	}
}

// Gallery 1.0 - Melbourne
var australia1 = new Array()
australia1[0]="Clicca le freccie a lato per scorrere le foto"
australia1[1]="Tutto e' cominciato cosi'..."
australia1[2]="Singapore"
australia1[3]="Melbourne International Airport"
australia1[4]="Incontri della prima notte"
australia1[5]="St. Kilda Beach di notte"
australia1[6]="Il fiume Yarra"
australia1[7]="Il centro: Bourke Street"
australia1[8]="Alexander Park, il laghetto attorno al quale gira il circuito"
australia1[9]="Federation Square"
australia1[10]="Flinder Street Station"
australia1[11]="Sculture vicino a casa"
australia1[12]="Festival del vino ai Docklands"
australia1[13]="Melbourne dell'Observation Deck"
australia1[14]="Grattacieli di South Bank"
australia1[15]="City by Night"
australia1[16]="La citta' colorata per i Commonwealth Games"
australia1[17]="I Magici BottleShop"
australia1[18]="Victoria - The place to be"
australia1[19]="La facciata del City Campus"
australia1[20]="Traffico nel campus"
australia1[21]="La settimana di orientamento"
australia1[22]="Concerto di apertura dell'anno!"
australia1[23]="Phillip Island, dove fanno MotoGP"
australia1[24]="Pic-Nic a Phillip Island"
australia1[25]="Cartolina da Phillip Island"
australia1[26]="Tony Frizione l'altro ieri"
australia1[27]="Wombat"
australia1[28]="Wombat stanco"
australia1[29]="Canguri affamati"
australia1[30]="Tony Frizione ieri"
australia1[31]="Koala"
australia1[32]="Gorilla in gabbia"
australia1[33]="Do not disturb Koalas"
australia1[34]="Controlla sotto la macchina prima di partire"
australia1[35]="Torquay"
australia1[36]="The Beach Boys"
australia1[37]="Incontri ravvicinati del quarto tipo"
australia1[38]="Steven Spelberg"
australia1[39]="Gangster party!"
australia1[40]="Gangster party continua"
australia1[41]="Tony"
australia1[42]="Amici dall'inizio"
australia1[43]="Non ho parole!"
australia1[44]="Due turisti"
australia1[45]="Lo chef e il suo aiutante"
australia1[46]="Lo chef"
australia1[47]="Fine"

ImageNames1 = new Object();
ImageNames1.length = 47; //Because arrays start at 0, the length is one  
                        //less than the number of images.
for (counter1 = 0; counter1 < 48; counter1++) {
    file_number1 = counter1 + 1;
    file_name1 = ("http://www.kylestanding.com/blog/images/australia1.0/" + file_number1 + ".jpg");
    ImageNames1[counter1] = file_name1;
}

which_image_loaded1 = 0;

function changeImage1(direction) {
    which_image_loaded1 += direction;
    if (which_image_loaded1 < 0)
        which_image_loaded1 = 47;  //Again, one less than the actual number of images.
    if (which_image_loaded1 > 47)
    which_image_loaded1 = 0;
    if (document.images)
        document.myimage1.src = ImageNames1[which_image_loaded1];
		document.getElementById('desc1').childNodes[0].nodeValue = australia1[which_image_loaded1];
}


///////////////////////////////////////////////////////////

// Gallery 1.0 - Sydney
var australia2 = new Array()
australia2[0]="Clicca le freccie a lato per scorrere le foto"
australia2[1]="Sydney dall'aereo"
australia2[2]="Bondi Beach"
australia2[3]="Le onde di Bondi Beach"
australia2[4]="Let's go surfing"
australia2[5]="Bondi Beach di notte"
australia2[6]="L'Harbour Bridge"
australia2[7]="Il Sydney Opera House"
australia2[8]="Le piastrelle del Sydney Opera House"
australia2[9]="I piedi puzzolenti di Antonio"
australia2[10]="La divertente monorotaia di Sydney"
australia2[11]="L'Observation Deck di Sydney"
australia2[12]="L'Harbour al tramonto"
australia2[13]="Veduta dal ponte"
australia2[14]="Altra veduta dal ponte"
australia2[15]="The Rocks: il quartiere piu' antico"
australia2[16]="Il taxi del mare"
australia2[17]="Piccola comitiva"
australia2[18]="Three monkeys pub"
australia2[19]="Serata nel mitico Tank"
australia2[20]="John Travolta in Febbre del Sabato Sera"
australia2[21]="Fontana di schiuma in centro!"
australia2[22]="I tre moschettieri"
australia2[23]="Alla ricerca di Nemo nell'acquario di Sydney"
australia2[24]="Dori"
australia2[25]="I pinguini di Madagascar"
australia2[26]="Squali"
australia2[27]="Il pesce piu' brutto"
australia2[28]="Se non ti uccide la caduta ti uccidera' il coccodrillo"
australia2[29]="Aragosta per Pasqua (12$)!"

ImageNames2 = new Object();
ImageNames2.length = 29; //Because arrays start at 0, the length is one  
                        //less than the number of images.
for (counter2 = 0; counter2 < 30; counter2++) {
    file_number2 = counter2 + 1;
    file_name2 = ("http://www.kylestanding.com/blog/images/australia2.0/" + file_number2 + ".jpg");
    ImageNames2[counter2] = file_name2;
}

which_image_loaded2 = 0;

function changeImage2(direction) {
    which_image_loaded2 += direction;
    if (which_image_loaded2 < 0)
        which_image_loaded2 = 29;  //Again, one less than the actual number of images.
    if (which_image_loaded2 > 29)
    which_image_loaded2 = 0;
    if (document.images)
        document.myimage2.src = ImageNames2[which_image_loaded2];
		document.getElementById('desc2').childNodes[0].nodeValue = australia2[which_image_loaded2];
}


///////////////////////////////////////////////////////////

// Gallery 1.0 - Tasmania
var australia3 = new Array()
australia3[0]="Click on the arrows to change photo"
australia3[1]="The first night"
australia3[2]="The other side of the table"
australia3[3]="Two beasts"
australia3[4]="Two beasts an a Tassie Devil"
australia3[5]="Hobart Park"
australia3[6]="The center of the Richmond's maze"
australia3[7]="Tasmanian Devil"
australia3[8]="Bushwalking in the Freycinet National park"
australia3[9]="Wineglass bay"
australia3[10]="Some trip mates"
australia3[11]="Wild Kangaroo"
australia3[12]="White beach"
australia3[13]="The est coast"
australia3[14]="Blow hole"
australia3[15]="Orange rocks"
australia3[16]="Wet foot"
australia3[17]="Lies"
australia3[18]="Launceston"
australia3[19]="Juventus Australian Club"

ImageNames3 = new Object();
ImageNames3.length = 19; //Because arrays start at 0, the length is one  
                        //less than the number of images.
for (counter3 = 0; counter3 < 20; counter3++) {
    file_number3 = counter3 + 1;
    file_name3 = ("http://www.kylestanding.com/blog/images/australia3.0/" + file_number3 + ".jpg");
    ImageNames3[counter3] = file_name3;
}

which_image_loaded3 = 0;

function changeImage3(direction) {
    which_image_loaded3 += direction;
    if (which_image_loaded3 < 0)
        which_image_loaded3 = 19;  //Again, one less than the actual number of images.
    if (which_image_loaded3 > 19)
    which_image_loaded3 = 0;
    if (document.images)
        document.myimage3.src = ImageNames3[which_image_loaded3];
		document.getElementById('desc3').childNodes[0].nodeValue = australia3[which_image_loaded3];
}

///////////////////////////////////////////////////////////

// Gallery 1.0 - Central Australia
var australia4 = new Array()
australia4[0]="Click on the arrows to change photo"
australia4[1]="Goodbye Melbourne"
australia4[2]="Ronf Ronf"
australia4[3]="Adelaide"
australia4[4]="Socceroos against me"
australia4[5]="Sunset in Adelaide"
australia4[6]="Huge Trucks"
australia4[7]="Approaching the desert"
australia4[8]="Salt lake"
australia4[9]="Salt lake history"
australia4[10]="Waiting for the train"
australia4[11]="Ops, I did it again..."
australia4[12]="The desert from the bus"
australia4[13]="Sleeping under the ground"
australia4[14]="Goood morning Coober Pedy"
australia4[15]="Walking under ground"
australia4[16]="View of Coober Pedy"
australia4[17]="Bus entertainment"
australia4[18]="Crossing the border"
australia4[19]="Alice Springs"
australia4[20]="Never been so close to Italy since February"
australia4[21]="Northen Territory national day"
australia4[22]="Desert stars"
australia4[23]="Aboriginal?"
australia4[24]="First beast: whatever"
australia4[25]="Second beast: spider"
australia4[26]="Third beast: punk pigeon"
australia4[27]="Fourth beast: wallabies"
australia4[28]="Fifth beast: camel"
australia4[29]="Simpson's gap"
australia4[30]="I tre dell'Ave Maria"
australia4[31]="Somewhere around Alice Springs"
australia4[32]="Rock climbing"
australia4[33]="Johnno"
australia4[34]="Desert sunset"
australia4[35]="Approaching Kings Canyon"
australia4[36]="Kings Canyon, down view"
australia4[37]="On the roof"
australia4[38]="Yoga practice"
australia4[39]="Kings Canyon, top view"
australia4[40]="Huge people"
australia4[41]="T-Shirt design"
australia4[42]="Aboriginal!"
australia4[43]="Uluru camp"
australia4[44]="Uluru, side view"
australia4[45]="Sun on Uluru"
australia4[46]="Uluru 6.34 pm"
australia4[47]="Uluru 6.39 pm"
australia4[48]="Uluru 6.45 pm"
australia4[49]="Sand"
australia4[50]="Standing on the fire"
australia4[51]="MacBook working at the uluru camp"
australia4[52]="What a photographer!"
australia4[53]="Marc's blog"
australia4[54]="Kata Tjuta"
australia4[55]="Walking into Kata Tjuta"
australia4[56]="Kata Tjuta National Park"
australia4[57]="The infinite way back"
australia4[58]="Bus entertainment"
australia4[59]="The crew, thanks guys!"


ImageNames4 = new Object();
ImageNames4.length = 59; //Because arrays start at 0, the length is one  
                        //less than the number of images.
for (counter4 = 0; counter4 < 60; counter4++) {
    file_number4 = counter4 + 1;
    file_name4 = ("http://www.kylestanding.com/blog/images/australia4.0/" + file_number4 + ".jpg");
    ImageNames4[counter4] = file_name4;
}

which_image_loaded4 = 0;

function changeImage4(direction) {
    which_image_loaded4 += direction;
    if (which_image_loaded4 < 0)
        which_image_loaded4 = 59;  //Again, one less than the actual number of images.
    if (which_image_loaded4 > 59)
    which_image_loaded4 = 0;
    if (document.images)
        document.myimage4.src = ImageNames4[which_image_loaded4];
		document.getElementById('desc4').childNodes[0].nodeValue = australia4[which_image_loaded4];
}

///////////////////////////////////////////////////////////

// Gallery 1.0 - Great Ocean Road
var australia5 = new Array()
australia5[0]="Click on the arrows to change photo"
australia5[1]="Just arrived"
australia5[2]="Crap weather, sunny canadians"
australia5[3]="Beach games"
australia5[4]="Great Ocean Road"
australia5[5]="Impressive waves"
australia5[6]="The crew"
australia5[7]="I'm addicted"
australia5[8]="Teddy's lookout"
australia5[9]="Approaching the Twelve Apostolates"
australia5[10]="One of the Apostolates: St. Mark from Dortmund"
australia5[11]="Others Apostolates"
australia5[12]="Helpful signs"
australia5[13]="Car entertainment"
australia5[14]="Before..."
australia5[15]="...Later!"
australia5[16]="The end."


ImageNames5 = new Object();
ImageNames5.length = 16; //Because arrays start at 0, the length is one  
                        //less than the number of images.
for (counter5 = 0; counter5 < 17; counter5++) {
    file_number5 = counter5 + 1;
    file_name5 = ("http://www.kylestanding.com/blog/images/australia5.0/" + file_number5 + ".jpg");
    ImageNames5[counter5] = file_name5;
}

which_image_loaded5 = 0;

function changeImage5(direction) {
    which_image_loaded5 += direction;
    if (which_image_loaded5 < 0)
        which_image_loaded5 = 16;  //Again, one less than the actual number of images.
    if (which_image_loaded5 > 16)
    which_image_loaded5 = 0;
    if (document.images)
        document.myimage5.src = ImageNames5[which_image_loaded5];
		document.getElementById('desc5').childNodes[0].nodeValue = australia5[which_image_loaded5];
}

///////////////////////////////////////////////////////////

// Gallery 1.0 - Oz trip
var australia6 = new Array()
australia6[0]="Click on the arrows to change photo"
australia6[1]="My house: outside"
australia6[2]="My house: inside"
australia6[3]="Byron Bay light house"
australia6[4]="Linda's Brisbane house"
australia6[5]="Impressive marketing in Brisbane"
australia6[6]="Brisbane by night"
australia6[7]="Beach highway"
australia6[8]="115 km/h on the beach!"
australia6[9]="Fraser Island: view through the forest"
australia6[10]="Lake Mckenzie's beach"
australia6[11]="Wild dog: australian dingo"
australia6[12]="Rainbow Beach"
australia6[13]="Bundaberg rum distillery"
australia6[14]="Hit the road Jack!"
australia6[15]="Cra, cra..."
australia6[16]="Clubbing in Airlie Beach"
australia6[17]="The Great Barrier Reef"
australia6[18]="Snorkeling at the barrier reef"
australia6[19]="Underwater view"
australia6[20]="Antonio's face in the morning"
australia6[21]="Sunset at the Whitsundays Islands"
australia6[22]="My Island"
australia6[23]="Marc and Antonio"
australia6[24]="Whitsundays view from Hamilton Island"
australia6[25]="Marc, me and the snorter"
australia6[26]="Approaching Whiteheaven Beach"
australia6[27]="Whiteheaven Beach"
australia6[28]="Whiteheaven's awesome sand"
australia6[29]="Breakfast at Mission Beach"
australia6[30]="View of Green Island"
australia6[31]="Mission Beach"
australia6[32]="Ball maker little crab"
australia6[33]="The result of the job"
australia6[34]="The inspiration of the crab"
australia6[35]="Tropical Australia"
australia6[36]="Sugar cane sunset"


ImageNames6 = new Object();
ImageNames6.length = 36; //Because arrays start at 0, the length is one  
                        //less than the number of images.
for (counter6 = 0; counter6 < 37; counter6++) {
    file_number6 = counter6 + 1;
    file_name6 = ("http://www.kylestanding.com/blog/images/australia6.0/" + file_number6 + ".jpg");
    ImageNames6[counter6] = file_name6;
}

which_image_loaded6 = 0;

function changeImage6(direction) {
    which_image_loaded6 += direction;
    if (which_image_loaded6 < 0)
        which_image_loaded6 = 36;  //Again, one less than the actual number of images.
    if (which_image_loaded6 > 36)
    which_image_loaded6 = 0;
    if (document.images)
        document.myimage6.src = ImageNames6[which_image_loaded6];
		document.getElementById('desc6').childNodes[0].nodeValue = australia6[which_image_loaded6];
}
