// JavaScript Document
function displayHeadder()
{
	var loc = String(document.location); // get the url
	headertxt = "<h1>web design home</h1>FFC 603 – Advertising Design"; 	// set the default value
	
	// check for the existence of specific text in the url, then assign new header text values
	if(loc.indexOf("index.shtml")>-1){headertxt="<h1>web design home</h1>ffc 603 – advertising design";}
	if(loc.indexOf("course_outline.shtml")>-1){headertxt="<h1>course outline</h1>ffc 603 – advertising design";}
	if(loc.indexOf("mini_assignments.shtml")>-1){headertxt="<h1>mini assignments</h1>ffc 603 – advertising design";}
	if(loc.indexOf("submission_guidelines.shtm")>-1){headertxt="<h1>submission guidelines</h1>ffc 603 – advertising design";}
	if(loc.indexOf("lectures.shtml")>-1){headertxt="<h1>lectures</h1>ffc 603 – advertising design";}
	if(loc.indexOf("bonus_points.shtml")>-1){headertxt="<h1>bonus points</h1>ffc 603 – advertising design";}
	if(loc.indexOf("tag_reference.shtml")>-1){headertxt="<h1>tag reference</h1>ffc 603 – advertising design";}
	if(loc.indexOf("examples.shtml")>-1){headertxt="<h1>examples</h1>ffc 603 – advertising design";}
	if(loc.indexOf("resources.shtml")>-1){headertxt="<h1>resources</h1>ffc 603 – advertising design";}
	if(loc.indexOf("glossary_of_terms.shtml")>-1){headertxt="<h1>glossary of terms</h1>ffc 603 – advertising design";}
	if(loc.indexOf("projects.shtml")>-1){headertxt="<h1>projects</h1>ffc 603 – advertising design";}
	if(loc.indexOf("process.shtml")>-1){headertxt="<h1>web design process</h1>ffc 603 – advertising design";}
	if(loc.indexOf("webdesigntips.shtml")>-1){headertxt="<h1>web eesign tips</h1>ffc 603 – advertising design";}
	// change the text in the header div based on above calculations
	document.getElementById('flag').innerHTML = headertxt;
}

function changeNav(divid)
{
	//alert("test");
	tempDiv = "nav"+divid;
	document.getElementById(tempDiv).style.backgroundColor = "#ffffff"; //backgroundImage = "url(/webman/link_background_on.png)";
}

function changeNavBack(divid)
{
	tempDiv = "nav"+divid;
	document.getElementById(tempDiv).style.backgroundColor = "#cccccc"; //backgroundImage = "url(/webman/link_background_off.png)";
}