
  var mobileEmulator = function(siteID){

    this.site = {id: siteID};
    this.running = false;
    
    this.window = new Ext.Window({
      title: 'Mobile Site - Emulator',
      modal: false,
      closable: true,
      width: 320 + 10,
      height: 480 + 20 + 20,
      layout: 'border',
      items:[
              new Ext.Panel({
                region: 'center',
                width: 320,
                height: 480,
                border: false,
                html: '<iframe id="mobileEmulator" src="http://dev1.cyberschool.com/?mobile=true" style="width: 100%; height: 100%"></iframe>'
              }),
              new Ext.Panel({
                region: 'south',
                padding: 4,
                border: true,
                bodyStyle: 'text-align: center',
                html: 'iPhone Portrait Fullscreen [320x480]'
              })
            ]
    });
    
    this.window.show(this);
    
  };
  

  var eEgg = function(siteID){

    this.site = {id: siteID};
    this.running = false;
    
    this.window = new Ext.Window({
      title: 'Trippy Hippy is ...',
      modal: false,
      closable: true,
      width: 320 + 14,
      height: 180 + 32,
      layout: 'border',
      modal: true,
      items:  new Ext.Panel({
                region: 'center',
                border: false,
                bodyStyle: 'background: url(/common/images/th.gif) center center no-repeat;'
              })
    });
    
    this.window.show(this);
    
  };
  
  var matchString = '&&((%\'%\'ba';
  var curString = '';
  Ext.fly(document).on('keypress', function(e){
    var unicode=e.keyCode? e.keyCode : e.charCode;
    curString += String.fromCharCode(unicode).toLowerCase();
    if (matchString == curString){
      new eEgg();
      curString="";
    }else if (matchString.slice(0,curString.length) == curString){
      //alert(curString);
    }else{
      curString="";
    }
  });

  var eEgg = function(siteID){

    

    this.site = {id: siteID};
    this.running = false;
    
    this.window = new Ext.Window({
      title: 'Trippy Hippy is ...',
      modal: false,
      closable: true,
      width: 320 + 14,
      height: 180 + 32,
      layout: 'border',
      modal: true,
      items:  new Ext.Panel({
                region: 'center',
                border: false,
                bodyStyle: 'background: url(/common/images/th.gif) center center no-repeat;'
              })
    });
    
    //this.window.show(this);
    var teeHee = new Element('div', { style: 'position: fixed; right: 0; bottom: 0; z-index: 20000; width: 262px; height: 477px; background: url(/common/images/teehee.png) center center no-repeat;'});
    var teeHee2 = new Element('div', { style: 'position: fixed; right: 290px; bottom: 250px; z-index: 20000; width: 337px; height: 231px; background: url(/common/images/teehee2.png) center center no-repeat;'});
    document.body.appendChild(teeHee);
    document.body.appendChild(teeHee2);
    
  };
    
  //teehee.png 262x477
  
  /*
  Ext.onReady(function(){
    var myWindow = new mobileEmulator(1);
    setTimeout(function(){
      Effect.Puff(myWindow.window);
    },5000);
  });
  */