// JavaScript Document

function over_effect(e,state)
{
	if (document.all)
	source4=event.srcElement
	else if (document.getElementById)
	source4=e.target
	if (source4.className=="menulines")
	source4.style.borderStyle=state
	else
	{
		while(source4.tagName!="TABLE")
		{
			source4=document.getElementById? source4.parentNode : source4.parentElement
			if (source4.className=="menulines")
				source4.style.borderStyle=state
		}
	}
}


function get_screen_dimensions()
{	
	var arr_images = document.getElementsByTagName('img');
		
	for(x=0;x<arr_images.length;x=x+1)
	{
		var i=arr_images[x].src.lastIndexOf('/') + 1;
		var name=arr_images[x].src.substring(i,arr_images[x].src.length);
		//alert(name);
		if( (name != "FinalColorLogo.jpg") && screen.width<1280)
		{
			//alert(arr_images[x].width);
			//alert("screen width=" + screen.width);
			arr_images[x].width=arr_images[x].width*(screen.width/1280);
			arr_images[x].length=arr_images[x].length*(screen.height/768);
			//alert(arr_images[x].width);
		}
	}
	
	//modifying height not necessary
	var arr_divs = document.getElementsByTagName('div');
		
	for(x=0;x<arr_divs.length;x=x+1)
	{
		var classname=arr_divs[x].getAttribute("class");
		//alert(classname);
		//alert(screen.width);
		//alert(screen.height);
		if(screen.width<1280)
		{
			if( (classname=="picture left")||(classname=="picture right"))
			{
				//alert("in the if");
				//alert(arr_divs[x].offsetWidth);
				var newwidth=Math.round(arr_divs[x].offsetWidth*(screen.width/1280));
				//alert("newwidth=" + newwidth);
				arr_divs[x].style.width=newwidth+'px';
				//alert(arr_divs[x].offsetWidth);
			}
		}
	}
}


