function Querystring(qs) { // optionally pass a querystring to parse
	this.params = new Object()
	this.get=Querystring_get
	if (qs == null)
		qs=location.search.substring(1,location.search.length)
	if (qs.length == 0) return
// Turn <plus> back to <space>
// See: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1
	qs = qs.replace(/\+/g, ' ')
	var args = qs.split('&') // parse out name/value pairs separated via &
// split out each name=value pair
	for (var i=0;i<args.length;i++) {
		var value;
		var pair = args[i].split('=')
		var name = unescape(pair[0])
		if (pair.length == 2)
			value = unescape(pair[1])
		else
			value = name
		this.params[name] = value
	}
}	
this.Querystring_get = function(key, default_) {
	// This silly looking line changes UNDEFINED to NULL
	if (default_ == null) default_ = null;
	var value=this.params[key]
	if (value==null) value=default_;
	return value
}

Querystring();
var id= Querystring_get("id");
if(id=='home')
{
	document.Image5.src="images/home_h.jpg";
}
else if(id=='graduation')
{
	document.Image6.src="images/graduation_h.jpg";
}
else if(id=='video')
{
	document.Image7.src="images/gallery_h.jpg";
}
else if(id=='wedding')
{
	document.Image8.src="images/wedding_h.jpg";
}
else if(id=='sports')
{
	document.Image9.src="images/sports_h.jpg";
}
else if(id=='contact')
{
	document.Image10.src="images/contact_h.jpg";
}
else if(id=='about')
{
	document.Image11.src="images/about_h.jpg";
}
var file = location.pathname.replace(/^.*\//,'');
if(file=='index.html'){
document.Image5.src="images/home_h.jpg";
}
else if(file==''){
document.Image5.src="images/home_h.jpg";
}
if(file=='contact.html'){
document.Image10.src="images/contact_h.jpg";
}
if(file=='about_us.html'){
document.Image11.src="images/about_h.jpg";
}