var tartomany = "cafe57.hu";
var protokoll = "mailto";

for (i=1; i<=7; i++) {
	eval("kepon" + i + " = new Image();");
	eval("kepon" + i + ".src = \"images/menu" + i + ".2.gif\";");
	eval("kepoff" + i + " = new Image();");
	eval("kepoff" + i + ".src = \"images/menu" + i + ".gif\";");
}

function csere(id, mod) {
	if (mod) eval("document.getElementById('kep" + id + "').src = kepon" + id + ".src;"); 
	else eval("document.getElementById('kep" + id + "').src = kepoff" + id + ".src;"); 
}


function level_kuldes(hova) {
	window.location = protokoll + ":" + hova + "@" + tartomany;
}

function RightClicker() {
   return false;
}

// document.oncontextmenu = RightClicker;



function getPageSize() {
	var xScroll, yScroll;
	var xScrollPos = document.body.scrollLeft;
	var yScrollPos = document.body.scrollTop;
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = window.innerWidth + window.scrollMaxX;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		if(document.documentElement.clientWidth){
			windowWidth = document.documentElement.clientWidth; 
		} else {
			windowWidth = self.innerWidth;
		}
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}
	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = xScroll;		
	} else {
		pageWidth = windowWidth;
	}
	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight, xScrollPos, yScrollPos);
	return arrayPageSize;
};
