// JavaScript Document

//Preload
var buttonOrder1=new Image();
var buttonOrder2=new Image();
buttonOrder1.src="wp-content/themes/ice2/images/ice_button_red_large_h.png";
buttonOrder2.src="wp-content/themes/ice2/images/ice_button_red_large_u.png";

var orderButtonBackHi="url('wp-content/themes/ice2/images/ice_button_red_large_h.png') 21px 66px no-repeat";
var orderButtonBackUn="url('wp-content/themes/ice2/images/ice_button_red_large_u.png') 21px 66px no-repeat";

var orderButtonID="ice-button-order";
var orderButtonRef;

function buttonOrderEvtMouseOver(){
	orderButtonRef.style.background=orderButtonBackHi;
}

function buttonOrderEvtMouseOut(){
	orderButtonRef.style.background=orderButtonBackUn;
}

function initOrderButton(){
	orderButtonRef=document.getElementById(orderButtonID);
	orderButtonRef.onmouseover=buttonOrderEvtMouseOver;
	orderButtonRef.onmouseout=buttonOrderEvtMouseOut;
}

var orderaffiliateBackHi="url('wp-content/themes/ice2/images/ice_button_red_large_h.png') top center no-repeat";
var orderaffiliateBackUn="url('wp-content/themes/ice2/images/ice_button_red_large_u.png') top center no-repeat";

var affiliateButtonID="ice-button-affiliates";
var affiliateButtonRef;

function buttonaffiliateEvtMouseOver(){
	affiliateButtonRef.style.background=orderaffiliateBackHi;
}

function buttonaffiliateEvtMouseOut(){
	affiliateButtonRef.style.background=orderaffiliateBackUn;
}

function initaffiliateButton(){
	affiliateButtonRef=document.getElementById(affiliateButtonID);
	affiliateButtonRef.onmouseover=buttonaffiliateEvtMouseOver;
	affiliateButtonRef.onmouseout=buttonaffiliateEvtMouseOut;
}

