// JavaScript Document


function switchR(){
	var openL = document.getElementById('right');
	var closeL = document.getElementById('right_closed');
	if(openL.style.display == 'none'){
		openL.style.display = 'block';	
		closeL.style.display = 'none';
	}else{
		openL.style.display = 'none';
		closeL.style.display = 'block';		
	}
}

function zoomit(isrc,ilink,iid){
	var imgDiv = document.getElementById('imagezoom');
	var imgImg = document.getElementById('zoomimage');
	var imgHref = document.getElementById('imagelink');
	var imgActu = document.getElementById(iid);
	var curleft = curtop = 0;
	if (imgActu.offsetParent) {
		curleft = imgActu.offsetLeft
		curtop = imgActu.offsetTop
		while (imgActu = imgActu.offsetParent) {
			curleft += imgActu.offsetLeft
			curtop += imgActu.offsetTop
		}
	}
	imgImg.src = isrc;
	imgHref.href=ilink;
	imgDiv.style.left = (curleft-75) + 'px';
	imgDiv.style.top = (curtop-50) + 'px';
	imgDiv.style.display = 'block';
}

function zoomout(isrc){
	var imgDiv = document.getElementById('imagezoom');
	var imgImg = document.getElementById('zoomimage');
	imgImg.src = isrc;
	imgDiv.style.display = 'none';
}
