var isIE6 = (!window.XMLHttpRequest);
var ieVersion = getBrowserVersion();


function getBrowserVersion() {
    if (navigator.appName == "Microsoft Internet Explorer") {
        version = navigator.userAgent
        pos1 = version.indexOf("MSIE") + 3;
        version = version.substring(pos1 + 1, pos1 + 6);
        version = parseInt(trim(version));
        ieVersion = version;
        isIE6 = true;
    }
    else {
        ieVersion = -1;
        isIE6 = false;
    }
    return ieVersion
}

function trim(s) {
    var retVal = "";
    if (s != null) {
        retVal = s;
        retVal = retVal.replace("  ", " ");
        return retVal.replace(/^\s*(.*?)\s*$/, "$1")
    }
}


function png(img) {
    if (isIE6) {
    
    	if(!img){try{img = this;}catch(ex){}}
    
    	var data = '<img alt="'+img.alt+'" align="'+img.align+'" class="'+img.className+'" src="/pixel.gif" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + img.src + '\');cursor:'+img.style.cursor+';" />';
		img.outerHTML = data;
		
    }
}