
		function loadProductVariation(p){
			getEl(getContainerByClassName(p, 'product')).getUpdateManager().showLoadIndicator = false;
			getEl(getContainerByClassName(p, 'product')).getUpdateManager().update('index.php', 'action=getProduct&id=' + p.options[p.selectedIndex].value, loadProductVariation_cb);
		}
		
		function loadProductVariation_cb(o,b){
			initLightbox();			
		}

		function popUp(URL) {
			day = new Date();
			id = day.getTime();
			eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=1,resizable=1,width=840,height=600,left = 240,top = 212');");
		}

		function getContainerByClassName(e, className){
			n = e.parentNode;
			var p = new RegExp("^(.*)" + className + "(.*)$");
			while(n && !p.test(n.className)) {
				n = n.parentNode;
			}
			return n;			 
		}
	
		function getProduct_cb(res){
			var pid = res.substring(0,res.indexOf('|'));
			var res = res.substring(res.indexOf('|')+1);  		
			document.getElementById('product' + pid).innerHTML = res;
			initLightbox();
		}

		
		var tempId = '';
			
		function setPhoto(id, handle, t){
			var h = document.getElementById('h3_' + id);
			var c = h.childNodes;
			
			for (var x = 0; x< c.length;x++){
				var cc = c[x];
				if (cc.tagName == 'SPAN'){
					cc.className = '';
				}
			}
			
			t.className = 'selected';
									
			var a = document.getElementById('href_' + id);
			
			var eImg = document.createElement("img");
			eImg.src = 'http://www.lifestyle4us.nl/fotos/' + handle + '_small.jpg';
			eImg.id = 'photo_' + id;

			var f = document.getElementById('photo_' + id);
			f.parentNode.replaceChild(eImg, f);
			
			a.href = 'http://www.lifestyle4us.nl/fotos/' + handle + '_big.jpg';
		}
		
/*
		function getAccountHtml(opt){
			x_getAccountHtml(opt, getAccountHtml_cb);
		}
		
		function getAccountHtml_cb(res){
			var p = document.getElementById('accountPanel');
			p.innerHTML = res;
		}
		
		
		function newsletterSignup(email){
		 if (email == '') alert('U moet een geldig emailadres opgeven.');
		 else x_newsletterSignup(email, newsletterSignup_cb);
		}
		
		function newsletterSignup_cb(res){
		 	eval(res);
		 	if (error != '') {
			  	alert(error);
				page.showNewsletterDlg(false);
			} else {
				page.showNewsletterDlg(true);				
			}
		}


*/			
		
	