window.addEvent('domready', function() {
	
	var tipMe = new Tips($$('.styleTip'), {
		showDelay: 400,
		
		initialize:function(){
			this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 600, wait: false}).set(0);
		},
		onShow: function(toolTip) {
			
			this.fx.start(1);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		}
	});
	
	
/* END DOM READY */	
});


function toggleRow(row, hoverRow){
var rg = new RegExp(hoverRow,'i');
	if (row.className.search(rg) >= 0){

		row.className = row.className.replace(rg,'');
	} else {
		if (row.className) { row.className = row.className + ' '; }
		row.className = row.className + hoverRow;
	}
}


function ToggleFolder (el){

	if (typeof el == 'string') {
		el = document.getElementById(el);
	}
	var msg = el.id + "\n";


	var os = '';

	
	for (var c=0;c<el.childNodes.length;c++){		
		if (el.childNodes[c].id){
			msg = msg + el.childNodes[c].id + ' ' + el.childNodes[c].style.display + "\n";
			if (el.childNodes[c].style.display == 'block') {
				el.childNodes[c].style.display = 'none';
				if (el.className == 'Folder') el.style.backgroundImage = 'url(Images/folder.png)';			
				if (el.className == 'FullFolder') el.style.backgroundImage = 'url(Images/folder_full.png)';			

			} else {
				el.childNodes[c].style.display = 'block';
				if (el.className == 'Folder') el.style.backgroundImage = 'url(Images/open_folder.png)';			
				if (el.className == 'FullFolder') el.style.backgroundImage = 'url(Images/open_folder_full.png)';			

			}

			
		}

	}

}


