/**
 * Imtech JavaScript library | Visual functions
 * Composed 2007 by Waldek Mastykarz | Imtech ICT BS
 * All rights reserved  
 * @version		1.2  
 */

Imtech = {}; 
Imtech.Visual = {};

/**
 * Switches CSS files of the given title
 * @author	Waldek Mastykarz | Imtech ICT BS
 * @version	1.0
 */
Imtech.Visual.SwitchCss = function(title)
{
	var i, a, main;
	for (i=0; (a = document.getElementsByTagName("link")[i]); i++)
	{
		if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title"))
		{
			a.disabled = true;
			if (a.getAttribute("title") == title)
			{
				a.disabled = false;
			}
		}
	}
}