function pngFix(){
 if (document.all && /MSIE (5\.5|6)/.test(navigator.userAgent) && 
  document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule)
 {
  document.styleSheets[0].addRule('img', 'behavior: url(css/iepngfix.htc)');
  document.styleSheets[0].addRule('div', 'behavior: url(css/iepngfix.htc)');
  document.styleSheets[0].addRule('a', 'behavior: url(css/iepngfix.htc)');
 }
}

function viewTree(obj){
	var dirs = document.getElementById('rootTree').getElementsByTagName('ul');
	for(i=0;i<dirs.length;i++){ dirs[i].style.display="none"; }
	document.getElementsByClassName('subFolder')[0].style.display="block";
}

function autoFill(id, v){
	$(id).css({ color: "#ffffff" }).attr({ value: v }).focus(function(){
		if($(this).val()==v){
			$(this).val("").css({ color: "#8B8B8B" });
		}
	}).blur(function(){
		if($(this).val()==""){
			$(this).css({ color: "#ffffff" }).val(v);
		}
	});

}

