window.addEvent('domready', function() {})

/*
var mySlideShow;
var firstSlide;
var imagestoragelocation;
var slideData = new Object();




window.addEvent('domready', function() {
//*********************************
//* get the slideshow control xml file from the server
//*********************************
   try //Internet Explorer
     {
     xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
     }
   catch(e)
     {
     try //Firefox, Mozilla, Opera, etc.
       {
       xmlDoc=document.implementation.createDocument("","",null);
       }
     catch(e)
       {
       alert(e.message);
       return;
       }
     }
   xmlDoc.async=false;
   xmlDoc.load("/design08/images/xml/slideshowcontrol.xml");//load the xml control file from the server
   //xmlDoc.load("/wlivery08/images/xml/slideshowControl.xml");
   var root=xmlDoc.documentElement;
   LoadSlide(root);// loads the slideData object array from the xml control file
//*********************************
//* get the width of the html page
//*********************************
 var docdiv;
 var w;
 var banner;
 if (document.getElementById) {
   docdiv=document.getElementById("doc");
    if (docdiv) {
     w=docdiv.offsetWidth;
     if (!w.nan) w=w-3;
     }
    else
    {
       w=748;
     }
   }
   else
   {
    w=748;
  }
if (w<700){w=748;}
if (w>1200){w=748;}
var h=Math.round(w/750*120);
//*********************************
//* start slideshow
//*********************************
    //imageStorageLocation ='http://assets.uws.edu.au/livery08/images/banner/';
      imageStorageLocation = '/design08/images/banner/';
    //imageStorageLocation = '/wlivery08/images/banner/';

	// Get the first slide image name that we just entered...
	var arrLoop;
	arrLoop = 0;
	for (var i in slideData) {arrLoop++; if (arrLoop == 1) {firstSlide = i;}}
	// to re-enable loader make value { 'animate': [imagestoragelocation+'loader/loader-#.png', 12] }
	mySlideShow = new Slideshow('hp_slideshow', slideData, { loader: false, delay: 5000, duration: 1500, captions: false, controller: true, hu: imageStorageLocation, width: + w, height: + h});
	
	// Preload the first slide (set it as background)

	$('hp_slideshow').getElements('.slideshow-images').setStyle('background-image', 'url(' + imageStorageLocation + firstSlide + ')');

});

window.addEvent('unload', function(){
	if(mySlideShow){
		mySlideShow.destroy();
	}
});


function LoadSlide(node) {
 if (node.nodeType==1) {
    if (node.nodeName=="image"){
       slideData[node.childNodes[0].nodeValue]=[];
	   slideData[node.childNodes[0].nodeValue].caption=node.getAttribute("caption");
	   slideData[node.childNodes[0].nodeValue].href=node.getAttribute("href"); 
     }
    }
 if (node.nodeType==1) {
    for (var s = 0;s<node.childNodes.length;s++){
	  var cn=node.childNodes[s];
      LoadSlide(cn);	
	}          
 }
}
*/
