window.onload = function()
{
	initOrderButton();
}


function pop(url, width, height)
{
	window.open(url,'','width='+width+', height='+height+', menubar=no, status=no, location=no, toolbar=no, scrollbars=no, resizable=no', false);
}


function poppage(url, width, height)
{
	window.open(url,'','width='+width+', height='+height+', menubar=no, status=no, location=no, toolbar=no, scrollbars=yes, resizable=yes', false);
}

function initOrderButton()
{
	var loBtn = document.getElementById("cmd_OrderNow");
	if(loBtn != null)
	{
		loBtn.onclick = function()
		{
			this.value= "Order wordt verwerkt...";
			this.onclick = function()
			{
				return false;
			}
		}
	}
}

function onThumbClick(a)
{
	l = document.getElementById("artdetailsimglarge");
	if(l != null)
	{
		l = l.firstChild;
		if(l != null && l.src)
		{
			l.src = a.href;
		}

	}
}

function onZoomClick(a)
{
	l = document.getElementById("artdetailsimglarge");
	if(l != null)
	{
		l = l.firstChild;
		if(l != null && l.src)
		{	
			img = l.src;
			iSlash = img.lastIndexOf("/");
			img1 = img.substr(0, iSlash);
			img1 = img1.substr(0, img1.lastIndexOf("/"));
			img2 = img.substr(iSlash);

			w = window.open(img1 + img2, "_newstarpop", "fullscreen=yes");
			w.focus();
		}

	}
}