// JavaScript Document
var nn4 = document.layers;
var ie = document.all;
var dom = document.getElementById && !document.all; 

var currentTime = new Date();
var request;

function browser(id){
  if(nn4) {
  path = document.layers[id];
  }
  else if(ie) {
  path = document.all[id];
  } 
  else {
  path = document.getElementById(id);
  }
return path;  //return the path to the css layer depending on which browser is looking at the page
}

function confirm_alert()
{
	input_box=confirm("Click OK or Cancel to Continue");
	if (input_box==true) { 
		return true;
	} else {
		return false;}
}

function showSelectedRanking()
{
	var selected = $('select_ranking').value;
	
	if (selected == "sell") {
		$('ranking_sell_img').show();
		$('ranking_rec_img').hide();
		
		//$('show_ranking_sell').show();
		$('show_ranking_rec').hide();
		
		new Effect.Appear('show_ranking_sell', {delay:0.2});
	} else if (selected == "rec") {
		$('ranking_sell_img').hide();
		$('ranking_rec_img').show();
		
		$('show_ranking_sell').hide();
		//$('show_ranking_rec').show();
		
		new Effect.Appear('show_ranking_rec', {delay:0.2});
	}
}