/*
	JavaScript functions for lukehutton.co.uk
	(C) Luke Hutton 2009
	
	www.lukehutton.co.uk
	
	Functions in this file are licensed under the GPL
	
*/

$(document).ready(function(){
	// Set page background based on type of content (determined by parsing URL)
	var loc = location.href;
	if(loc.match('blog'))
	{
		$("body").css("background","#c72500 url('http://www.lukehutton.co.uk/wp-content/themes/v3/images/orangetile.png') repeat-x");
		$(".headblock h1").css("color","#df8300");
	}
	
	if(loc.match('portfolio'))
	{
		$("body").css("background","#c70013 url('http://www.lukehutton.co.uk/wp-content/themes/v3/images/pinktile.png') repeat-x");
		$(".headblock h1").css("color","#df004f");
	}
	
	if(loc.match('services'))
	{
		$("body").css("background","#005364 url('http://www.lukehutton.co.uk/wp-content/themes/v3/images/bluetile.png') repeat-x");
		$(".headblock h1").css("color","#009da7");
	}	
	
	if(loc.match('contact'))
	{
		$("body").css("background","#166400 url('http://www.lukehutton.co.uk/wp-content/themes/v3/images/greentile.png') repeat-x");
		$(".headblock h1").css("color","#5aa700");
	}		
	
	if(loc.match('about'))
	{
		$("body").css("background","#c5c200 url('http://www.lukehutton.co.uk/wp-content/themes/v3/images/yellowtile.png') repeat-x");
		$(".headblock h1").css("color","#dedc01");
	}		
	
}

);

