jQuery.extend({
    'GET' : window.location.search.length <= 1 ? {}
        : function(a){
            var i = a.length, 
                r = /%25/g,  // Ensure '%' is properly represented 
                h = {};      // (Safari auto-encodes '%', Firefox 1.5 does not)
            while(i--) {
                var p = a[i].split('=');
                h[ p[0] ] = r.test( p[1] ) ? decodeURIComponent( p[1] ) : p[1];
            }
            return h;
        }(window.location.search.substr(1).split('&'))
});

$(document).ready(function() {
	switch ($.GET.page) {
		case 'process' :
			$("#process a").html(graphic_tag("ProcessSmallRed.png", "process"));
			break;
		case 'about' :
			$("#about a").html(graphic_tag("AboutSmallRed.png", "about"));
			break;
		case 'blog' :
			$("#blog a").html(graphic_tag("BlogSmallRed.png", "blog"));
			break;
		case 'contact' :
			$("#contact a").html(graphic_tag("ContactSmallRed.png", "contact"));
			break;
		case 'contact' :
			$("#portfolio a").html(graphic_tag("PortfolioSmallRed.png", "portfolio"));
			break;
		default :
		
	}
	
});

function graphic_tag(img, alt){
	return '<img src="images/graphics/' + img + '" alt="' + alt + '"/>';
}
