function switchLayout(num) {
 var styles = document.getElementsByTagName("style");
 for(var i = 0; i < (styles.length); i++) {
  if(i==num) {
   styles[i].disabled = false;
   cookieManager.setCookie("style", styles[i].getAttribute("title"), 365);
  }
  else {
   if(styles[i].getAttribute("title")!="") {
      styles[i].disabled = true;
   }
  }
 }
}

var act;
/*
function makeNewNote(){
mainDivElement = document.getElementById("main");
newNote = document.createElement("div");
newNote.setAttribute("id", "col2");
mainDivElement.appendChild(newNote);
newContentNote = document.createElement("div");
newContentNote.setAttribute("id", "col2_content");
newContentNote.setAttribute("class", "clearfix");
newNote.appendChild(newContentNote);
}
*/
var http = null;
function getContent()
{
	if (window.XMLHttpRequest) 
	{
	   http = new XMLHttpRequest();
	} 
	else if (window.ActiveXObject) 
	{
	   http = new ActiveXObject("Microsoft.XMLHTTP");
	}
	if (http != null) 
	{
	   http.open("POST", "index.php", true);
	   http.onreadystatechange = ausgeben;
	   http.setRequestHeader(
	      "Content-Type",
	      "application/x-www-form-urlencoded");
	   http.send("id=74");
	}
}
function ausgeben() 
{
   if (http.readyState == 4) 
   {
     try
     {
       document.getElementById("Ausgabe").innerHTML = http.responseText;
     }
     catch(e) {}
   }
}
/*
window.onload = function()
{

	setupToolTips();
	return false;
}
*/
    
window.addEvent('domready', function()
//function setupToolTips()
{

	var myTips = new Tips($$('.tooltip'), 
   						{
							initialize: function()
							{
								this.fx = new Fx.Tween(this.tip, {'property': 'opacity', 'duration': 200, 'wait': false}).set(0);
								this.fx.set('z-index' , '13000');
								this.fx.set('width' , '263px');
								this.fx.set('color' , '#FFFFFF');
								this.fx.set('background' , 'transparent none repeat scroll 0 0');
							},
							onShow: function(toolTip)
							{
								this.fx.start(1);
							},
							onHide: function(toolTip)
							{
								this.fx.start(0);
							},
							offsets: {
								x: -200,
								y: 20
							}
   						}
   					);
   
});
//document.addEventHandler("load", setupToolTips, true);
