/*
Tools Definitions 6.000
Category: Tools
July 24, 2009; Rae LaTulippe

All tool definitions are defined here in an array.
*/


// for movuseover effects 

var wsh_def_popuptimeout = null;
var wsh_popuptimer = new Array();

// for mouseover effects 
function wsh_def_on(section,obj) {

  clearTimeout(wsh_def_popuptimeout);
  var curleft = curtop = 15;
	if (obj.offsetParent) {
		do {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);
	}

  /*document.getElementById(section).style.display='';*/
  document.getElementById(section).style.position = 'absolute';
  document.getElementById(section).style.left = curleft + 'px';
  document.getElementById(section).style.top = curtop + 'px';
  
  Effect.toggle('wsh_saveshare','slide', { duration: 0.9 });
}

function wsh_def_off(section) {
  wsh_def_popuptimeout=window.setTimeout("document.getElementById('" + section + "').style.display='none'",2500);
}
  

/* for common popup */


function wsh_toggle()
{
  if(arguments[0] || arguments[1] || arguments[2])
  {
    var wsh_element=arguments[0];
    var wsh_action=arguments[1];
    var wsh_img=arguments[2];
    var wsh_elementCLASS=wsh_$(wsh_img).className;
    
    Effect.toggle(wsh_element, wsh_action);
    
    if (wsh_elementCLASS=='plus')
    {
  		setTimeout(function(){wsh_$(wsh_img).className = 'minus';},1000);
    }
    else if (wsh_elementCLASS=='minus')
    {
  		setTimeout(function(){wsh_$(wsh_img).className = 'plus';},1000);
    }
  }
  else
  {
    return false;
  }
}


/* for hover over popup */
function wsh_hover_popupshow(section,obj,ltcoord,tpcoord)
{
	var curleft = ltcoord;
	var curtop = tpcoord;
	if (obj.offsetParent) {
		do {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);
	}
  document.getElementById(section).style.position = 'absolute';
  document.getElementById(section).style.left = curleft + 'px';
  document.getElementById(section).style.top = curtop + 'px';
  document.getElementById(section).style.display='';
}

function wsh_hover_popuphide(section, delaytime)
{
	wsh_popuptimer[section]=window.setTimeout("document.getElementById('" + section + "').style.display='none'",delaytime);
}

function wsh_hover_popupshow2(section)
{
	document.getElementById(section).style.display = ''; 
}
function wsh_clear_all_timeouts(section) 
{
	var wsh_flag =0;
	var wsh_key_to=0;
	for(wsh_key_to in wsh_popuptimer)
	{
		if(wsh_key_to == section && wsh_flag == 0)
		{
			clearTimeout(wsh_popuptimer[wsh_key_to]);
			wsh_flag = 1;
		}
		else
		{
				othersection=wsh_key_to;
				if (document.getElementById(othersection)){
					document.getElementById(othersection).style.display='none';
				}
		}
	}
}

function wsh_tool_def_display_on(def_holder,message)
{
	
	document.getElementById(def_holder).innerHTML = message;
	
}


var wsh_tool_def = new Array();


wsh_tool_def['Briefcase']="Collect, zip and download files from our Investor Relations website. <a href='briefcase.cfm'>Click here</a> to register for this feature." 
wsh_tool_def['Downloads']="Quickly access and sort list of downloadable documents on our IR website."
wsh_tool_def['Alerts']="Sign up to receive company financial information automatically via email." 
wsh_tool_def['RSS']="Allows delivery of latest news feeds or content directly to your computer.  Add Clorox's RSS feed to your list." 

