﻿// JScript File
button_home_normal = new Image();
button_home_hilite = new Image();
button_home_normal.src = "http://david-walters.co.uk/blog/wp-content/Images/Home-Button.gif";
button_home_hilite.src = "http://david-walters.co.uk/blog/wp-content/Images/Home-Button-hilite.gif";

button_candidate_normal = new Image();
button_candidate_hilite = new Image();
button_candidate_normal.src = "http://david-walters.co.uk/blog/wp-content/Images/Candidate-Button.gif";
button_candidate_hilite.src = "http://david-walters.co.uk/blog/wp-content/Images/Candidate-Button-hilite.gif";

button_client_normal = new Image();
button_client_hilite = new Image();
button_client_normal.src = "http://david-walters.co.uk/blog/wp-content/Images/Client-Button.gif";
button_client_hilite.src = "http://david-walters.co.uk/blog/wp-content/Images/Client-Button-hilite.gif";

button_contact_normal = new Image();
button_contact_hilite = new Image();
button_contact_normal.src = "http://david-walters.co.uk/blog/wp-content/Images/Contact-Button.gif";
button_contact_hilite.src = "http://david-walters.co.uk/blog/wp-content/Images/Contact-Button-hilite.gif";

button_partnership_normal = new Image();
button_partnership_hilite = new Image();
button_partnership_normal.src = "http://david-walters.co.uk/blog/wp-content/Images/Partnership-Button.gif";
button_partnership_hilite.src = "http://david-walters.co.uk/blog/wp-content/Images/Partnership-Button-hilite.gif";

button_about_normal = new Image();
button_about_hilite = new Image();
button_about_normal.src = "http://david-walters.co.uk/blog/wp-content/Images/About-Button.gif";
button_about_hilite.src = "http://david-walters.co.uk/blog/wp-content/Images/About-Button-hilite.gif";

button_blog_normal = new Image();
button_blog_hilite = new Image();
button_blog_normal.src = "http://david-walters.co.uk/blog/wp-content/Images/Blog-Button.gif";
button_blog_hilite.src = "http://david-walters.co.uk/blog/wp-content/Images/Blog-Button-hilite.gif";


function swap()
{
	if (document.images)
	{
		for (var x=0;x<swap.arguments.length;x+=2) {
			document[swap.arguments[x]].src = eval(swap.arguments[x+1] + ".src");
		}
	}
}
