$(document).ready(function(){
	$("div#figuurtype a").click(function () { showPasvormTest(); });
	$("#cancelbutton").click(function () { showPasvormTest(); });
	//$("#figuurtype-active").toggle();
	//$("#pasvorm-rightimg").
	setTimeout("replaceRightImg()", 3000);
});

var rightImgs=new Array("kort","uiteen","recht","slank","wijd");
var rightCount = 0;
function replaceRightImg(){
	$("#pasvorm-rightimg").attr({ src: "/images/denimvorm-new/"+rightImgs[rightCount]+"01.png" });
	rightCount = rightCount + 1;
	if(rightCount == 7) rightCount = 0;
	setTimeout("replaceRightImg()", 3000);
}

function showPasvormTest(){
	//$("#figuurtype-active").toggle();
	$("#nav-left div.toggle").toggle();
}

function checkRadio(obj) {
	var value = "";
	for (var i=0; i < obj.length; i++) {
		if (obj[i].checked) {
			value = obj[i].value;
		}
	}
	return value;
}

function showOtherPasvorm(str){
	document.pasvormOther.pasvorm.value = str;
	//document.getElementById('pasvormOther').pasvorm.value = str;
	//document.getElementById('pasvormOther').submit()
	document.pasvormOther.submit();
	return true;
}

