function LoadImages() {
	author_off = new Image()
	author_off.src = "imgs/author_off.gif"
	author_on = new Image()
	author_on.src = "imgs/author_on.gif"

	art_off = new Image()
	art_off.src = "imgs/art_off.gif"
	art_on = new Image()
	art_on.src = "imgs/art_on.gif"

	contact_off = new Image()
	contact_off.src = "imgs/contact_off.gif"
	contact_on = new Image()
	contact_on.src = "imgs/contact_on.gif"
}

function change(name,state) {
	if (document[name]) {
		if (state) document[name].src = eval(name + "_on.src")
		else document[name].src = eval(name + "_off.src")
	}
}

function showArt(id,width,height)
{
	params = "toolbar=0,width=" + width + ",height=" + height + ",scrollbars=No";
	url = "imgs/art/art" + id + ".html";
	newwin = window.open(url,"_blank",params);
 	setTimeout('newwin.focus();',250);
}

function openWindow(theURL,winName,features) {
	window.name = 'opener';
	window.open(theURL,winName,features);
}	
function PopupPic(sPicURL) { 
	openWindow("popup-image.html?"+encodeURI(sPicURL), "", "resizable=yes,HEIGHT=600,WIDTH=650");
}

function ChangeSection(aUrl) {
	document.location.href = "http://petruhyn.com/"+aUrl;
}

LoadImages()


window.onload = function(){
    lightgallery.init();
}