/*************************************************************************
  This code is from Dynamic Web Coding at www.dyn-web.com
  Copyright 2002-4 by Sharon Paine 
  See Terms of Use at www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/
var IsRating = false;


/*
window.onload =  function initGlideLayers() {
  var i, el;
  var glideLyrs = new Array();
  
  for (var jj = 1;jj<=18;jj++){
    glideLyrs[jj] = new dynObj('m'+jj, 21, 23*jj, 170, 21);
  }
  
  var step_height = 1;
  for (var jj = 19;jj<=36;jj++){
    glideLyrs[jj] = new dynObj('m'+jj, 349, 23 * step_height++, 170, 21);
  }
  
  for (i=1; glideLyrs[i]; i++) {
    glideLyrs[i].xOff = glideLyrs[i].x;
    if ( !glideLyrs[i].y ) // position based on previous glideLyrs height and position
      if ( glideLyrs[i-1] ) glideLyrs[i].y = glideLyrs[i-1].y + glideLyrs[i-1].h + 2; 
    glideLyrs[i].shiftTo( -(glideLyrs[i].w - glideLyrs[i].xOff), glideLyrs[i].y );
    glideLyrs[i].show();
    el = dynObj.getElemRef( glideLyrs[i].id );
    if (el) {
      el.onmouseover = (i>18) ? slideIntoViewRight : slideIntoViewLeft;
      el.onmouseout = slideOutOfView;
    }
  }  
  IsRating = false;
}

function slideIntoViewRight() {
  var glideLyr = dynObj.getInstance(this.id);
  glideLyr.slideTo(30, null, 250, -.8);
}

function slideIntoViewLeft() {
  var glideLyr = dynObj.getInstance(this.id);
  glideLyr.slideTo(0, null, 250, -.8);
}


function slideOutOfView(e) {
  var glideLyr = dynObj.getInstance(this.id);
  e = e? e: window.event;
  var toEl = e.relatedTarget? e.relatedTarget: e.toElement;
  if ( toEl != glideLyr.el && !contained(toEl, glideLyr.el) ) 
    glideLyr.slideTo( -(glideLyr.w - glideLyr.xOff), null, 300, -.8);
}

// returns true if oNode is contained by oCont (container)
function contained(oNode, oCont) {
  if (!oNode) return; // in case alt-tab away while hovering (prevent error)
  while ( oNode = oNode.parentNode ) if ( oNode == oCont ) return true;
  return false;
}
*/


$(document).ready(function(){
    

    $('a.statusRight').hover(
    function(){
      $(this).animate({'left': -180});
    },
    function(){
      $(this).animate({'left': -329});
    })
    .css({"height": "21px", "left": "-329px"});


    $('a.statusLeft').hover(
    function(){
      $(this).animate({'left': 30});
    },
    function(){
      $(this).animate({'left': 179});
    })
    .css({"height": "21px", "left": "179px"});

    /*buttonsi*/
    $('div.but_ok div').mouseover(function(){
      $(this).addClass('hover');
    }).mouseout(function(){
      $(this).removeClass('hover');
    });

    $('div.but_no div').mouseover(function(){
      $(this).addClass('hover');
    }).mouseout(function(){
      $(this).removeClass('hover');
    });
});

