var pfeil=new Array("/a.gif","/img/de/buttons/pfeilblau_links.gif","/img/de/buttons/pfeilrot_links.gif")
function img_change(img_name,i) 
{
//window.document[img_name].src=pfeil[i];
window.document.getElementsByName(img_name)[0].src=pfeil[i]}

/* #################
###Produktdetails###
##################*/

function showpico(e, bildsrc)
{
 document.images["bildvorschau_bild"].src = bildsrc;

if (!e) var e = window.event;

var xPos    =  e.clientX;
var yPos    =  e.clientY;

if (document.all && !document.captureEvents) {
 xPos    += document.documentElement.scrollLeft;
 yPos    += document.documentElement.scrollTop;
}


 document.getElementById("bildvorschau").style.top = yPos+ "px";
 document.getElementById("bildvorschau").style.left = xPos + "px";
 document.getElementById("bildvorschau").style.display = "block";
}

function hidepico()
{
 document.getElementById('bildvorschau').style.display = 'none';
}

function winOpen(theURL,winName,features) 
{ 
var win
win = window.open(theURL,winName,features);
win.focus();
}

function makeaktiv(mybutton)
{
	setdeaktiv();
	document.getElementById(mybutton).style.backgroundPosition = '0 0';
}

function setdeaktiv()
{
 var x = document.getElementsByTagName('div');
 for (var i=0;i<x.length;i++)
	{
	 if (x[i].className == 'buttonleft')
	 	{
		 if (x[i].id == 'button03' || x[i].id == 'button04') x[i].style.backgroundPosition = '0 -223px'; 
		 else x[i].style.backgroundPosition = '0 -201px'; 
		}
	}
}

function setaktiv()
{
 var x = document.getElementsByTagName('div');
 for (var i=0;i<x.length;i++)
	{
	 if (x[i].className == 'buttonleft')
	 	{
		 x[i].style.backgroundPosition = '0 0'; 
		}
	}
}