var path= "../pic/prog_nav/"
var low = new Array();
var hig = new Array();
var title = new Array('gesamt','aktuell','sport','tanz','film','live','lesung','dj','archiv','newsletter');

var act = new Array();
var select = -1;
var temp = 0;


// Preload

if (document.images)
{
	for (i=0;i<title.length;i++)
	{
		act[i] = new Image;
		act[i].src = path + title[i] + "_clic.gif";
		low[i] = new Image;
		low[i].src = path + title[i] + "_low.gif";
		hig[i] = new Image;
		hig[i].src = path + title[i] + "_high.gif";
	}
}

// Functions

function over(no)
{
	if (document.images && select != no)
	{
		document.images[title[no]].src = hig[no].src
	}
}

function out(no)
{
	if (document.images && select != no)
	{
		document.images[title[no]].src = low[no].src
	}
}

function clic(no)
{
	if (document.images)
	{
		document.images[title[no]].src = act[no].src
		temp = select;
		select = no;
		if (temp != -1) {out(temp)}
	}
}

// Function 2Frames

function ZweiFrames(URL1,F1,URL2,F2) {
  Frame1=eval("parent."+F1);
  Frame2=eval("parent."+F2);
  Frame1.location.href = URL1;
  Frame2.location.href = URL2;
}

// Function NewWinV variabel einstellbar

function OpenNewWinV(theURL,winName,features) {
  var Neufenster =  window.open(theURL,winName,features);
  Neufenster.focus()
}

// Function NewWinF fixierte Größe

function OpenNewWinF(theURL,winName,features) {
  var Neufenster =  window.open(theURL,'bigpicF','width=520,height=600,scrollbars=yes');
  Neufenster.focus()
}

