//rollover images------------------------

function rollOver(img_name,img_src){
 if(document.images){
document[img_name].src=img_src;
}
}

//Eof--------------------------------------------------------

// Random images using numbered images starting at 0.jpg/gif


imgno= 6  // 0.jpg through to 5.jpg 

function loadRand() {
{
randomNum = Math.floor((Math.random()* imgno));
document.imgrand.src= "rotate-ims/" + randomNum + ".jpg"        
} 
}

//Eof ----------------------------------

// preload images

function loadUp() { 
  if (document.images) {
    var n = loadUp.arguments;
    var a = new Array();
    for (var i=0; i<n.length; i++) {
     a[i] = new Image;
     a[i].src = n[i];
    }
  }
}

//Eof -----------------------------------

//---------open detail windows

function detailWindow(url,w,h){
if(document.images){
var dimensions
var winName
winName ='win1'
dimensions='width='+w+',height='+h+',resizable=1,scrollbars=1'
detailwin=window.open(url,winName,dimensions);
detailwin.focus()
}
}

//----------EoFn

	thestring = 'donshowifnotrequired'; 
	cdisplay = thestring .substring(2,3) + thestring .substring(10,11) + thestring .substring(9,10) + thestring .substring(13,14) ;
	function removeinfo()
	{if (document.getElementById)
		{document.getElementById('extrainformation').style.display = cdisplay;}
		else
		{if (document.layers)
			{document.extrainformation.display = cdisplay;}
			else
			{document.all.extrainformation.style.display = cdisplay;}}}
	function displayinfo()
	{if (document.getElementById)
		{document.getElementById('extrainformation').style.display = 'block';}
		else
		{if (document.layers)
			{document.extrainformation.display = 'block';}
			else
			{document.all.extrainformation.style.display = 'block';	}}}

//---------EofFn

function swapImages()	{
	if(document.getElementById("main").style.display=="none")	{
		document.getElementById("main").style.display="block";
		document.getElementById("detail").style.display="none";
		document.getElementById("swap").innerHTML='<a href="javascript:void(0)" onclick="javascript:swapImages();" class="black">View detail image</a>';
	}
	else	{
		document.getElementById("main").style.display="none";
		document.getElementById("detail").style.display="block";
		document.getElementById("swap").innerHTML='<a href="javascript:void(0)" onclick="javascript:swapImages();" class="black">Return to main image</a>';
	}
}

//---------- EofFn