var WG = {};

WG.orderTabs = function() {
  var tabView = new YAHOO.widget.TabView('order-info');
};

WG.corners = function() {
  Nifty("div.pagination", "transparent");
  Nifty("p.entry-date", "transparent");
  Nifty("div.dashboard h2", "transparent");
  Nifty("div.blurb", "transparent");
  Nifty("div.blurb_2", "transparent");
  Nifty("div.shop", "transparent");
  Nifty("div.idea-summary", "transparent");
  Nifty("div.leightbox", "transparent");
  Nifty("div.roundtop", "top", "transparent");
   Nifty("div.entry-date", "transparent");
  Nifty("div.idea", "transparent big all")
}

/* This is the implementation of SimpleSwap
   by Jehiah Czebotar
   Version 1.1 - June 10, 2005
   Distributed under Creative Commons
   http://jehiah.com/archive/simple-swap
*/ 

WG.roll = function SimpleSwap(el,which){
  el.src=el.getAttribute(which || "origsrc");
}

WG.roll_setup = function SimpleSwapSetup(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;
    
    // preload image
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;
    // set event handlers
    x[i].onmouseover = new Function("WG.roll(this,'oversrc');");
    x[i].onmouseout = new Function("WG.roll(this);");
    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}
