//\/////
//\  overLIB XHTML Class Plugin
//\    Modified May 26, 2008 by Daynos
//\
//\  You may not remove or change this notice.
//\  Copyright Erik Bosrup 1998-2003. All rights reserved.
//\  Contributors are listed on the homepage.
//\  See http://www.bosrup.com/web/overlib/ for details.
//\/////
////////
// PRE-INIT
// Ignore these lines, configuration is below.
////////
if (typeof olInfo == 'undefined' || typeof olInfo.meets == 'undefined' || !olInfo.meets(4.21)) alert('overLIB 4.21 or later is required for the XHTML Class Plugin.');
else {
	
	////////
	// DEFAULT CONFIGURATION
	// No default config needed here. All in overlib.css
	////////
	
	////////
	// END OF CONFIGURATION
	// Don't change anything below this line, all configuration is above.
	////////
	
	////////
	// INIT
	////////
	// Nothing to init yet
	
	////////
	// LAYER GENERATION FUNCTIONS
	////////
	// Makes simple div without caption
	function ol_content_simple_xhtml(text) {
		var txt = '<div class="overBg"><div class="overTxt">'+text+'</div></div><div class="overBtm"></div>';
		return txt;
	}
	
	// Makes div with caption and NON optional close link
	function ol_content_caption_xhtml(text,title,close) {
		var closing, closeevent;
	
		closing = "";
		closeevent = (o3_closeclick == 1) ? "onclick": "onmouseover";
	
		closing = '<a class="overClose" href="javascript:return '+fnRef+'cClick();" '+closeevent+'="return '+fnRef+'cClick();">'+close+'</a>';
		txt = '<div class="overBg"><div class="overTtl">'+title+'</div>'+closing+'<div class="overTxt">'+text+'</div></div><div class="overBtm"></div>';
		// Tip : don't want "close link", put " .overClose{display:none;} " in your CSS
	
		return txt;
	}
	
	// Useless function : use CSS instead !
	function ol_content_background_xhtml(text,picture,hasfullhtml) {
		return text;
	}
	
	////////
	// PLUGIN REGISTRATIONS
	////////
	registerHook("ol_content_simple",ol_content_simple_xhtml,FREPLACE);
	registerHook("ol_content_caption",ol_content_caption_xhtml,FREPLACE);
	registerHook("ol_content_background",ol_content_background_xhtml,FREPLACE);
}
//end 
