
function MM_preloadims() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadims.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	if (document.getElementsByTagName)
{
      obj = document.getElementsByTagName("object");
      for (var i=0; i < obj.length; i++) {obj[i].outerHTML = obj[i].outerHTML;}
} 
}


//function slide(){
//var mygallery=new fadeSlideShow({
//	wrapperid: "PHPic", //ID of blank DIV on page to house Slideshow
//	dimensions: [960, 212], //width/height of gallery in pixels. Should reflect dimensions of largest image
//	imagearray: [
//		["/ims/header.jpg", "/P/alandalus-2009.asp", "_self", "A difficult climb through the mountains and a long stretch ahead. See what the 2009 competitors have to say about the race >>"],
//		["/ims/header1.jpg", "/P/race-entry.asp", "_self", "Stunning views from the mountain tops. Enter the 2010 race - click here >>"],
//		["/ims/header2.jpg", "/P/stage-description.asp", "_self", "Victorious after a tough ascent, and baking temperatures through the sunflowers. Read more about the stages here >>"]
		//["http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element!
//	],
//	displaymode: {type:'auto', pause:4500, cycles:0, wraparound:false},
//	persist: false, //remember last viewed slide and recall within same session?
//	fadeduration: 2000, //transition duration (milliseconds)
//	descreveal: "ondemand",
//	togglerid: ""
//})	
	
//}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=570,height=450,left=250,top=1');");
}

//-------use this for jquery version, call as many functions as you like*/
$(function(){
MM_preloadims('/ims/header.jpg','/ims/alandalusLogo.gif','/ims/ukFlag.gif','/ims/spainFlag.gif');
$('.pStrip a').lightBox();
$('.pStrip2 a').lightBox();
$('.pStrip3 a').lightBox();
$('.pStrip4 a').lightBox();
$('.pStrip5 a').lightBox();
$('.lBox').lightBox();
 });

// this works fine !!!
//window.onload=function() {
//MM_preloadims('/ims/header.jpg','/ims/alandalusLogo.gif','/ims/ukFlag.gif','/ims/spainFlag.gif');
//slide();
//}


