// Set slideShowSpeed (milliseconds)

var slideShowSpeed = 5000



// Duration of crossfade (seconds)

var crossFadeDuration = 3



// Specify the image files

var Pic = new Array() // don't touch this

// to add more images, just continue

// the pattern, adding to the array below



Pic[0] = 'http://mediafiles.thedms.co.uk/publication/es-vc/headers/header1.jpg'
Pic[1] = 'http://mediafiles.thedms.co.uk/publication/es-vc/headers/header6.jpg'
Pic[2] = 'http://mediafiles.thedms.co.uk/publication/es-vc/headers/header7.jpg'
Pic[3] = 'http://mediafiles.thedms.co.uk/publication/es-vc/headers/header8.jpg'
Pic[4] = 'http://mediafiles.thedms.co.uk/publication/es-vc/headers/header9.jpg'
Pic[5] = 'http://mediafiles.thedms.co.uk/publication/es-vc/headers/header10.jpg'


// =======================================

// do not edit anything below this line

// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

// 28.April.04 CJC Put this pop up window into it's own file. Navigationfooter.asp includes this file
// <a href="aspTarget.asp" target="_blank" onclick="NMS_popUpWin(this.href,'standard',650,550,'_blank');return false;" onkeypress="NMS_popUpWin(this.href,'standard',650,550,'_blank');return false;" title=""  target="_blank">
var newWindow = null; 

function NMS_closeWin(){ 
if (newWindow != null){ 
if(!newWindow.closed) 
newWindow.close(); 
} 
} 
function NMS_popUpWinForm(formObject, formValue, type, strWidth, strHeight,target){ 

NMS_closeWin(); 

if (type == "fullScreen"){ 

strWidth = screen.availWidth - 10; 
strHeight = screen.availHeight - 160; 
} 

var tools=""; 
if (type == "nosize") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,top=0,left=0"; 
if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0"; 
if (type == "console") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0"; 
newWindow = window.open(formObject.action + formValue, target, tools); 
newWindow.focus(); 
} 

function NMS_popUpWin(url, type, strWidth, strHeight,target){ 

NMS_closeWin(); 

if (type == "fullScreen"){ 

strWidth = screen.availWidth - 10; 
strHeight = screen.availHeight - 160; 
} 

var tools=""; 
if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0"; 
if (type == "console") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0"; 
newWindow = window.open(url, target, tools); 
newWindow.focus(); 
} 
// cjc
function nmsGetRadioValue(inRadioObject) {
// Loop from zero to the one minus the number of radio button selections
for (counter = 0; counter < inRadioObject.length; counter++) {
	if (inRadioObject[counter].checked) {
		return  inRadioObject[counter].value;
	}
}
return   ''; // assume not found
}
