﻿/*
*    PNG24 Filter for IE 5 ~ IE6 ( 2009-10-09 )
*    pRix present
*/

if ( /msie 6|msie 5/i.test(navigator.userAgent) ) {
	document.write("<style type='text/css'> .png24 { behavior:expression(this.style.behavior = null, NPngFilter(this)) ; } }  </style>");
}

function NPngFilter(obj) {

	if (obj.nodeName == "IMG") {
		var src = obj.src;
		obj.src = "http://public.gametree.co.kr/Global/img/blank.gif";
		obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='scale')";
	} else if ( obj.currentStyle["backgroundImage"].indexOf('.png') != -1 ) {
		obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+obj.currentStyle["backgroundImage"].replace('url("', '').replace('")', '')+"', sizingMethod='crop')";
		obj.style.backgroundImage = "none";
	}

}