document.write('<style type="text/css">input.styled { display: none; } select.styled { position: relative; opacity: 0; filter: alpha(opacity=0); z-index: 5; } .disabled { opacity: 0.5; filter: alpha(opacity=50); }</style>');
window.addEvent('domready', function(){
	var Custom = sortSelects();		
});

function sortSelects(){
	var labelArray = $$('.select');
	var labels = $$('.select').setStyle('position','absolute');
	// Set each label it's bg
	labelArray.each(function(ele){
		ele.addClass('selectBg');
		ele.removeClass('hide');
	});		
	var inputs = $$('#container input'), span = Array(), textnode, option, active;
	inputs = $$('#container select');
	for(a = 0; a < inputs.length; a++) {
		if(inputs[a].className == 'styled') {
			option = inputs[a].getElementsByTagName('option');
			active = option[0].childNodes[0].nodeValue;
			textnode = document.createTextNode(active);
			for(b = 0; b < option.length; b++) {
				if(option[b].selected == true) {
					textnode = document.createTextNode(option[b].childNodes[0].nodeValue);
				}
			}
		}
	}
}
