var img_offset = 1; //fŸrs MenŸ

var pic_num = 2;

var n = new Array();
n[0] = new Image(); n[0].src = "../../img/lay/portfolio_off.gif";
n[1] = new Image(); n[1].src = "../../img/lay/books_off.gif";
n[2] = new Image(); n[2].src = "../../img/lay/exhibitions_off.gif";
n[3] = new Image(); n[3].src = "../../img/lay/biography_off.gif";
n[4] = new Image(); n[4].src = "../../img/lay/news_off.gif";
n[5] = new Image(); n[5].src = "../../img/lay/contact_off.gif";
n[6] = new Image(); n[6].src = "../../img/lay/portfolio_on.gif";
n[7] = new Image(); n[7].src = "../../img/lay/books_on.gif";
n[8] = new Image(); n[8].src = "../../img/lay/exhibitions_on.gif";
n[9] = new Image(); n[9].src = "../../img/lay/biography_on.gif";
n[10] = new Image(); n[10].src = "../../img/lay/news_on.gif";
n[11] = new Image(); n[11].src = "../../img/lay/contact_on.gif";

function nav_ch(bild,nummer) 
{if ((bild+1) != nav) 
			{
			window.document.images[(bild+img_offset)].src = n[nummer].src;
			}
}

function array2D(x,y)
{
 this.items = new Array(x);
 for(i=1;i<y;i++){this.items[i] = new Array(y);}
}

function init()
{
window.document.images[((nav-1)+img_offset)].src = n[(nav+5)].src;
}

function init_txt(vol,caption)
{
if (caption==1) document.getElementById("caption").firstChild.nodeValue = txt.items[vol][1];
}

function center_txt()
{
document.getElementById("caption").style.textAlign = "center";
document.getElementById("caption").style.visibility = "visible";
}

function bigone(num)
{document.images[(num*2)+imgoffset].width=48;
 document.images[(num*2)+imgoffset].height=72;
}

function smallone(num)
{document.images[(num*2)+imgoffset].width=24;
 document.images[(num*2)+imgoffset].height=36;}

function gopic(vol,index)
{ 
if (index) pic_num = index;
if (pic_num>10) pic_num = 1; //Anzahl fix auf 10 gestellt
document.con_pic.src="../../img/books/con_"+vol+"_"+pic_num+".jpg";
pic_num++;
}

function goport(vol,index,port_end,caption)
{ 
if (index) pic_num = index;
if (pic_num>port_end) pic_num = 1;
document.getElementById("caption").style.visibility = "hidden";
document.getElementById("caption").style.textAlign = "left";
if (caption==1) document.getElementById("caption").firstChild.nodeValue = txt.items[vol][pic_num];
document.con_pic.src="../../img/portfolio/port_"+vol+"_"+pic_num+".jpg";
pic_num++;
}

