<!--
$(document).ready(function()
{
	if (document.getElementById('bigPic'))
	{
		$('#bigPic').cycle({fx: 'fade', timeout:5000});
	}
	
	
	
});

function LogoutUser()
{
	if(confirm('Wilt u de gebruiker ' + _account + ' uitloggen?'))
	{
		window.location = _root + "default.asp?action=logout";
	}
}
	
function showProgress(id)
{
	var s = "<div id='progress'><img src='" + _root + "images/progress.gif' align='absmiddle' width='12' height='12' style='margin: 0 8px 0 0'>&nbsp;Bezig met laden...</div>";
	$(id).html(s);
}

function removeProgress()
{
	$("#progress").remove();
}



function getLocation(o)
{
	var s = o.value;

	var sCountry = document.getElementById('selectedCountry').value;
	if(sCountry == "Belgie"){
		var sURL = _root + "include/ajax/getLocation.asp?zipcode=" + s + "&country=belgie";
	} else {
		var sURL = _root + "include/ajax/getLocation.asp?zipcode=" + s + "&country=nederland";
	}
	
	
	$.ajax({
		type: "GET",
		url: sURL,
		cache: false,
		async: true,
		beforeSend: function()
		{
			$("#storeLocation").show();
			showProgress("#store");
		},
		success: function(data) 
		{
			$("#storeLocation").show();
			$("#store").html(data);
		}, 
		error: function(XMLHttpRequest, textStatus, errorThrown) 
		{
			alert("Foutmelding");
		}
	});		
}

function checkStatus($this)
{
	var v 		= $($this).val();
	var np		= false
	var curOpt	= 0
	
	$('#' +$this.id+ ' option').each(function(i){
		var val 		= $(this).val();
		var clNoOpt		= $(this).hasClass('noOption');
		var clCurOpt	= $(this).hasClass('currentOption');
		var clReactOpt	= $(this).hasClass('reactOption');
		
		if (v==val && clNoOpt==true){
			np = true
		}
		else if (clCurOpt==true){
			curOpt = val
		}
		
		if (v==val && clReactOpt==true){
			react = true
		}
	});
	
	var dpRow = 'none';
	
	if (np==true)
	{
		$($this).val(curOpt);
		alert('Deze keuze is niet mogelijk.\nSelecteer een andere status.');
		return false;
	}
	else
	{
		return true;
	}
	
}

function toggle(param)
{	

	var obj = document.getElementById(param);
	

	if (obj.style.display == "none" || obj.style.display == "")
	{
		obj.style.display = "block";
	}
	else
	{
		obj.style.display = "none";
	}

}

function makeFlashObj(sID, sPath, sWidth, sHeight, sBG)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="' + sID + '" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + sWidth + '" height="' + sHeight + '">');
	document.write('<param name="movie" value="' + sPath + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="' + sBG + '">');
	document.write('<embed bgcolor="' + sBG + '" src="' + sPath + '" quality="high" id="' + sID + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + sWidth + '" height="' + sHeight + '"></embed>');
	document.write('</object>');
}


//-->