jQuery.noConflict();

jQuery(document).ready(function($){
	//Navigation eins
	$("#nav1").find('img.no')
	.hover(
		function()
		{
			this.src = this.src.replace("_no","_cur");
		},
		function()
		{
			this.src = this.src.replace("_cur","_no");
		});

	$("#nav1").find('img.cur').attr("src", function () {
		this.src = this.src.replace("_no","_cur");
	})

	//Images
	$("#previews > img")
	.mouseover(
		function()
		{
			$('#gross').attr('src' , this.src.replace("_small","_big"));
		});

	//Navigation zwei
	$("#nav2").find('img.no')
	.hover(
		function()
		{
			this.src = this.src.replace("_no","_cur");
		},
		function()
		{
			this.src = this.src.replace("_cur","_no");
		});

	$("#nav2").find('img.cur').attr("src", function () {
		this.src = this.src.replace("_no","_cur");
	})

	//Images
	$("#previews > img")
	.mouseover(
		function()
		{
			$('#gross').attr('src' , this.src.replace("_small","_big"));
		});

	//Subnavi
	$(".nav2toggle").hover(
		function () {
			$(this).find(".subnav").show("fast");
			return false;
		},
		function () {
			$(this).find(".subnav").hide("fast");
		}
		);
	$(".subitem").hover(
		function () {
			$(this).addClass('ro');
			return false;
		},
		function () {
			$(this).removeClass('ro');
		}
		);
});

//uncrypt mail
function UnCryptMailto(s, shift) {
	var n=0;
	var r="";
	for(var i=0;i<s.length;i++) {
		n=s.charCodeAt(i);
		if (n>=8364) {
			n = 128;
		}
		r += String.fromCharCode(n-(shift));
	}
	return r;
}

function linkTo_UnCryptMailto(s, shift)	{
	location.href=UnCryptMailto(s, shift);
}

function uncryptInfoMail(){
	linkTo_UnCryptMailto('ocknvq<kphqBqdgtg/pgwuvcfv0fg', 2);
}

function uncryptProjectMail(){
	linkTo_UnCryptMailto('ocknvq<kphqBmckugt/rtqlgmvg0fg', 2);
}
