// JavaScript Document
/*
if(typeof sIFR == "function"){
	sIFR.bAutoInit = true;
	sIFR.setup();
	sIFR.replaceElement("h1", named({sFlashSrc: "/creo_files/rockwell.swf", sColor: "#39a3d3", wmode: 'transparent'}));
	sIFR();
};*/

// Fade in overlays
    
function showOverlay (itemID,i) {
	if (1 == 2){
		var objectName = 'ol' + itemID + '_' + i;
		var thisID = document.getElementById(objectName);	
		thisID.style.display = 'block';
		
	} else { 
	var objectName = 'ol' + itemID + '_' + i;
	new Effect.Opacity(objectName, { from: 0, to: 1, duration:0.3, queue: { position: 'end', scope: objectName } });}
}

function hideOverlay (itemID,i) {
	if (1 == 2){
		var objectName = 'ol' + itemID + '_' + i;
		var thisID = document.getElementById(objectName);	
		thisID.style.display = 'none';
		
	} else {
	var objectName = 'ol' + itemID + '_' + i;
	new Effect.Opacity(objectName, { from: 1, to: 0, duration:0.3, queue: { position: 'end', scope: objectName } });}
}

function initHomeSlide() {

	jQuery(document).ready(function() {
			jQuery('.slideshow').after('<div id="slideshowNav">') 
			.cycle({
			fx: 'scrollHorz' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
			, timeout:	8000
			, speed: 500

		});
	});

}
