var w=100, h=100;
var sw=screen.width/2, sh=screen.height/2;

function showPic(name)
{
	var win1 = window.open("show_pic.htm?"+name,"win1","left="+(sw-w/2)+",top="+(sh-h/2)+",width="+w+",height="+h);
	win1.focus();
}

function openWin(url,x,y,w,h)
{
	var win2 = window.open(url,"win2","left="+x+",top="+y+",width="+w+",height="+h);
	win2.focus();

}





var max, posi;
var foto   = new Array();
var zitat  = new Array();
var person = new Array();

function initOrange()
{
	max = foto.length;
	posi = Math.floor(Math.random()*max);
}

function changeOrange()
{
	document.getElementById("orangeImg").src         = foto[posi].src;
	document.getElementById("orangeText1").innerHTML = "&quot;" + zitat[posi] + "&quot;";
	document.getElementById("orangeText2").innerHTML = person[posi];
	posi = posi + 1;
	if (posi>=max) posi = 0;
//	window.setTimeout("changeOrange();",8000);
}
