
// show & hide navigation
var naviActive = 0;

function act(which) {
	if(document.getElementById) 
	{
		var act = "navi" + which;
		document.getElementById(act).style.background='#90C4D2';
	}
}

function inact(which)
{
	if(document.getElementById) 
	{
		var inact = "navi" + which;
		document.getElementById(inact).style.background='#fff';
	}
}

// show & hide text-image tips
var max = 4;

function show(which) 
{
	if(document.getElementById) 
	{
		for(var i = 2; i <= max; i++)
		{
			var image = "image" + i;
			var text = "text" + i;
			if(i == which)
			{
				document.getElementById(image).style.backgroundColor = "#90c4d2";
				document.getElementById(text).style.color='#fff';
				document.getElementById(text).style.backgroundColor='#33f';
			} 
			else 
			{
				document.getElementById(image).style.backgroundColor = "#eee";
				document.getElementById(text).style.color='#333';
				document.getElementById(text).style.backgroundColor='#eee';
			}
		}
	}
}

function forget() 
{
	if(document.getElementById) 
	{
		for(var i = 2; i <= max; i++)
		{
			var image = "image" + i;
			var text = "text" + i;
			document.getElementById(image).style.backgroundColor = "#eee";
			document.getElementById(text).style.color="#333";
			document.getElementById(text).style.backgroundColor="#eee";
		}
	}
}

var bigImage;
function showImage(filename, width, height, work)
{
	width = width + 122;
	height = height + 150;
	if (bigImage) bigImage.close();
	var url = "../show_image.php?i=" + filename + "&w=" + work;
	bigImage = window.open(url,'bigImage','toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,scrollbars=0,titlebar=0,top=0,left=0,height=' + height + ',width=' + width + ',dependent=1');
 	setTimeout('bigImage.focus()',200);
}

function showPressImage(filename, width, height, work)
{
	width = width + 122;
	height = height + 170;
	if (bigImage) bigImage.close();
	var url = "../show_image.php?i=" + filename + "&w=" + work + "&p=1";
	bigImage = window.open(url,'bigImage','toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,scrollbars=0,titlebar=0,top=0,left=0,height=' + height + ',width=' + width + ',dependent=1');
 	setTimeout('bigImage.focus()',200);
}

var fotoContact;
function showPhotographes(backdrop)
{
	var width = 620;
	var height = 500;
	var top = 20;
	var left = 20;
	var url = "foto-contact.php"
	if(backdrop == 1) 
	{
		url = "../foto-contact.php";
		top = 0;
	    left = 0;
	}
	fotoContact = window.open(url,'fotoContact','toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,scrollbars=1,titlebar=0,top=' + top + ',left=' + left + ',height=' + height + ',width=' + width + ',dependent=1');
 	setTimeout('fotoContact.focus()',200);
}

function starter() {
	window.defaultStatus=' J&ouml;rg M&uuml;ller ::: Jongleur et Danseur';
}


