
//...image roll over
function img_ro() {
	if (!document.getElementById) return;
	//...for img
	var pre_img_ar = new Array();
	var ro_img = document.getElementsByTagName('img');
	for (var i=0; i<ro_img.length;i++) {
		if (ro_img[i].className.match('roimg')) {
			var out_src = ro_img[i].src;
			var ext = out_src.substr(out_src.length - 4,4);
			var over_src = out_src.replace(ext,'_o'+ext);
			pre_img_ar[i] = new Image();
			pre_img_ar[i].src = over_src;
			ro_img[i].setAttribute('out_src',out_src);
			ro_img[i].setAttribute('over_src',over_src);
			ro_img[i].onmouseover = function(){this.src = this.getAttribute('over_src');}	
			ro_img[i].onmouseout = function(){this.src = this.getAttribute('out_src');}
		}
	}
}
try{window.addEventListener("load",img_ro,false);}catch(e){window.attachEvent("onload",img_ro);}


//...for IE6 background
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}

//...for IE6 PNG
/*
document.write(
	"<!--[if lte IE 6]>\n"+
	"<script type='text/javascript' src='c/js/DD_belatedPNG_0.0.8a-min.js'><\/script>\n"+
	"<script type='text/javascript'>DD_belatedPNG.fix('.png');<\/script>\n"+
	"<![endif]-->\n"
);
*/
/*
document.write(
	"<script src=\"c/js/jquery.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n"+
	"<script src=\"c/js/jquery.bgFade.min.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n"+
	"<script src=\"c/js/jquery_layout.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n"
);
*/

