﻿function SwapItem(element, className) {
	element.parentNode.parentNode.className = className
	if (typeof correctPNG == "function") {
		CorrectTheIconWidths();
	}
}

/*
Corrects the width for ie 6 since the invisible elements recieve a widht 0 and a hight of 0
*/
function CorrectTheIconWidths() 
{
	var container = document.getElementById("accoIconsContainer");
	if(container != null)
	{
		var elements = container.getElementsByTagName("span");
		var i = 0;
		if (elements != null && elements.length > 0) 
		{
		    for (i; i < elements.length; i++) {
		        if (elements[i].parentNode.className.indexOf('icon') > -1) {
			        elements[i].style.width = "67px";
			        elements[i].style.height = "68px";
			    }
			}
		}
	}
}
