function change_content(url, link_obj)
{
	if(link_obj.id == "item1"){
		link_obj.style.backgroundPosition = "0px -5px";
	}else{
		document.getElementById('item1').style.backgroundPosition = "0px -35px";
	}
	if(link_obj.id == "item2"){
		link_obj.style.backgroundPosition = "-55px -5px";
	}else{
		document.getElementById('item2').style.backgroundPosition = "-55px -35px";
	}
	if(link_obj.id == "item3"){
		link_obj.style.backgroundPosition = "-196px -5px";
	} else {
		document.getElementById('item3').style.backgroundPosition = "-196px -35px";
	}
	if(link_obj.id == "item4"){
		link_obj.style.backgroundPosition = "-320px -5px";
	} else {
		document.getElementById('item4').style.backgroundPosition = "-320px -35px";
	}
	if(link_obj.id == "item5") {
		link_obj.style.backgroundPosition = "-426px -5px";
	} else {
		document.getElementById('item5').style.backgroundPosition = "-426px -35px";
	}
	if(link_obj.id == "item6") {
		link_obj.style.backgroundPosition = "-559px -5px";
	} else {
		document.getElementById('item6').style.backgroundPosition = "-559px -35px";
	}

	var scnWid,scnHei;
	if (self.innerHeight) // all except Explorer
	{
		scnWid = self.innerWidth;
		scnHei = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
	{
		scnWid = document.documentElement.clientWidth;
		scnHei = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		scnWid = document.body.clientWidth;
		scnHei = document.body.clientHeight;
	}

	if(url=="our_work8.html" || url=="submit_a_brief.html")
	{
		if(scnHei < 940)
		{
			document.getElementById("table_wrapper").style.height = "940px";
		}
		else
		{
			document.getElementById("table_wrapper").style.height = "100%";
		}
		if(url == current_url && url == "submit_a_brief.html")
		{
			// Don't reload this item
		}
		else
		{
			document.getElementById('content_iframe').src = url;
		}
	}
	else
	{
		document.getElementById("table_wrapper").style.height = "100%";
		if(scnWid < 1000)
		{
			document.getElementById("table_wrapper").style.width = 1024;
		}
		else
		{
			document.getElementById("table_wrapper").style.width = "100%";
		}
		if(scnHei < 700)
		{
			document.getElementById("table_wrapper").style.height = 700;
		}
		else
		{
			document.getElementById("table_wrapper").style.height = "100%";
		}

		if(url != current_url)	document.getElementById('content_iframe').src = url;
	}
	current_url = url;
}
function resize_page()
{
	obj = new Object();
	change_content(current_url,obj);
}
current_url = "home.html";
