
//lightbox is disabled due to slow operation 
//created here to avoid errors
function lbox() { }


//hides email links from bots and spammers
function em2nafa (e) { eMailLink (e,"","Web Inquiry","email",""); }

function eMailLink(a, b, c, linktext, support) 
{
  var d = linktext;
  var l = "&#109;&#97;&#"+"105;&#108;&#116;&#111;"+"&#58;"+a+"&"+"#"+"6"+(6-2)+";";
  if (b) l=l+b;
  else l=l+"nafa&#46;ca";
  l=l+"?body=From page: "+window.location.href+"&#13;";
  if (c) l=l+"&subject="+c;

  //if linktext = href then the code is in an anchor tag and need to change location
  if (d=="href") { 
   window.location.replace(l);
  }
  else {
   document.write("<a href=\""+l+"\">");
   if (d) document.write(d); 
   else document.write("email");
   document.write ("<\/a>");
   }
}

function wopen(url, name, w, h)
{
// Fudge factors for window decoration space.
 // In my tests these work well on all platforms & browsers.
w += 32;
h += 96;
 var win = window.open(url,
  name,
  'width=' + w + ', height=' + h + ' ');
 win.resizeTo(w, h);
 win.focus();
}

function set_cookie(name,value,days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    }
    else var expires = "";
    document.cookie = name+"="+value+expires+"; path=/";
}

function get_cookie(name) {
    var name_eq = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(name_eq) == 0) return c.substring(name_eq.length,c.length);
    }
    return null;
}


if(get_cookie("page_size") != null){  
    document.write('<style>');
    document.write('body{');
    document.write('font-size:'+ get_cookie("page_size") + 'px');
    document.write('}');
    document.write('</style>')
}else{
    document.write('<style>');
    document.write('body{');
    document.write('font-size: 12px');
    document.write('}');
    document.write('</style>')  
}
   

     

