/********************\
 )		nav.js		(
<					 >
 )	::jack	11/2006	(
\********************/

  image1= new Image(); 
  image1.src="/northeastohio/images/nav_about.jpg"; 
  image2= new Image(); 
  image2.src="/northeastohio/images/nav_about_ro.jpg"; 
  
  image3= new Image(); 
  image3.src="/northeastohio/images/nav_career.jpg"; 
  image4= new Image(); 
  image4.src="/northeastohio/images/nav_career_ro.jpg"; 
  
  image5= new Image(); 
  image5.src="/northeastohio/images/nav_contact.jpg"; 
  image6= new Image(); 
  image6.src="/northeastohio/images/nav_contact_ro.jpg"; 
  
  image7= new Image(); 
  image7.src="/northeastohio/images/nav_cool.jpg";
  image8= new Image(); 
  image8.src="/northeastohio/images/nav_cool_ro.jpg"; 
  
  image9= new Image(); 
  image9.src="/northeastohio/images/nav_events.jpg";
  image10= new Image(); 
  image10.src="/northeastohio/images/nav_events_ro.jpg";
  
  image11= new Image(); 
  image11.src="/northeastohio/images/nav_media.jpg";
  image12= new Image(); 
  image12.src="/northeastohio/images/nav_media_ro.jpg"; 
  
  image13= new Image(); 
  image13.src="/northeastohio/images/nav_more.jpg";
  image14= new Image(); 
  image14.src="/northeastohio/images/nav_more_ro.jpg"; 
  
  image15= new Image(); 
  image15.src="/northeastohio/images/nav_national.jpg"; 

/********************\
 )		subnav		(
\********************/
function toggle(id,left_px,imageName,image) {	
	//safe function to show an element with a specified id
	
	var x=document.getElementById(id)
	
	if (document.getElementById) { // DOM3 = IE5, NS6
			x.style.left = left_px;
		} else {
			if (document.layers) { // Netscape 4

				document.id.left = left_px;
			}
			else { // IE 4
				document.all.id.style.left = left_px;
			}
		}
	toggleRO(imageName,image);
}


function toggleRO(imageName,myimage){
		document.images[imageName].src= "/northeastohio/images/"+ myimage;
		
}

/********************\
 )		/subnav		(
\********************/

/***** Date code

/******************* Homepage Date *************************/
function getRandomHome(){
			var randomNumber = Math.floor(Math.random()*6);
			document.write('<img src="/northeastohio/images/home'+(randomNumber+1)+'.jpg">');
		}
function getRandomSideOne(){
			var randomNumber = Math.floor(Math.random()*6);
			document.write('<img src="/northeastohio/images/second_image'+(randomNumber+1)+'.jpg">');
		}
function getRandomSideTwo(){
			var randomNumber = Math.floor(Math.random()*4);
			if(randomNumber < 3) var myLink = "href='http://dreamit-doit.com/career.asp'"
			else var myLink = "href='http://www.dreamit-doit.com/bizcard' target='_blank'"
			document.write('<a '+myLink+'><img src="/northeastohio/images/learn_more'+(randomNumber+1)+'.jpg"></a>');
		}