$(document).ready(function() {
	if (navigator.appVersion.match(/MSIE [0-6]\./)) {
		$('*').each(function () {
			  if (this.currentStyle.backgroundImage != 'none') {
				src = this.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/);
			    if (src) {
			        src = src[1]; 
				    $(this).css({'backgroundImage': 'none', 'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='" + src + "')"});
				 }
			  }
		});
		$('IMG').each(function () {
			if (this.src.indexOf(".png")>0) {
		        src = this.src; 
		        this.src = DocumentRoot+'images/spacer.gif';
			    $(this).css({'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=no, src='" + src + "')"});
			 }
		});
	}
	$('#mainManu TD')
		.each(function(){ var obj = $("SPAN",this); if(obj[0]) $(this)
			  .mouseover(function(){ var obj = $("SPAN",this); $(obj[0]).show(); })
			  .mouseout (function(){ var obj = $("SPAN",this); $(obj[0]).hide(); });
		});
	$('#mainManu DT')
		.each(function(){ var obj = $("SPAN",this); if(obj[0]) $(this)
			  .mouseover(function(){ var obj = $("SPAN",this); $(obj[0]).show(); })
			  .mouseout (function(){ var obj = $("SPAN",this); $(obj[0]).hide(); });
		});
	$('.block').each(function(){ this.innerHTML = '<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="8" height="8"><img src="'+DocumentRoot+'images/block_lt.gif"></td><td style="background:url('+DocumentRoot+'images/block_t.gif) repeat-x top"><img src="'+DocumentRoot+'images/spacer.gif"></td><td width="8"><img src="'+DocumentRoot+'images/block_rt.gif"></td></tr><tr><td style="background:url('+DocumentRoot+'images/block_l.gif) repeat-y left"><img src="'+DocumentRoot+'images/spacer.gif"></td><td style="padding:10px">'+this.innerHTML+'</td><td style="background:url('+DocumentRoot+'images/block_r.gif) repeat-y right"><img src="'+DocumentRoot+'images/spacer.gif"></td></tr><tr><td height="8"><img src="'+DocumentRoot+'images/block_lb.gif"></td><td style="background:url('+DocumentRoot+'images/block_b.gif) repeat-x bottom"><img src="'+DocumentRoot+'images/spacer.gif"></td><td><img src="'+DocumentRoot+'images/block_rb.gif"></td></tr></table>' });
	$('H1').each(function(){ txt = this.innerHTML; if(txt.indexOf(" ")>0) this.innerHTML = "<span>"+txt.substr(0,txt.indexOf(" "))+"</span>"+txt.substr(txt.indexOf(" ")) });
	$('H2.color').each(function(){ txt = this.innerHTML; if(txt.indexOf(" ")>0) this.innerHTML = "<span>"+txt.substr(0,txt.indexOf(" "))+"</span>"+txt.substr(txt.indexOf(" ")) });
	$('#rowContent').each(function(){ this.height = document.body.offsetHeight - 440 });
	$('INPUT').blur(function(){ changeText(this,this.alt,0) }).focus(function(){ changeText(this,this.alt,1) });
	$("HR").attr("color", "#c0d600");
});
