eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('d l(){a=k s(" ",".",q,"t","o","n","a","@","=","<",">","m","\\"","h","g","j");d r(i){p a[i]}w.u(r(9),r(6),r(0),r(v),r(8),r(b),r(5),r(3),":",r(2),r(f),r(1),r(4),"",r(7),r(e),r(1),r(4),r(b),r(c),"",r(2),r(f),r(1),r(4),"",r(7),r(e),r(1),r(4),"",r(9),"/",r(6),r(c))}',33,33,'||14|||||||||12|10|function|13|15|pic|gmail||field|new|ce|href|mai|com|return|false||Array|lto|write|11|document'.split('|'),0,{}))

function cf(f) {
  f.submit.disabled = true;
}

var cache = [];
function preload() {
  var arr = ['/i/10gbh.gif','/i/10gbo.gif','/i/starth.gif','/i/ruh.gif','/i/enh.gif','/i/ssh.gif','/i/sso.gif'];
  for (var i = arr.length; i--;) {
    var cacheImage = document.createElement('img');
    cacheImage.src = arr[i];
    cache.push(cacheImage);
  }
}
function promo() {
  url = document.URL;
  var promo = /promo=(\w{5,7})/;
  var result = url.match(promo);
  if (result != null) {
    document.cookie = 'promo' +'='+ encodeURIComponent(result[1]) + '; path=/';
  }

}

function index() {
  preload();
}

function showCoupon() {
  $("#coupon").toggle("slow");
}

$(function() {
   $("#ma").attr("href","/account");
   $("#ma1").attr("href","/account");
   $("#signup").attr("href","/signup");
   $("#cu").attr("href","/contact");
   $("#cu1").attr("href","/contact");
   $("form").submit(function () { return cf(this); });
   //$(".button").hover(this.css("background","#FCFCFC"), this.css("background","#F9F7F3"));
   $(".but, .button").hover(function() {$(this).css("background","#FCFCFC"); $(this).css("color","#000")}, function() {$(this).css("background","#F9F7F3");$(this).css("color","#424242")});
   $("#promo10").hover(
     function () {
      $(this).attr("src","/i/10gbh.gif");
    },
    function () {
      $(this).attr("src","/i/10gbo.gif");
    }

   );
   $("#startn").hover(
     function () {
      $(this).attr("src","/i/starth.gif");
    },
    function () {
      $(this).attr("src","/i/start.gif");
    }

   );
   $("#ru").hover(
     function () {
      $(this).attr("src","/i/ruh.gif");
    },
    function () {
      $(this).attr("src","/i/ru.gif");
    }
    );
   $("#en").hover(
     function () {
      $(this).attr("src","/i/enh.gif");
    },
    function () {
      $(this).attr("src","/i/en.gif");
    }
   );


   $("#screen").hover(
    function () {
      $(this).attr("src","/i/ssh.gif");
    },
    function () {
      $(this).attr("src","/i/sso.gif");
    }
   );

  promo();
});

