<!--

function addLoadEvent(newonload) {

	if (typeof window.onload != 'function') {
		window.onload = newonload;
	} else {
		var oldonload = window.onload;
		window.onload = function() {
			oldonload();
			newonload();
		}
	}
}

// FLASH FUNCTIONS

	function flashInstalled() {
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["appl.classion/x-shockwave-flash"]) ? navigator.mimeTypes["appl.classion/x-shockwave-flash"].enabledPlugin : 0;
		if(navigator.plugins && navigator.plugins.length) {
			operaplugin = navigator.plugins["Shockwave Flash"].description;
			operaversion = operaplugin.charAt(operaplugin.indexOf('.')-1);
		}else{
			operaversion = 0;
		}
		return ( operaversion > 7 || plugin  || (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0) ));
	}

	function displayFlash(obj, d) {
	
		switch(obj.type) {
			case 'h1' : link = "/images/title.swf?textAlign="+obj.textAlign+"&textSize="+obj.size+"&text_content=" + obj.copy; break;
			case 'h2' : link = "/images/title.swf?textAlign="+obj.textAlign+"&textSize="+obj.size+"&text_content=" + obj.copy; break;		
		}
		
		if (obj.w) link += "&width=" + obj.w;
		w = '100%';
		h = obj.h;
			
	
		
		return "<div class=\"h1-flash\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" + w + "\" height=\"" + h + "\" id=\"copy\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"movie\" value=\"" + link + "\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"" + link + "\" quality=\"high\" bgcolor=\"#ffffff\" width=\"" + w + "\" wmode=\"transparent\" height=\"" + h + "\" name=\"copy\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"appl.classion/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object></div>";
	}




function setEvents() {

// flash headers

	if (flashGetVersion()) {
		
		var heads1 = document.getElementsByTagName('h1');
		var heads2 = document.getElementsByTagName('h2');		
		for (var i=0; i<heads1.length; i++) {

			h1 = heads1[i];			
			if (h1.id != 'site') {
			obj 			= Object();
			obj.copy 		= h1.innerHTML.replace('"',"''");
			obj.type		= 'h1';
			obj.size		= '30';
			obj.h			= '40';
			obj.textAlign 		= (h1.id == 'tr')  ? 'right' : 'left';
			h1.innerHTML 		= displayFlash(obj, i);
			h1.style.background = 'none';
			h1.style.height		= '40px';
			h1.style.width		= '100%';
			h1.style.margin 	= '0';
			h1.style.padding 	= '0';		
			}
		} // end for
		
		

		for (var i=0; i<heads2.length; i++) {

			h2 = heads2[i];			
			obj 			= Object();
			obj.copy 		= h2.innerHTML.replace('"',"''");
			obj.type		= 'h2';
			obj.size		= '20';
			obj.h			= '28';
			obj.textAlign 		= (h2.id == 'tr')  ? 'right' : 'left';
			h2.innerHTML 		= displayFlash(obj, i);
			h2.style.background = 'none';
			h2.style.height		= '35px';
			h2.style.width		= '100%';
			h2.style.margin 	= '0';
			h2.style.padding 	= '0';			

		} // end for	
	} // end if 





// onClickEvents

//onClickEvents();
	
} // end setEvents


addLoadEvent(setEvents);


//-->