/*
This will enable a mouse over of the
title to show the intro div
*/
var ProductChooserToolTip = {
	id: "contentChooser",
	initialize: function() {
		var contentDiv = document.getElementById(this.id);
		if (!contentDiv) return;
			
		//get the title div
		var headerDiv = findChildByTag(contentDiv, "DIV");
		if (!headerDiv) return;	
		
		headerDiv.onmouseover = this.showToolTip.bind(this);
		headerDiv.onmouseout = this.hideToolTip.bind(this);
	},

	getIntro: function() {
    	return document.getElementById("intro");
	},

	showToolTip: function() {
		this.getIntro().style.visibility = "visible";
	},

	hideToolTip: function() {
		this.getIntro().style.visibility = "hidden";
	}
}

INITIALIZER.add(
		function() {
			//var ss = new SlideShow.Viewer("ssViewer");
			Menu.createSelector("div", "mainMenu", "Selected");
			Menu.createSelector("li", "subMenuItem", "Selected");
			ProductChooserToolTip.initialize();
			try {
				SLIDE_PRELOAD = false;
			} catch (e) {}
		}
);

Assets.blankGIF = "../images/blank.gif";


//Debug.setOn(true);



