function WM_preloadImages() {

  // Don't bother if there's no document.images
  if (document.images) {
    if (typeof(document.WM) == 'undefined'){
      document.WM = new Object();
    }
    document.WM.loadedImages = new Array();
    // Loop through all the arguments.
    var argLength = WM_preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // For each arg, create a new image.
      document.WM.loadedImages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
    }
  }
}


 alt0 = new Image();
 alt0.src = "../images/edk_logo1_intro.gif";

 alt1 = new Image();
 alt1.src = "../images/edk_logo1.gif";

 alt2 = new Image();
 alt2.src = "../images/edk_logo2.gif";

 alt3 = new Image();
 alt3.src = "../images/googleMap.gif";
 
 alt4 = new Image();
 alt4.src = "../images/title_flickr.jpg";
 
 alt5 = new Image();
 alt5.src = "../images/title_news.jpg";
 
 alt6 = new Image();
 alt6.src = "../images/title_googleMap.jpg";
 
 alt7 = new Image();
 alt7.src = "../images/title_twitter.jpg";
 
 alt8 = new Image();
 alt8.src = "../images/btn_arrowGray.gif";
 
 alt9 = new Image();
 alt9.src = "../images/btn_arrowGreen.gif";
 
 alt10 = new Image();
 alt10.src = "../images/nav/clients_off.gif";
 
 alt11 = new Image();
 alt11.src = "../images/nav/clients_off.gif";
 
 alt12 = new Image();
 alt12.src = "../images/nav/clients_on.gif";
 
 alt13 = new Image();
 alt13.src = "../images/nav/downloads_off.gif";
 
 alt14 = new Image();
 alt14.src = "../images/nav/downloads_on.gif";
 
 alt15 = new Image();
 alt15.src = "../images/nav/news_off.gif";
 
 alt16 = new Image();
 alt16.src = "../images/nav/news_on.gif";
 
 alt17 = new Image();
 alt17.src = "../images/nav/people_off.gif";
 
 alt18 = new Image();
 alt18.src = "../images/nav/people_on.gif";
 
 alt19 = new Image();
 alt19.src = "../images/nav/places_off.gif";
 
 alt20 = new Image();
 alt20.src = "../images/nav/places_on.gif";
 
 alt21 = new Image();
 alt21.src = "../images/nav/personal_off.gif";
 
 alt22 = new Image();
 alt22.src = "../images/nav/personal_on.gif";

 alt23 = new Image();
 alt23.src = "../images/nav/shop_off.gif";
 
 alt24 = new Image();
 alt24.src = "../images/nav/shop_on.gif";

 alt25 = new Image();
 alt25.src = "../images/nav/slash.gif";

// Clients randomizer
var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

image = new StringArray(13)
image[0] = 'images/clients/edk_angus.jpg'
image[1] = 'images/clients/edk_columbiaFootball.jpg'
image[2] = 'images/clients/edk_gravityGames.jpg'
image[3] = 'images/clients/edk_streetSessions.jpg'
image[4] = 'images/clients/edk_shanghaiExpo.jpg'
image[5] = 'images/clients/edk_vitalTheatre.jpg'
image[6] = 'images/clients/edk_fringeNYC.jpg'
image[7] = 'images/clients/edk_JPMorgan.jpg'
image[8] = 'images/clients/edk_miracleWhip.jpg'
image[9] = 'images/clients/edk_hamasaku.jpg'
image[10] = 'images/clients/edk_slimJim.jpg'
image[11] = 'images/clients/edk_kyocera.jpg'
image[12] = 'images/clients/edk_centralParkConservancy.jpg'

var ran = 60/image.length

function ranimage() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/ran)
    return(image[core])
}
//-->



