﻿/************************************************************************************   
*	Created By:			Steve Doggett
* Creation Date:	31/03/2007
* Edited ----------------------------------------------------------------------------
*		By:				On:
* Description -----------------------------------------------------------------------
*		Preloads all the images used in the gallery.
*
*   Functions:
*     swapPic( img )
*************************************************************************************/

/****
 * Swaps the main image, changing the alt text and the main text
 ****/
function swapPic( img )
{ 
  // Change the image and alt
  document.getElementById('imgMain').src = img.src;
  document.getElementById('imgMain').alt = img.alt;
  
  // Now change the main text
  switch(img.text)
  {
    case 'Angle':
      document.getElementById('imageText').innerHTML = gAngleText;
      break;
    case 'Dance':
      document.getElementById('imageText').innerHTML = gDanceText;
      break;
    case 'Fire':
      document.getElementById('imageText').innerHTML = gFireText;
      break;
    case 'Stilts':
      document.getElementById('imageText').innerHTML = gStiltsText;
      break;
  }
}

// Variable with the image text in to display 
gAngleText = '<h3>ANGLE GRINDING</h3>Megan uses the grace, poise and rhythm developed as a professional dancer combined with the highly skilled and thrilling spectacle of angle grinding to create a stunning visual display that will blow any audience away.<br /><br />Choreographed to music, the angle grinder creates a shower of sparks that dance to the beat. This is one act people do not forget.<br /><br />Fire and liability insurance are provided and therefore all safety requirements must be met. These can be discussed at the time of booking.';
gDanceText = '<h3>DANCE</h3>Megan has danced all her life, she\'s a graduate of performers college and has worked as a professional dancer ever since.<br /><br />Credits vary from commercial artists such as Robbie Williams to Bollywood films, traveling the world doing shows for audiences including the British Forces. She has a wealth of experience in corporate events including Christmas parties, trade balls and trade shows.';
gFireText = '<h3>FIRE</h3>The combination of fire and dance can create a graceful, elegant and entrancing performance, which can be choreographed with or without music, as most suited to your event. The burlesque sultriness of body burning and fire eating can be followed by the high energy of fire poi or staff, dazzling audiences of any type.<br /><br />Fire and liability insurance are provided; All safety requirements can be discussed at the time of booking.';
gStiltsText = '<h3>STILTS</h3>Megan is an accomplished stilt walker. She provides a variety of weird and wonderful characters that interact with audiences, towering above the crowd on stilts in bespoke costumes.<br /><br />Mixing comedy and conversation, stilt characters engage audiences in a novel way. A great way to keep your event a head and shoulders above the rest.';

// Angle Grinding Images
Angle1 = new Image();
Angle1.src = 'Images/Angle-grinding-1.jpg';
Angle1.alt = 'Angle grinding image';
Angle1.text = 'Angle';

Angle2 = new Image();
Angle2.src = 'Images/Angle-grinding-2.jpg';
Angle2.alt = 'Angle grinding image';
Angle2.text = 'Angle';

Angle3 = new Image();
Angle3.src = 'Images/Angle-grinding-mayhem.jpg';
Angle3.alt = 'Angle grinding image';
Angle3.text = 'Angle';

// Dance
Dance1 = new Image();
Dance1.src = 'Images/Fire Eating.jpg';
Dance1.alt = 'Dance image';
Dance1.text = 'Fire';

Dance2 = new Image();
Dance2.src = 'Images/Megan-picture-1.jpg';
Dance2.alt = 'Dance image';
Dance2.text = 'Dance';

Dance3 = new Image();
Dance3.src = 'Images/Megan-picture-2.jpg';
Dance3.alt = 'Dance image';
Dance3.text = 'Dance';

Dance4 = new Image();
Dance4.src = 'Images/Megan-picture-4.jpg';
Dance4.alt = 'Dance image';
Dance4.text = 'Dance';

// Fire
Fire1 = new Image();
Fire1.src = 'Images/Fire-fingers3.jpg';
Fire1.alt = 'Fire image';
Fire1.text = 'Fire';

Fire2 = new Image();
Fire2.src = 'Images/Fire-poi-2.jpg';
Fire2.alt = 'Fire image';
Fire2.text = 'Fire';

// Stilts
Stilts1 = new Image();
Stilts1.src = 'Images/Show Girl Fan Email.jpg';
Stilts1.alt = 'Stilts image - Show Girl Fan';
Stilts1.text = 'Stilts';

Stilts2 = new Image();
Stilts2.src = 'Images/_MG_3079.jpg';
Stilts2.alt = 'Stilts image - Family Fun';
Stilts2.text = 'Stilts';

Stilts3 = new Image();
Stilts3.src = 'Images/Christmas Tree Fairy.jpg';
Stilts3.alt = 'Stilts image - Christmas Tree';
Stilts3.text = 'Stilts';

Stilts4 = new Image();
Stilts4.src = 'Images/Frank.jpg';
Stilts4.alt = 'Stilts image - Frankenstein';
Stilts4.text = 'Stilts';

Stilts5 = new Image();
Stilts5.src = 'Images/Black and white masked ball.jpg';
Stilts5.alt = 'Stilts image - Black and white masked ball';
Stilts5.text = 'Stilts';

Stilts6 = new Image();
Stilts6.src = 'Images/_MG_4156.jpg';
Stilts6.alt = 'Stilts image - Burlesque';
Stilts6.text = 'Stilts';

Stilts7 = new Image();
Stilts7.src = 'Images/Black and white top hat.jpg';
Stilts7.alt = 'Stilts image - BW Top Hat';
Stilts7.text = 'Stilts';

Stilts8 = new Image();
Stilts8.src = 'Images/Santa.jpg';
Stilts8.alt = 'Stilts image - Santa';
Stilts8.text = 'Stilts';

Stilts9 = new Image();
Stilts9.src = 'Images/Ice Queen Swish Email.jpg';
Stilts9.alt = 'Stilts image - Ice Queen';
Stilts9.text = 'Stilts';




