// Module version: 1.01.03

// This Software is Copyright James Downer. All Rights Reserved.
// Unauthorised use without permission is strictly prohibited.

//	var ArRandImagesList = new Array();

	// To use double quotes, ensure it is escaped: \"my quoted text\" 


	var ArRandImagesList = [ [ "./images/sections/home/welcome1.jpg", "Ruggedised Handheld Computers and Vehicle Mounted PCs", "Ruggedised Handheld Computers and Vehicle Mounted PCs" ],[ "./images/sections/home/welcome2.jpg", "Handheld Computers that Perform in the Toughest Environments", "Handheld Computers that Perform in the Toughest Environments" ],[ "./images/sections/home/welcome3.jpg", "24x7x365 Days a Year in Forestry", "24x7x365 Days a Year in Forestry" ] ];


	var szRT	  = ArRandImagesList.length;
	
	var randImagesItem  = Math.round( Math.random() * ( szRT-1 ) );


	var value=0;
	var plus=1;
	var minus=0;

	function IE()
	{
		if (value<80&&plus)
			value+=4
		else{
	//	plus=0	
//		minus=1
		}

		if (value>30&&minus)
			value-=4
		else{
//			plus=1
//			minus=0
		}

		document.getElementById("welcomeImg").filters[0].opacity=value;

	}


	function MOZ()
	{
		if (value<80&&plus)
			value+=4
		else{
	//		plus=0
//			minus=1
		}

		if (value>30&&minus)
			value-=4
		else{
//			plus=1
//			minus=0
		}

		document.getElementById("welcomeImg").style.MozOpacity=value+"%"

	}




	function displayRandomImage() {
		//	  document.write( '<IMG SRC=\"' + ArRandImagesList[randImagesItem][0] + '\"' + ' ALT=\"' + ArRandImagesList[randImagesItem][1] + '\" TITLE=\"' + ArRandImagesList[randImagesItem][2] + '\" />' );

		document.write( '<img id="welcomeImg" src="' + ArRandImagesList[randImagesItem][0] + '\"' + ' ALT=\"' + ArRandImagesList[randImagesItem][1] + '\" TITLE=\"' + ArRandImagesList[randImagesItem][2] + '\" style=\"-moz-opacity:30%;filter:alpha(opacity=30)\">' );

		if (window.sidebar)
		{
			setInterval("MOZ()",200)
		}

		if (document.all)
		{
			setInterval("IE()",200)
		}



	}