menu1on=new Image;
menu1on.src="images/megrendelem_on.gif";
menu1off=new Image;
menu1off.src="images/megrendelem.gif";

menu2on=new Image;
menu2on.src="images/m_megoldasok_on.gif";
menu2off=new Image;
menu2off.src="images/m_megoldasok.gif";

menu3on=new Image;
menu3on.src="images/m_termekek_on.gif";
menu3off=new Image;
menu3off.src="images/m_termekek.gif";

menu4on=new Image;
menu4on.src="images/m_magunkrol_on.gif";
menu4off=new Image;
menu4off.src="images/m_magunkrol.gif";

menu5on=new Image;
menu5on.src="images/m_dijszabas_on.gif";
menu5off=new Image;
menu5off.src="images/m_dijszabas.gif";

menu6on=new Image;
menu6on.src="images/m_ugyfelszolgalat_on.gif";
menu6off=new Image;
menu6off.src="images/m_ugyfelszolgalat.gif";

menu7on=new Image;
menu7on.src="images/m_kapcsolat_on.gif";
menu7off=new Image;
menu7off.src="images/m_kapcsolat.gif";

function act(imgName)
{
    imgOn = eval(imgName + "on.src");
    document [imgName].src = imgOn;
}
function inact(imgName)
{
    imgOff = eval(imgName + "off.src");
    document [imgName].src = imgOff;
}

function show(arg){
	document.getElementById(arg).style.display = "block";
}

function hide(arg){
	document.getElementById(arg).style.display = "none";
}

function show_elony(arg){
	document.getElementById(arg).style.visibility = "visible";
}

function hide_elony(arg){
	document.getElementById(arg).style.visibility = "hidden";
}

var today = new Date();
var expiry = new Date(today.getTime() + 365 * 24 * 60 * 60 * 1000);

function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1) { endstr = document.cookie.length; }
  return unescape(document.cookie.substring(offset, endstr));
  }

function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg) {
      return getCookieVal (j);
      }
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break; 
    }
  return null;
  }

function DeleteCookie (name,path,domain) {
  if (GetCookie(name)) {
    document.cookie = name + "=" +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
    }
  }

function SetCookie (name,value,expires,path,domain,secure) {
  document.cookie = name + "=" + escape (value) +
    ((expires) ? "; expires=" + expires.toGMTString() : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
  }

$(document).ready(function(){

	if( GetCookie('versionb') ){
		$('.footer img').attr('src','images/footer_hello.gif');
		$('#footerMailto').attr('href','mailto:hello@seeme.hu');
	}

});

