$(document).ready(function() {
	if (navigator.appVersion.match(/MSIE [0-7]\./)) {
		$('*').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 + "')"});
			 }
		});
	}
	$('.block').each(function () {
	    txtH2 = $("H2",this)[0].innerHTML;
	    txtDIV = $("DIV",this)[0].innerHTML;
		txt = '<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td width="15" height="45"><img src="'+DocumentRoot+'images/auto/block/lt.png"></td><td style="background:url('+DocumentRoot+'images/auto/block/t.png) repeat-x bottom">';
		txt += '<h2>' + txtH2 + '</h2></td><td width="19"><img src="'+DocumentRoot+'images/auto/block/rt.png"></td></tr><tr><td style="background:url('+DocumentRoot+'images/auto/block/l.png) repeat-y right"><img src="'+DocumentRoot+'images/spacer.gif"></td><td class="t">';
		txt += txtDIV + '</td><td style="background:url('+DocumentRoot+'images/auto/block/r.png) repeat-y left"><img src="'+DocumentRoot+'images/spacer.gif"></td></tr><tr><td width="15" height="22"><img src="'+DocumentRoot+'images/auto/block/lb.png"></td><td style="background:url('+DocumentRoot+'images/auto/block/b.png) repeat-x top"><img src="'+DocumentRoot+'images/spacer.gif"></td><td width="19"><img src="'+DocumentRoot+'images/auto/block/rb.png"></td></tr></table>';
		this.innerHTML = txt;
	});

	$('INPUT').blur(function(){ changeText(this,this.alt,0) }).focus(function(){ changeText(this,this.alt,1) });
});
