var picResizeButton = [];
picResizeButton[0] = "The <b>Resize</b> tool allows you to change the dimensions of your picture.";
picResizeButton[1] = "The <b>Crop</b> tool allows you to trim the unwanted portions of your picture.";
picResizeButton[2] = "The <b>Rotate</b> tool allows you to turn your picture around on its side or upside-down.";
picResizeButton[3] = "The <b>Brightness/Contrast</b> tool allows you to increase and decrease the luminance and/or contrast of your picture.";
picResizeButton[4] = "The <b>Auto Fix</b> tool allows you to automatically adjust the brightness and contrast of your picture.";
picResizeButton[5] = "The <b>Brush</b> tool allows you to draw on your picture with various brush sizes and colors.";
picResizeButton[6] = "The <b>Text</b> tool allows you to add text to your picture with various font styles.";
picResizeButton[7] = "The <b>Gaussian Blur</b> tool allows you to create an out-of-focus effect in your picture.";
picResizeButton[8] = "The <b>Sharpen</b> tool allows you to add focus to your picture.";
picResizeButton[9] = "The <b>Raise</b> tool allows you to add a translucent 3D outer bevel effect to your picture.";
picResizeButton[10] = "The <b>Raised Frame</b> tool allows you to add a 3D colored frame to your picture.";
picResizeButton[11] = "The <b>Polaroid</b> tool allows you to apply a unique polaroid effect to your picture.";
picResizeButton[12] = "The <b>Oil Paint</b> tool allows you to apply a unique oil paint effect to your picture.";
picResizeButton[13] = "The <b>Spread</b> tool allows you to add noise to your picture.";
picResizeButton[14] = "The <b>Grayscale</b> tool allows you to eliminate color from your picture.";
picResizeButton[18] = "<b>Undo</b> <i>Ctrl-Z</i>";
picResizeButton[19] = "<b>Redo</b> <i>Ctrl-Y</i>";
picResizeButton[20] = "<b>Revert to Original<b>";
picResizeButton[21] = "<b>Select All</b> <i>Ctrl-A</i>";
picResizeButton[22] = "<b>Deselect</b> <i>Ctrl-D</i>";
picResizeButton[23] = "<b>Start Here!</b> Find a picture on your computer or camera and load it to begin."; 
		
var tipwidth='150px' //default tooltip width
var tipbgcolor='#E4E7FF'  //tooltip bgcolor
var disappeardelay=250  //tooltip disappear speed onMouseout (in miliseconds)
var vertical_offset="0px" //horizontal offset of tooltip from anchor link
var horizontal_offset="0px" //horizontal offset of tooltip from anchor link

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="fixedtipdiv" style="visibility:hidden;width:'+tipwidth+';background-color:'+tipbgcolor+'" ></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, tipwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (tipwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function fixedtooltip(menucontents, obj, e, tipwidth){
if(obj == "formupload") obj = document.getElementById('fileupload')
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidetip()
dropmenuobj=document.getElementById? document.getElementById("fixedtipdiv") : fixedtipdiv
dropmenuobj.innerHTML=picResizeButton[menucontents]

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", tipwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
}

function hidetip(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidetip(){
if (ie4||ns6)
delayhide=setTimeout("hidetip()",disappeardelay)
}

function clearhidetip(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
