/*-------------------------------------------------------------------------*/
function startFlash() {
	if($('flash-content')){
	var banner = new SWFObject("/inc/flash/bww.swf", "bww-home-flash", "996", "410", "8", "#FFFFFF");
	banner.addParam("quality", "high");
	banner.addParam("scale", "noscale"); 
	banner.addParam("wmode", "transparent"); 
	banner.addParam("pluginspage", "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
	banner.write("flash-content");
	}
}
window.addEvent('load', startFlash);
/*-------------------------------------------------------------------------*/
function init() {
	var preloaded = new Array();
	function preload_images() {
		for (var i = 0; i < arguments.length; i++){
			preloaded[i] = document.createElement('img');
			preloaded[i].setAttribute('src',arguments[i]);
		};
	};
	preload_images(
		'/favicon.ico',
		'/img/send-over.gif'
	);
}
window.addEvent('domready', init);
/*-------------------------------------------------------------------------*/

function styleSearchForm() {
	if($('send-button')){
		$('send-button').addEvent('mouseover',function(){this.src='/img/send-over.gif'});
		$('send-button').addEvent('mouseout', function(){this.src='/img/send.gif'});
	}
}
window.addEvent('load', styleSearchForm);
/*-------------------------------------------------------------------------*/
function generateEmailLink(n,d) {
	var username = n;
	var hostname = d;
	var linktext = n+"@"+d;
	document.write("<a hr"+"ef=" + "mai"+"l" + "to:" + username +
	"@" + hostname + ">" + linktext + "</"+"a>")
}
/*-------------------------------------------------------------------------*/
function doInputHovers(){
	inputList = $$('.highl');
	inputList.each(function(i){
		i.addEvent('mouseover',function(){this.addClass('highlight');});				 
		i.addEvent('mouseout',function(){this.removeClass('highlight');});
	});
}
window.addEvent('domready', doInputHovers);
