function changeVariation(variation, target, base){
	loadContent(base+'siteshop/ajax/variation/-/id/'+variation+'/',target);
}
function changeImage(image, target_img, target_href, base){
	if ($(target_img) && $(target_href) && image > 0){
		$(target_img).src = base+'binary/image/thumbnailer/-/fid/'+image+'/width/191/clip/clip';
		$(target_href).href = base+'app/gallery/view/-/id/'+image+'/';
	}
}
function confirmRedir(url,msg){
	if (confirm(msg)){
		window.location.href = url;
	}
}
function popUp(mypage, myname, w, h, scroll) {

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 3;
	var h = (screen.height) / 3 * 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes, '
	win = window.open(mypage, myname, winprops)

	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}