function bw(id)
{
	var e;

	for ( var i = 0; i < 2; ++i )
		if ( e = document.getElementById("divbetaalwijze" + i) )
			e.style.display = "none";

	if ( id >= 0 && id < 2 )
		if ( e = document.getElementById("divbetaalwijze" + id) )
			e.style.display = "block";
}

var SITE_URL = "http://www.creditsmedia.nl/shop/";
var ART_W = 300;
var ART_H = 300;

function shop_artimg(id, name)
{
	var w = window.open(
		SITE_URL + "artimg.php?id=" + id + "&name=" + name,
		"shop_popup",
		"width=" + ART_W + ",height=" + ART_H + ",location=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=yes");
	if ( w && w.focus )
		w.focus();

	return false;
}

function shop_gohome()
{
	location.href = SITE_URL;
}

function shop_onclickgohome(id)
{
	var e = document.getElementById(id);
	if ( e )
		e.onclick = shop_gohome;
}

function shop_menuon(e)
{
	e = e || window.event;
	var img = e.target || e.srcElement;

	if ( img && img.srcon )
		img.src = img.srcon;
}

function shop_menuoff(e)
{
	e = e || window.event;
	var img = e.target || e.srcElement;

	if ( img && img.srcoff )
		img.src = img.srcoff;
}

function shop_menuhover()
{
	var img = document.getElementsByTagName("IMG");
	if ( img )
		for ( var i = 0; i < img.length; ++i )
			if ( img[i].className == "menuhover" )
			{
				img[i].srcoff = img[i].src;
				img[i].srcon  = img[i].src.replace(/\_off\.gif$/, "_on.gif");
				img[i].onmouseover = shop_menuon;
				img[i].onmouseout  = shop_menuoff;
			}
}

function shop_init()
{
	//shop_onclickgohome("header");
	//shop_menuhover();
}

