/* Developed by Dubbele:punt Design - www.dubbelepunt.com */

// show menu
sfHover = function(){
	var sfEls = document.getElementById("menu").getElementsByTagName("li");
	for(var i = 0; i < sfEls.length; i++){
		sfEls[i].onmouseover = function(){
			this.className += " sfhover";
		}
		sfEls[i].onmouseout = function(){
			this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover); 

// show/hide DIV
function showhide(target){
	// Close previous open DIV
	if(undefined === window.previous){
		previous = '';
	}else{
		layer_ref = document.getElementById(previous);
		layer_ref.style.display = 'none';
	}

	// Open current DIV
	layer_ref = document.getElementById(target);
	layer_ref.style.display = (layer_ref.style.display == 'block') ? 'none' : 'block';
	
	// Save current DIV
	previous = target;
}

// redirect to url
function goTo(url){
	location.href = url;
}

// swap images
function swap(target, img){
	if(document.images[target]){
		document.images[target].src = img;
	}
}

// open popup window
function photoPopup(url){
	window.open('./popup.php?url=' + url, 'popup', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=360, height=360');
}

/* Developed by Dubbele:punt Design - www.dubbelepunt.com */


