// JavaScript Document

var taskbar;
var windows;

function Load(data)
{
	
	focus();
}

function run()
{
	taskbar = new Taskline("44px","bilder/menu.png");
	taskbar.insert(document.getElementsByTagName("Body")[0]);
	taskbar.addButton("home",63 , 0 ,"windows");
//	taskbar.addButton("projekte",112, 295, "windows");
//	taskbar.addButton("referenzen",149,407,"windows");
	taskbar.addButton("kontakt",112,183, "windows");
	taskbar.addButton("anfahrt",108,556,"windows");
	taskbar.addButton("impressum",120,63, "windows");
	windows = new hWnd(true,"800","350","50","windows","home");
	windows.insert(document.getElementById("mainwnd"));
}



/**
*	CryptMail
*
*	Simple Javascript Email-Address crypter / uncrypter.
*	(C) 2005 KLITSCHE.DE // DIRK ALBAN ADLER
*	http://cryptmail.klitsche.org
*	
*	CryptMail is published under the CC-GNU LGPL
*	http://creativecommons.org/licenses/LGPL/2.1/
*
*	It is provided as is. No warrenties. No support.	
*/

function unCryptMail (r)  
{
	r = unescape (r);
	var l = r.length;
	var o = "";
	for (i = 0; i < l; i++)
	{
		o += String.fromCharCode (r.charCodeAt (i) - 1);
	}
	return o; 
}

function cryptMail (r) 
{
	var l = r.length;
	var o = "";
	for (i = 0; i < l; i++)
	{
		o += String.fromCharCode (r.charCodeAt (i) + 1);
	}
	return escape (o);
}

function mailto (s)	
{
	document.location.href =  "mailto:" + unCryptMail(s);
}

