function Collections_Initialise(){

	// Just define the event handlers for each product, there are fixed products per page anyway.
	addEvent($('Prod1'),"mouseover",Collections_Hover,false);
	addEvent($('Prod1'),"mouseout",Collections_MouseOut,false);
//	if($('HoverBox1')){addEvent($('HoverBox1'),"mouseover",Collections_BoxHover,false);}
//	if($('HoverBox1')){addEvent($('HoverBox1'),"mouseout",Collections_BoxMouseOut,false);}
	
	addEvent($('Prod2'),"mouseover",Collections_Hover,false);
	addEvent($('Prod2'),"mouseout",Collections_MouseOut,false);
//	if($('HoverBox2')){addEvent($('HoverBox2'),"mouseover",Collections_BoxHover,false);}
//	if($('HoverBox2')){addEvent($('HoverBox2'),"mouseout",Collections_BoxMouseOut,false);}
	
	addEvent($('Prod3'),"mouseover",Collections_Hover,false);
	addEvent($('Prod3'),"mouseout",Collections_MouseOut,false);
//	if($('HoverBox3')){addEvent($('HoverBox3'),"mouseover",Collections_BoxHover,false);}
//	if($('HoverBox3')){addEvent($('HoverBox3'),"mouseout",Collections_BoxMouseOut,false);}
	
	addEvent($('Prod4'),"mouseover",Collections_Hover,false);
	addEvent($('Prod4'),"mouseout",Collections_MouseOut,false);
//	if($('HoverBox4')){addEvent($('HoverBox4'),"mouseover",Collections_BoxHover,false);}
//	if($('HoverBox4')){addEvent($('HoverBox4'),"mouseout",Collections_BoxMouseOut,false);}
	
	addEvent($('Prod5'),"mouseover",Collections_Hover,false);
	addEvent($('Prod5'),"mouseout",Collections_MouseOut,false);
//	if($('HoverBox5')){addEvent($('HoverBox5'),"mouseover",Collections_BoxHover,false);}
//	if($('HoverBox5')){addEvent($('HoverBox5'),"mouseout",Collections_BoxMouseOut,false);}
	
	addEvent($('Prod6'),"mouseover",Collections_Hover,false);
	addEvent($('Prod6'),"mouseout",Collections_MouseOut,false);
//	if($('HoverBox6')){addEvent($('HoverBox6'),"mouseover",Collections_BoxHover,false);}
//	if($('HoverBox6')){addEvent($('HoverBox6'),"mouseout",Collections_BoxMouseOut,false);}
	
	addEvent($('Prod7'),"mouseover",Collections_Hover,false);
	addEvent($('Prod7'),"mouseout",Collections_MouseOut,false);
//	if($('HoverBox7')){addEvent($('HoverBox7'),"mouseover",Collections_BoxHover,false);}
//	if($('HoverBox7')){addEvent($('HoverBox7'),"mouseout",Collections_BoxMouseOut,false);}
	
	addEvent($('Prod8'),"mouseover",Collections_Hover,false);
	addEvent($('Prod8'),"mouseout",Collections_MouseOut,false);
//	if($('HoverBox8')){addEvent($('HoverBox8'),"mouseover",Collections_BoxHover,false);}
//	if($('HoverBox8')){addEvent($('HoverBox8'),"mouseout",Collections_BoxMouseOut,false);}

} // end Collections_Initialise

function Collections_Hover(e){
	if(!e) var e = window.event;
	if(e.target) targ = e.target;
	else if (e.srcElement) targ = e.srcElement;

	var myString = targ.parentNode.id;
	var myNum = myString.charAt(myString.length-1);
	if($('HoverBox'+myNum)){
		if($('HoverBox'+myNum).style.display != "block"){
			$('HoverBox'+myNum).style.display = "block";
//		  Effect.BlindDown('HoverBox'+myNum);
		}
	}

} // end Collections_Hover

function Collections_BoxHover(e){
	if(!e) var e = window.event;
	if(e.target) targ = e.target;
	else if (e.srcElement) targ = e.srcElement;

	// Remember that this is the element hovered over which is probably a child of the hover box, not the hover box itself so we must work out which box we are over by looping through each parent.
	var pattern = new RegExp("(^| )" + "HoverBox" + "( |$)");
	while(!pattern.test(targ.className)){
		targ = targ.parentNode;
	}
	
	if(targ.style.display != "block"){
		targ.style.display = "block";
	}

} // end Collections_Hover


function Collections_MouseOut(e){
	if(!e) var e = window.event;
	if(e.target) targ = e.target;
	else if (e.srcElement) targ = e.srcElement;

	var myString = targ.parentNode.id;
	var myNum = myString.charAt(myString.length-1);
	if($('HoverBox'+myNum)){
		if($('HoverBox'+myNum).style.display != "none"){
			$('HoverBox'+myNum).style.display = "none";
		}
	}

} // end Collections_MouseOut

function Collections_BoxMouseOut(e){
	if(!e) var e = window.event;
	if(e.target) targ = e.target;
	else if (e.srcElement) targ = e.srcElement;

	// Remember that this is the element hovered over which is probably a child of the hover box, not the hover box itself so we must work out which box we are over by looping through each parent.
	var pattern = new RegExp("(^| )" + "HoverBox" + "( |$)");
	while(!pattern.test(targ.className)){
		targ = targ.parentNode;
	}
	
	if(targ.style.display != "none"){
		targ.style.display = "none";
	}
} // end Collections_BoxMouseOut

addEvent(window,"load",Collections_Initialise, false);