// JavaScript Document
function writeHTMLasJS(){
document.write("<iframe src='http:\/\/news.fresh.co.il\/ticker.php?width=120&amp;height=150&amp;bgcolor=F9F9F9&amp;delay=5000&amp;background=&amp;genre=news' width='130' frameborder='0' height='150' scrolling='NO'><\/iframe>");
}

function writeCookie(name, value, hours)
{
  var expire = "";
  if(hours != null)
  {
    expire = new Date((new Date()).getTime() + hours * 3600000);
    expire = "; expires=" + expire.toGMTString();
  }
  document.cookie = name + "=" + escape(value) + expire;
}



var min=16;
var max=40;
function increaseFontSize() {
   var p = document.getElementsByTagName('span');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));



      } else {
         var s = 16;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px";
writeCookie("fontSize", s, 24);
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('span');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 16;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
writeCookie("fontSize", s, 24);
   }   
}

