 if (document.images){

}
/********************\
 )		subnav		(
\********************/
function toggleOn(id,lnk) {	

		var x=document.getElementById(id);
		if (document.getElementById) { // DOM3 = IE5, NS6
			x.style.display = 'block';
		} else {
			if (document.layers) { // Netscape 4
			alertID(id);
				document.id.display = 'block';
			}
			else { // IE 4
				document.all.id.style.display = 'block';
			}
		}
		toggleROon(lnk);
		
	}

function toggleOff(id,lnk) {

		var x=document.getElementById(id);
		//safe function to hide an element with a specified id
		if (document.getElementById) { // DOM3 = IE5, NS6
			x.style.display = 'none';
		}
		else {
			if (document.layers) { // Netscape 4
				document.id.display = 'none';
			}
			else { // IE 4
				document.all.id.style.display = 'none';
			}
		}
		toggleROoff(lnk);
	}

function toggleROon(lnk){
		var x =document.getElementById(lnk)
		if (document.getElementById) { // DOM3 = IE5, NS6
			x.style.borderLeft = "1px solid #000000";
		}
		else {
			if (document.layers) { // Netscape 4
				document.id.borderLeft = "1px solid #000000'"
			}
			else { // IE 4
				document.all.id.style.borderLeft = '1px solid #000000';
			}
		}
}
function toggleROoff(lnk){
		var x =document.getElementById(lnk)
		if (document.getElementById) { // DOM3 = IE5, NS6
			x.style.borderLeft = '1px solid #FFFFFF';
		}
		else {
			if (document.layers) { // Netscape 4
				document.id.borderLeft = '1px solid #FFFFFF';
			}
			else { // IE 4
				document.all.id.style.borderLeft = '1px solid #FFFFFF';
			}
		}
}

/********************\
 )		/subnav		(
\********************/

		function getRandomHeader(id){
				var x=document.getElementById(id)
					if (document.getElementById) { // DOM3 = IE5, NS6
						x.style.backgroundImage = 'url('+randomImages[randomNum]+')';
						} else {
					if (document.layers) { // Netscape 4
						alertID(id);
						document.id.backgroundImage = 'url('+randomImages[randomNum]+')';
						}
					else { // IE 4
						document.all.id.style.backgroundImage = 'url('+randomImages[randomNum]+')';
						
		}
	}
}
		function getRandomSubImage(){
			var randomNumber = Math.floor(Math.random()*10);
			var x=document.getElementById('rotate_image')
					if (document.getElementById) { // DOM3 = IE5, NS6
						x.style.backgroundImage = 'url(/images/home_rotate'+(randomNumber+1)+'.png)';
						} else {
					if (document.layers) { // Netscape 4
						alertID(id);
						document.id.backgroundImage = 'url(/images/home_rotate'+(randomNumber+1)+'.png)';
						}
					else { // IE 4
						document.all.id.style.backgroundImage = 'url(/images/home_rotate'+(randomNumber+1)+'.png)';
						
				}
			}
		}
		
		function getRandomSubImageR2(){
			var randomSet = Math.floor(Math.random()*10);
			if(randomSet<=4)
			{
				var randomNumber = Math.floor(Math.random()*3)+1;
			}
			else if(randomSet<=7)
			{
				var randomNumber = Math.floor(Math.random()*3)+4;
			}
			else
			{
				var randomNumber = Math.floor(Math.random()*4)+7;
			}
			
			var x=document.getElementById('rotate_image')
					if (document.getElementById) { // DOM3 = IE5, NS6
						x.style.backgroundImage = 'url(/r2/home-'+(randomNumber)+'.png)';
						} else {
					if (document.layers) { // Netscape 4
						alertID(id);
						document.id.backgroundImage = 'url(/r2/home-'+(randomNumber)+'.png)';
						}
					else { // IE 4
						document.all.id.style.backgroundImage = 'url(/r2/home-'+(randomNumber)+'.png)';
						
				}
			}
		}