function inittracking() {
  var t=_gat._getTracker("UA-7213919-1");
  t._trackPageview(); 
}

var fpic;
var fft;
var arcn;
var ypos=-12;
var yvel=3;
var step=1;
var xp=xt=0;
function init() {
  var li=document.getElementById("imen").getElementsByTagName("li");
  for (var i=0; i<li.length; i++) {
    var href=li[i].getAttribute("href");
    if (href&&href.length>0) {
      li[i].onmouseover=function(e) { this.style.backgroundPosition="top right"; }
      li[i].onmouseout=function(e) { this.style.backgroundPosition="top left"; }
      li[i].onclick=function(e) { window.location.href=this.getAttribute("href"); }
    }
  }
  document.body.onmousemove=function(e) {
    if (window.event) e=window.event;
    var x=parseInt(e.clientX);
    var y=parseInt(e.clientY);
    var w=parseInt(document.body.clientWidth);
    var h=parseInt(document.body.clientHeight);
    var ratio=(x/w);
    x=(70*ratio);
    fpic.style.left=-x+"px";
  }
  fpic=document.getElementById("fpic");
  fft=document.getElementById("fft");
/*
  arcn=document.getElementById("arcn");
  arcn.onmousemove=function(e) {
    if (window.event) e=window.event;
    var x=parseInt(e.x);
    if (isNaN(x)) {
      var w=parseInt(document.body.clientWidth);
      w=(w-1000)/2;
      x=parseInt(e.clientX)-w;
    }
    x=(x/1.9);
    xt=-x;
  }
*/
  setInterval("bobble()",100);
//  setInterval("slide()",20);
}
function bobble() {
  ypos=ypos+yvel;
  step++;
  if (step==3||step==5) {
    if (yvel>0) yvel--; else yvel++;
  }
  if (step==6) {
    yvel=(-yvel)*3;
    step=1;
  }
  fpic.style.top=ypos+"px";
}
function slide() {
  if (xt==xp) return;
  var xv=Math.abs(xp-xt);
  xv=parseInt(xv/10);
  if (xv<1) xv=1;
  if (xp<xt) xp=xp+xv;
  if (xp>xt) xp=xp-xv;
  fft.style.left=xp+"px";
}
function gocoupon() {
  window.open("/coupon","Coupon","width=594,height=844,toolbar=no,statusbar=no,history=no");
}
function printcoupon() {
  window.print();
}
function openmap() {
  window.open("http://maps.google.com/maps?f=q&hl=en&q=641+W.+51st+Street,+new+York,+NY+10019","Map","width=800,height=500,toolbar=no,statusbar=no,history=no");
}
function openpromo(url) {
  window.open(url,"Promo","width=640,height=480,toolbar=no,statusbar=no,history=no");
}
