mouseoverarray = new Array();
mouseoutarray = new Array();

mouseoverarray["link_canoe_kayak"] = new Image(); mouseoverarray["link_canoe_kayak"].src = "/images/pfds/link_canoe_kayak.over.gif";
mouseoutarray["link_canoe_kayak"] = new Image(); mouseoutarray["link_canoe_kayak"].src = "/images/pfds/link_canoe_kayak.off.gif";

mouseoverarray["link_whitewater"] = new Image(); mouseoverarray["link_whitewater"].src = "/images/pfds/link_whitewater.over.gif";
mouseoutarray["link_whitewater"] = new Image(); mouseoutarray["link_whitewater"].src = "/images/pfds/link_whitewater.off.gif";

mouseoverarray["link_fishing"] = new Image(); mouseoverarray["link_fishing"].src = "/images/pfds/link_fishing.over.gif";
mouseoutarray["link_fishing"] = new Image(); mouseoutarray["link_fishing"].src = "/images/pfds/link_fishing.off.gif";

mouseoverarray["link_sailing"] = new Image(); mouseoverarray["link_sailing"].src = "/images/pfds/link_sailing.over.gif";
mouseoutarray["link_sailing"] = new Image(); mouseoutarray["link_sailing"].src = "/images/pfds/link_sailing.off.gif";

mouseoverarray["link_youth"] = new Image(); mouseoverarray["link_youth"].src = "/images/pfds/link_youth.over.gif";
mouseoutarray["link_youth"] = new Image(); mouseoutarray["link_youth"].src = "/images/pfds/link_youth.off.gif";

mouseoverarray["link_pet"] = new Image(); mouseoverarray["link_pet"].src = "/images/pfds/link_pet.over.gif";
mouseoutarray["link_pet"] = new Image(); mouseoutarray["link_pet"].src = "/images/pfds/link_pet.off.gif";

mouseoverarray["link_livery_outfitter"] = new Image(); mouseoverarray["link_livery_outfitter"].src = "/images/pfds/link_livery_outfitter.over.gif";
mouseoutarray["link_livery_outfitter"] = new Image(); mouseoutarray["link_livery_outfitter"].src = "/images/pfds/link_livery_outfitter.off.gif";

mouseoverarray["link_baselayer"] = new Image(); mouseoverarray["link_baselayer"].src = "/images/tech_wear/link_baselayer.over.gif";
mouseoutarray["link_baselayer"] = new Image(); mouseoutarray["link_baselayer"].src = "/images/tech_wear/link_baselayer.off.gif";

mouseoverarray["link_pants"] = new Image(); mouseoverarray["link_pants"].src = "/images/tech_wear/link_pants.over.gif";
mouseoutarray["link_pants"] = new Image(); mouseoutarray["link_pants"].src = "/images/tech_wear/link_pants.off.gif";

mouseoverarray["link_spray_tops"] = new Image(); mouseoverarray["link_spray_tops"].src = "/images/tech_wear/link_spray_tops.over.gif";
mouseoutarray["link_spray_tops"] = new Image(); mouseoutarray["link_spray_tops"].src = "/images/tech_wear/link_spray_tops.off.gif";

mouseoverarray["link_dry_tops"] = new Image(); mouseoverarray["link_dry_tops"].src = "/images/tech_wear/link_dry_tops.over.gif";
mouseoutarray["link_dry_tops"] = new Image(); mouseoutarray["link_dry_tops"].src = "/images/tech_wear/link_dry_tops.off.gif";

mouseoverarray["readMoreLink"] = new Image(); mouseoverarray["readMoreLink"].src = "/images/products/link_more_detail_grey.over.gif";
mouseoutarray["readMoreLink"] = new Image(); mouseoutarray["readMoreLink"].src = "/images/products/link_more_detail_grey.off.gif";

function init(){
	
	var stretchers = document.getElementsByClassName('expandy'); //div that stretches
	var toggles = document.getElementsByClassName('clicky'); //h3s where I click on

	//accordion effect
	var myAccordion = new fx.Accordion(
		toggles, stretchers, {opacity: false, duration: 200}
	);
	
	//hash function
	/*function checkHash(){
	var found = false;
	toggles.each(function(img, i){
		if (window.location.href.indexOf(img.title) > 0) {
			myAccordion.showThisHideOpen(stretchers[i]);
			found = true;
			}
		});
		return found;
	}*/

//if (!checkHash()) myAccordion.showThisHideOpen(stretchers[0]);
//setFeatureHead(-1);

}

function skinny_box(imageSRC) {
    var overlay = document.getElementById("overlay");
    
    overlay.style.width = overlay.parentNode.offsetWidth + "px";
    overlay.style.height = overlay.parentNode.offsetHeight + "px";
    
    overlay.style.visibility = "visible";
}

function popWindow(href, windowType) {
    var windowString;
    var windowTitle;
    
    switch(windowType) {
        case "zoomView" :
            windowString = "resizable=0,toolbar=0,scrollbars=1,width=710,height=660"
            windowTitle = "fullView"
            break;
        case "accessory" :
            windowString = "resizable=0,toolbar=0,scrollbars=0,width=600,height=473"
            windowTitle = "accessory"
            break;
        default :
            break;
    }
    
    if ((this.wind == null) || (this.wind.closed))
    {
		this.wind = window.open(href,windowTitle,windowString);

	}

	else 

		this.window.location = href;

	this.wind.focus();
}

function content_switcher(showContent) {
    var current_div = document.getElementById(current_content).style;
    var new_div = document.getElementById(showContent).style;
    
    current_div.display = "none";
    new_div.display = "block";
    
    current_content = showContent;
}