<!--

function popupLaunch(popUrl){
	//newWindow=window.open(popUrl,'newWin','toolbar=no');
	//newWindow.focus();
	window.open(popUrl,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,screenX=50,screenY=50,top=50,left=50');
}

function itemPreview(status){
	/* © Copyright Exentrix 2007. */
	if(status=='hide'){
		document.getElementById("imgPreview").style.display = "none";
		/*
		for (var i=0; i<document.all.length; i++) {
		 o = document.all(i)
		 if (o.type == 'select-one' || o.type == 'select-multiple') {
		  if (o.style) o.style.display = 'inline';
		 }
		}
		*/
	}
	else{
		document.getElementById("targetImg").src = document.tempVar.imgPop.value;		
		image_1 = new Image();
		image_1.src = document.tempVar.imgPop.value;
		
		document.getElementById("imgPreview").style.display = "block";
			/*
			for (var i=0; i<document.all.length; i++) {
			 o = document.all(i)
			 if (o.type == 'select-one' || o.type == 'select-multiple') {
			  if (o.style) o.style.display = 'none';
			 }
			}
			*/

	}
}


function swap_preview(src,bigImg,id_img){
	/* © Copyright Exentrix 2007. */
	document.targetImgThumb.src= src;
	document.tempVar.id_img.value = id_img;
	document.tempVar.imgPop.value = bigImg;

	document.getElementById("label").innerHTML = document.getElementById("imgTitle" + id_img).innerHTML;

	pic_big = new Image(); 
	pic_big.src=bigImg; 
}


url = document.location.href;
xend = url.lastIndexOf("/") + 1;
var base_url = url.substring(0, xend);

function addToFavourites (url, targetDiv) {
        if (url.substring(0, 4) != 'http') {
                url = base_url + url;
        }
        var targetDiv = targetDiv;
        var jsel = document.createElement('SCRIPT');
        jsel.type = 'text/javascript';
        jsel.src = url;
        document.body.appendChild (jsel);
}

//-->