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

var ajax_free = 1;

function open_image(src, w, h) {
	imageview = window.open("", "imageview", "width=" + w + ",height=" + h);
	imageview.moveTo(Math.round((screen.width-w)/2), Math.round((screen.height-h)/2));
	imageview.document.open();
	imageview.document.write('<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">');
	imageview.document.write('<html><head><title>SHAPE / Kép megtekintése</title><link rel="stylesheet" type="text/css" href="/style.css" /><meta http-equiv="Content-type" content="text/html; charset=iso-8859-2" /><meta http-equiv="author" name="author" content="Mile Informatika - http://www.mile.hu/" /></head>');
	imageview.document.write('<body bgcolor="white" text="black" link="navy" alink="blue" vlink="navy" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >');
	imageview.document.write('<a href="#" onClick="window.close();" ><img src="' + src + '" width="' + w + '" height="' + h + '" border="0" /></a></body></html>');
	imageview.document.close();
}

function show_hide_layer(layerid) {
	v = document.getElementById(layerid).style.visibility;
	if (v != "visible") v = "visible";
		else v = "hidden";
	document.getElementById(layerid).style.visibility = v;
}

for (i=1; i<=8; i++) {
	eval("kepon" + i + " = new Image();");
	eval("kepon" + i + ".src = \"/data/images/fmenu" + i + ".2.jpg\";");
	eval("kepoff" + i + " = new Image();");
	eval("kepoff" + i + ".src = \"/data/images/fmenu" + i + ".jpg\";");
}

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


function open_gallery(gid) {
	imageview = window.open("/cgaleria.php?id=" + gid, "galleryview", "width=520,height=650");
	imageview.moveTo(Math.round((screen.width-520)/2), Math.round((screen.height-650)/2));
}


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

function mlevel_kuldes(hova) {
	window.location = protokoll + ":" + hova + "@" + "marquardmedia.hu";
}

function rating_slider(rate) {
	eval("document.getElementById('ratingimg').src = ratingon" + rate + ".src;"); 
}

for (i=1; i<6; i++) {
	eval("ratingon" + i + " = new Image();");
	eval("ratingon" + i + ".src = \"/data/images/rating" + i + ".gif\";");
}

var addthis_pub="SHAPE.hu";
var addthis_brand = "";
var addthis_header_color = "#ffffff";
var addthis_header_background = "#ffa110";
var addthis_localize = {
	share_caption: "MEGOSZTÁS | KEDVENCEK",
        email_caption: "Küldés e-mailben",
        email: "E-mail",
        favorites: "Kedvencek", 
        more: "Még több..."
};