function click_manager(){
	this.click_objects = new Array();
	this.add = click_manager_add;
}
function click_manager_add(click_obj){
	this.click_objects.push(click_obj);

}

function clickable_object(target,url){
	this.click_target = target;
	this.url_target = url;
	this.cursor = new cursor_manager();
	var me = this;
	
	
	
	this.click = function clickable_object_click_handler(){
	 location.href = me.url_target;
	};
	this.mouseover = function (){
	 me.cursor.hand();
	};
	this.mouseout = function (){
	me.cursor.clear();
	};
	
	target.onclick = this.click;
	target.onmouseout = this.mouseout;
	target.onmousemove = this.mouseover;
	target.onmouseover = this.mouseover;
}

 

 







function cursor_manager(){
	this.wait = cursor_wait;
	this.hand = cursor_hand;
	this.clear = cursor_clear;
}

function cursor_wait() {
	document.body.style.cursor = 'wait';
}

function cursor_hand() {
	document.body.style.cursor = 'pointer';
}

// Returns the cursor to the default pointer
function cursor_clear() {
	document.body.style.cursor = 'default';
}


var click_mgr = new click_manager();

function initilize_Index(){
	click_mgr.add(new clickable_object(document.getElementById('homecanvas'),'http://www.pclsolutions.com/homeservices.php'));
	click_mgr.add(new clickable_object(document.getElementById('businesscanvas'),'http://www.pclsolutions.com/businessservices.php'));
}

function initilize_homeservices(){
	click_mgr.add(new clickable_object(document.getElementById('hardwarerepaircanvas'),'http://www.pclsolutions.com/homerepairservices.php'));
	click_mgr.add(new clickable_object(document.getElementById('spywareservicescanvas'),'http://www.pclsolutions.com/homevirusremovalservices.php'));
	click_mgr.add(new clickable_object(document.getElementById('inhomeservicescanvas'),'http://www.pclsolutions.com/homeonsiteservices.php'));
	click_mgr.add(new clickable_object(document.getElementById('instoreservicescanvas'),'http://www.pclsolutions.com/homeinstoreservices.php'));
	
}

function initilize_businessservices(){
	click_mgr.add(new clickable_object(document.getElementById('businessinfrastructurecanvas'),'http://www.pclsolutions.com/businessservices.php'));
	click_mgr.add(new clickable_object(document.getElementById('businessunifiedcommcanvas'),'http://www.pclsolutions.com/unifiedcommunication.php'));
	click_mgr.add(new clickable_object(document.getElementById('businesswebsolutionscanvas'),'http://www.pclsolutions.com/webdevelopment.php'));
	click_mgr.add(new clickable_object(document.getElementById('managedservicescanvas'),'http://www.pclsolutions.com/managedservices.php'));
	
}


