// menu over functions
function iover(image,num){
	image.src = 'img/menu/i'+num+'over.jpg';
}
function iout(image,num){
	image.src = 'img/menu/i'+num+'.jpg';
}

/* popup gallery SCRIPTS */
// get window Sizes
function getWindowWidth(){
	//mozilla
	if (self.innerWidth){
		var width = self.outerWidth;
		}
	//ie
	else if (document.documentElement && document.documentElement.clientWidth){
		var width = document.documentElement.clientWidth+28;
		}
	
	return width;
}
function getWindowHeight(){
	//mozilla
	if (self.innerWidth){
		var height = self.outerHeight;
		}
	//ie
	else if (document.documentElement && document.documentElement.clientWidth){
		var height = document.documentElement.clientHeight+134;
		}
	
	return height;
}

function getWindowLeft(){
	//mozilla
	if (self.innerWidth){
		var left = self.screenX;
		}
	//ie
	else if (document.documentElement && document.documentElement.clientWidth){
		var left = self.screenLeft-4;
		}
	
	return left;
}
function getWindowTop(){
	//mozilla
	if (self.innerWidth){
		var top = self.screenY;
		}
	//ie
	else if (document.documentElement && document.documentElement.clientWidth){
		var top = self.screenTop-105;
		}
	
	return top;
}


// the popup script
function openPopupGallery(){
	winWidth = 600;
	winHeight = 500;
	winleft = getWindowLeft();
	wintop = getWindowTop();
	popwinLeft = winleft+getWindowWidth()/2-300;
	popwinTop = wintop+getWindowHeight()/2-250;
	window.open('popup_gallery.html', 'thepopup', 'width='+winWidth+', height='+winHeight+', left='+popwinLeft+', top='+popwinTop+', scrollbars=no');
}