// Clients rollover
if (document.images)
 {
   image_off= new Image(796,471);
   image_off.src="images/clients/edk_slimjim.jpg";  

   image1= new Image(746,471);
   image1.src="images/clients/edk_angus.jpg";  
   image2= new Image(746,471);
   image2.src="images/clients/edk_chase.jpg";
   image3= new Image(746,471);
   image3.src="images/clients/edk_chevron.jpg";  
   image4= new Image(746,471);
   image4.src="images/clients/edk_columbiaFootball.jpg";  
   image5= new Image(746,471);
   image5.src="images/clients/edk_gravityGames.jpg";  
   image6= new Image(746,471);
   image6.src="images/clients/edk_streetSessions.jpg";  
   image7= new Image(746,471);
   image7.src="images/clients/edk_shanghaiExpo.jpg";  
   image8= new Image(746,471);
   image8.src="images/clients/edk_vitalTheatre.jpg";  
   image9= new Image(746,471);
   image9.src="images/clients/edk_fringeNYC.jpg";  
   image10= new Image(746,471);
   image10.src="images/clients/edk_JPMorgan.jpg";  
   image11= new Image(746,471);
   image11.src="images/clients/edk_miracleWhip.jpg";
   image12= new Image(746,471);
   image12.src="images/clients/edk_hamasaku.jpg";  
   image13= new Image(746,471);
   image13.src="images/clients/edk_slimJim.jpg";  
   image14= new Image(746,471);
   image14.src="images/clients/edk_navteq.jpg";  
   image15= new Image(746,471);
   image15.src="images/clients/edk_kyocera.jpg";
   image16= new Image(746,471);
   image16.src="images/clients/edk_johnson.jpg";  
   image17= new Image(746,471);
   image17.src="images/clients/edk_centralParkConservancy.jpg";  
 }

function change1(picName,imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + ".src");
      document[picName].src= imgOn;
    }
 }
// Clients rollover



function blocking(nr)
{
	if (document.layers)
	{
		current = (document.layers[nr].display == 'block') ? 'none' : 'block';
		document.layers[nr].display = current;
	}
	
	else if (document.getElementById)
	{
		vista = (document.getElementById(nr).style.display == 'block') ? 'none' : 'block';
		document.getElementById(nr).style.display = vista;
	}
}
	 


 alt1 = new Image();
 alt1.src = "images/nav/places_on.gif";

 alt2 = new Image();
 alt2.src = "images/nav/people_on.gif";
 
 alt3 = new Image();
 alt3.src = "images/nav/personal_on.gif";
 
 alt4 = new Image();
 alt4.src = "images/nav/etc_on.gif";
 
 alt5 = new Image();
 alt5.src = "images/nav/news_on.gif";
 
 alt6 = new Image();
 alt6.src = "images/nav/profile_on.gif";
 
 alt7 = new Image();
 alt7.src = "images/nav/clients_on.gif";
 
 alt8 = new Image();
 alt8.src = "images/nav/downloads_on.gif";
 
 alt9 = new Image();
 alt9.src = "images/nav/shop_on.gif";
 
 graphic1= new Image();
 graphic1.src = "images/nav/places_off.gif";
 graphic1on = new Image();
 graphic1on.src = "images/nav/places_on.gif"

 graphic2= new Image();
 graphic2.src = "images/nav/people_off.gif"
 graphic2on = new Image();
 graphic2on.src = "images/nav/people_on.gif"
 
 graphic3= new Image();
 graphic3.src = "images/nav/personal_off.gif"
 graphic3on = new Image();
 graphic3on.src = "images/nav/personal_on.gif"
 
 graphic4= new Image();
 graphic4.src = "images/nav/etc_off.gif"
 graphic4on = new Image();
 graphic4on.src = "images/nav/etc_on.gif"
 
 graphic5= new Image();
 graphic5.src = "images/nav/news_off.gif"
 graphic5on = new Image();
 graphic5on.src = "images/nav/news_on.gif"
 
 graphic6= new Image();
 graphic6.src = "images/nav/profile_off.gif"
 graphic6on = new Image();
 graphic6on.src = "images/nav/profile_on.gif"
 
 graphic7= new Image();
 graphic7.src = "images/nav/clients_off.gif"
 graphic7on = new Image();
 graphic7on.src = "images/nav/clients_on.gif"
 
 graphic8= new Image();
 graphic8.src = "images/nav/downloads_off.gif"
 graphic8on = new Image();
 graphic8on.src = "images/nav/downloads_on.gif"
 
 graphic9= new Image();
 graphic9.src = "images/nav/shop_off.gif"
 graphic9on = new Image();
 graphic9on.src = "images/nav/shop_on.gif"
 
function imageChange(imageID2,imageName2) { 
	{
 		document.images[imageID2].src = eval(imageName2 + ".src");
 	}
}
