// JavaScript Document

// preload mouseover images at runtime
function preloadImg() {
  if (document.images) { 
    if(!document.p) document.p=new Array();
    var i,j=document.p.length; 
    for(i=0; i<preloadImg.arguments.length; i++) {
      if (preloadImg.arguments[i].indexOf("#")!=0) { 
        document.p[j]=new Image; 
        document.p[j++].src=preloadImg.arguments[i];
      }
    }
  }
}

function inputFocus() {
  $('UserUsername').focus();
} 

//open new browser window
function openwindow(url,name,prop) {
  window.open(url,name,prop);
}

function Link() {
  Link.prototype.handOn = function() {
    document.body.style.cursor='pointer';
  }

  Link.prototype.handOff = function() {
    document.body.style.cursor='default';
  }
}

function shake(element_id) {
  if ($(element_id)) new Effect.Shake($(element_id));
}