<!--
function WM_imageswap(daImage, daSrc){
  // Check to make sure that images are supported in the DOM.
  if(document.images){
    // Check to see whether you are using a name 
    // or the array placement and swap the source.
    // Thanks to Nadav for suggesting that typeof be 
    // used to differentiate between them.
    if ((typeof daImage == 'string') || (typeof daImage == 'number')) {
      document.images[daImage].src = daSrc;
      // Or if an object reference was used, make sure it's an image.
    } else if (daImage && daImage.src) {
      daImage.src = daSrc;
    }
  }
}

function WM_preloadimages() {
  // Don't bother if there's no document.images
  if (document.images) {
    if (typeof document.WM == 'undefined'){
      document.WM = new Object();
    }
    document.WM.loadedimages = new Array();
    // Loop through all the arguments.
    var argLength = WM_preloadimages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // For each arg, create a new image.
      document.WM.loadedimages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.WM.loadedimages[arg].src = WM_preloadimages.arguments[arg];
    }
  }
}

var redeemWin = null;
																														
function redeem(url) {													
	if ((redeemWin == null) || redeemWin.closed) {
	  redeemWin = window.open(url,"redeemWin",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,scrolling=auto,resizable=0,width=320,height=360');
	} else {
		redeemWin.location = url;
		redeemWin.focus();
	}
}
// -->
