
	var heroOn=null;
	var allowFade=1;
	var fadeCounter=0;
	var fadeTimer=null;
	var currOpacity=100;
	
	var subheroCaptions={
		  "sh0":"<h2>Reservations &amp; Information</h2><ul><li>Toll Free: 800 464-1993</li><li>Local call: 808 331-8505</li><li>info@hawaii-forest.com</li></ul>",
		  "sh1":"<h2>Bird Watching</h2><h4>Choose between two incredible birding adventures:</h4><ul><li><strong><a href=\"/adventures/rainforest-and-dryforest-birding.asp\" title=\"Rainforest and Dryforest Birding Adventure\">Rainforest and Dryforest</a>:</strong> We cover two rare bird habitats; the cloudmist rainforest on Mauna Loa and also the sub-alpine dry forest of Puu Laau on Mauna Kea.</li><li><strong><a href=\"/adventures/hakalau-forest-wildlife-refuge-birding.asp\" title=\"Hakalau Forest Wildlife Refuge adventure\">Hakalau Forest Wildlife Refuge</a>:</strong> A beautiful rainforest recognized as one of Hawaii's most critical endemic bird habitats.</li></ul><div class=\"bottomleft\"><a href=\"/adventures/birding-overview.asp\" title=\"View more about these adventures\">View more about these adventures >></a></div>",
		  "sh2":"<h2><span>EXCLUSIVE:</span> PinzTrek Offroading</h2><ul><li><h4>Choice of three exciting adventures to remote areas in our six-wheel drive Pinzgauers:</h4><ul><li><strong><a href=\"/adventures/kohala-wai-pinztrek.asp\" title=\"Kohala Wai PinzTrek Adventure\">Kohala Wai PinzTrek</a>:</strong> Drive across Kohala's mountain ridges, cross valley streams, and discover hidden waterfalls and ancient Hawaiian terraces</li><li><strong><a href=\"/adventures/holoholo-hualalai-pinztrek.asp\" title=\"Holoholo Hualalai PinzTrek adventure\">Holoholo Hualalai PinzTrek</a>:</strong> Explore Hualalai Volcano's deep pit craters, clamber through a lava tube cave and hike amidst fragrant native Hawaiian forest.</li><li><strong><a href=\"/adventures/hilo-waterfalls-pinztrek.asp\" title=\"Hidden Waterfalls of Wailuku River PinzTrek adventure\">Hidden Waterfalls of Wailuku River PinzTrek</a>:</strong> Depart Hilo pier and drive into historic Hilo sugar country, on the banks of Wailuku River for spectacular views of falls and flume trails.</li></ul><div class=\"bottomleft\"><a href=\"/adventures/pinztrek-overview.asp\" title=\"View more about these adventures\">View more about these adventures >></a></div>",
		  "sh3":"<h2>Mauna Kea Summit</h2><ul><li>An awesome journey to the summit fo Hawaii's tallest volcano, at 13,796 ft., where you'll witness fabulous sunset views. Then, at the comfortable 9,000 ft. elevation, sip hot cocoa while your guide and our telescope reveal the infinite wonders of the crystal clear Hawaiian night sky.</li></ul><div class=\"bottomleft\"><a href=\"/adventures/mauna-kea-summit-and-stars.asp\" title=\"View more about this adventure\">View more about this adventure >></a></div>",
		  "sh4":"<h2>Kilauea Volcano</h2><ul><li>Explore the Hawaii Volcanoes National Park with our interpretive naturalist guide who will show you all the &quot;must see&quot; places along the route and within the park itself.</li><li><strong>Frommer's Guide</strong> says this journey &quot;<em>... may very well be the highlight of your vacation.</em>&quot;</li></ul><div class=\"bottomleft\"><a href=\"/adventures/kilauea-volcano.asp\" title=\"View more about this adventure\">View more about this adventure >></a></div>",
		  "sh5":"<h2>Kohala Waterfalls</h2><ul><li><span>EXCLUSIVE:</span> 2 streams, 3 bridges and 7 waterfalls make this Kohala adventure a family favorite. On our loop trail you'll pass ancient Hawaiian taro terraces, awesome coastline views and a chance to cool off in an inviting mountain pool under a sparkling waterfall.</li></ul><div class=\"bottomleft\"><a href=\"/adventures/kohala-waterfalls.asp\" title=\"View more about this adventure\">View more about this adventure >></a></div>",
		  "sh6":"<h2>Reservations &amp; Information</h2><ul><li>Toll Free: 800 464-1993</li><li>Local call: 808 331-8505</li><li><a href=\"mailto:info@hawaii-forest.com\">info@hawaii-forest.com</a></li></ul><div class=\"bottomleft\"><a href=\"/reservations/\" title=\"Request a reservation\">Request a reservation >></a></div>",
		  "sh7":"<h2>Headquarters &amp; Store</h2><ul><li>is the Big Island's only travel and outdoor adverture store. Featuring Royal Robbins, Patagonia, Horny Toad, Montrail and Mountainsmith, including gear used on our tours. Located on Hwy. 19 in Kailua-Kona across from Honokohau Harbor behind the Tesoro station.</li></ul><div class=\"bottomleft\"><a href=\"/http://nisbet.net/mivastore/merchant.mv?Screen=SFNT&Store_Code=HFAT\" title=\"Visit the online store\">Visit the online store >></a></div>"
	};
	
	function setOpacity(obj,opacity){
		obj.style.filter="alpha(opacity:"+opacity+")";
		obj.style.KHTMLOpacity=opacity/100;
		obj.style.MozOpacity=opacity/100;
		obj.style.opacity=opacity/100;
	}
	function subheroRollover(obj){
		var targId = obj.id;
		var captionObj = document.getElementById(targId + "cap");
		setAllowFade(0);
		
		setAllCaptions(false);
		captionObj.style.display='block';
		setAllImgs(30);
		setOpacity(obj,100);
		heroOn=obj;
	}
	function subheroRollout(obj){
		heroOn=null;
		setAllowFade(1);
	}
	function setAllowFade(mode){
		fadeCounter=0;
		fadeTimer=window.setTimeout("timedFade()",500);
		allowFade=mode;
	}
	function timedFade(){
		if (fadeCounter>15 && allowFade==1){
			if (currOpacity < 100){
				setAllImgs(currOpacity + 10);
				fadeTimer=window.setTimeout("timedFade()",30);
			} else {
				setAllCaptions(false);
				var captionObj = document.getElementById("sh0cap");
				captionObj.style.display="block";
			}
		} else {
				fadeCounter=fadeCounter+1;
				fadeTimer=window.setTimeout("timedFade()",500);
		}
	}
	function setAllCaptions(display){
		var currCaption;
		var captionParent = document.getElementById("subheros");

		var allCaptions=$.getByClass("subherocaption",captionParent,"div");
		for (i=0; i<allCaptions.length; i++){
			allCaptions[i].style.display='none';
		}
	
	}
	function setAllImgs(opacity){
		var inc=0;
		currOpacity=opacity;
		if (opacity > 100) opacity = 100;
		var alltags=document.all? document.all : document.getElementsByTagName("*");
		for (i=0; i<alltags.length; i++){
			if (alltags[i].className.indexOf('subheropic')> -1)
				setOpacity(alltags[i],opacity);
		}
	}	