var seritas = function(){
	var buttonColors = [];
	buttonColors[0] = [];
	buttonColors[0][0] = '00FFFF';
	buttonColors[0][1] = '000000';
	buttonColors[1] = [];
	buttonColors[1][0] = '00DFFF';
	buttonColors[1][1] = '000000';
	buttonColors[2] = [];
	buttonColors[2][0] = '00BFFF';
	buttonColors[2][1] = '000000';
	buttonColors[3] = [];
	buttonColors[3][0] = '009FFF';
	buttonColors[3][1] = 'FFFFFF';
	buttonColors[4] = [];
	buttonColors[4][0] = '006FFF';
	buttonColors[4][1] = 'FFFFFF';
	buttonColors[5] = [];
	buttonColors[5][0] = '003FFF';
	buttonColors[5][1] = 'FFFFFF';
	var bCounter = 0;
	return {
		startup:function(){
			$$('[rel="navigation"]').each(function(c){
				var styleOptions = 'background: #' + buttonColors[bCounter][0] + '; color: #' + buttonColors[bCounter][1] + '; font-weight: bold; padding-right: 40;'				
				c.style.color = '#000000';
				c.style.textDecoration = 'none';
				c.style.padding = '5';
				Event.observe(c, 'mouseover', function(){
					new Effect.Morph(c, {style: styleOptions, duration: 0.3});
					return false;
				});
				Event.observe(c, 'mouseout', function(){
					new Effect.Morph(c, {style: 'background: #FFFFFF; color: #000000;  font-weight: normal; padding: 5;', duration: 1});
					return false;
				});
				bCounter++
			});
		}, //startup
		sysFixPNG: function(){
			var arVersion = navigator.appVersion.split("MSIE");
			var version = parseFloat(arVersion[1]);
			var hspaceVal
			
			if ((version <= 6.0) && (document.body.filters)) {
				var img = $$('img').each(function(C){
				var imgName = C.src.toUpperCase();
				  if (imgName.indexOf('IMAGEPROC.ASP?') != -1) return;
					if (imgName.substring(imgName.length-3, imgName.length) == "PNG"){
						var imgID = (C.id) ? "id='" + C.id + "' " : "";
						var imgClass = (C.className) ? "class='" + C.className + "' " : "";
						var imgTitle = (C.title) ? "title='" + C.title + "' " : "title='" + C.alt + "' ";
						var imgStyle = "display:inline-block;" + C.style.cssText;
						if (C.align == "left") imgStyle = "float:left;" + imgStyle;
						if (C.align == "right") imgStyle = "float:right;" + imgStyle;
						if (C.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
						hspaceVal = C.hspace;
						if (hspaceVal != '') imgStyle = 'margin-left:' + hspaceVal + ';margin-right:' + (hspaceVal * 2) + ';' + imgStyle;
						var strNewHTML = "<span " + imgID + imgClass + imgTitle
						+ " style=\"" + "width:" + C.width + "px; height:" + C.height + "px;" + imgStyle + ";"
						+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
						+ "(src=\'" + C.src + "\', sizingMethod='scale');\"></span>" 
						C.outerHTML = strNewHTML;
					}
				});
		   }
	
		}	
	} //return
}();


Event.observe(window, "load", function(){
	seritas.startup();
//	seritas.sysFixPNG();
});
