//\//////////////////////////////////////////////////////////////////////////////////
//\  overLIB 3.50  --  This notice must remain untouched at all times.
//\  Copyright Erik Bosrup 1998-2001. All rights reserved.
//\
//\  By Erik Bosrup (erik@bosrup.com).  Last modified 2001-08-28.
//\  Portions by Dan Steinman (dansteinman.com). Additions by other people are
//\  listed on the overLIB homepage.
//\
//\  Get the latest version at http://www.bosrup.com/web/overlib/
//\
//\  This script is published under an open source license. Please read the license
//\  agreement online at: http://www.bosrup.com/web/overlib/license.html
//\  If you have questions regarding the license please contact erik@bosrup.com.
//\
//\  This script library was originally created for personal use. By request it has
//\  later been made public. This is free software. Do not sell this as your own
//\  work, or remove this copyright notice. For full details on copying or changing
//\  this script please read the license agreement at the link above.
//\
//\  Please give credit on sites that use overLIB and submit changes of the script
//\  so other people can use them as well. This script is free to use, don't abuse.
//\//////////////////////////////////////////////////////////////////////////////////

//\  THIS IS A VERY MODIFIED VERSION. DO NOT EDIT OR PUBLISH. GET THE ORIGINAL!

var INARRAY=1;
var CAPARRAY=2;
var STICKY=3;
var BACKGROUND=4;
var NOCLOSE=5;
var CAPTION=6;
var LEFT=7;
var RIGHT=8;
var CENTER=9;
var OFFSETX=10;
var OFFSETY=11;
var FGCOLOR=12;
var BGCOLOR=13;
var TEXTCOLOR=14;
var CAPCOLOR=15;
var CLOSECOLOR=16;
var WIDTH=17;
var BORDER=18;
var STATUS=19;
var AUTOSTATUS=20;
var AUTOSTATUSCAP=21;
var HEIGHT=22;
var CLOSETEXT=23;
var SNAPX=24;
var SNAPY=25;
var FIXX=26;
var FIXY=27;
var FGBACKGROUND=28;
var BGBACKGROUND=29;
var PADX=30;// PADX2 out
var PADY=31;// PADY2 out
var FULLHTML=34;
var ABOVE=35;
var BELOW=36;
var CAPICON=37;
var TEXTFONT=38;
var CAPTIONFONT=39;
var CLOSEFONT=40;
var TEXTSIZE=41;
var CAPTIONSIZE=42;
var CLOSESIZE=43;
var FRAME=44;
var TIMEOUT=45;
var FUNCTION=46;
var DELAY=47;
var HAUTO=48;
var VAUTO=49;
var CLOSECLICK=50;
var CSSOFF=51;
var CSSSTYLE=52;
var CSSCLASS=53;
var FGCLASS=54;
var BGCLASS=55;
var TEXTFONTCLASS=56;
var CAPTIONFONTCLASS=57;
var CLOSEFONTCLASS=58;
var PADUNIT=59;
var HEIGHTUNIT=60;
var WIDTHUNIT=61;
var TEXTSIZEUNIT=62;
var TEXTDECORATION=63;
var TEXTSTYLE=64;
var TEXTWEIGHT=65;
var CAPTIONSIZEUNIT=66;
var CAPTIONDECORATION=67;
var CAPTIONSTYLE=68;
var CAPTIONWEIGHT=69;
var CLOSESIZEUNIT=70;
var CLOSEDECORATION=71;
var CLOSESTYLE=72;
var CLOSEWEIGHT=73;
if(typeof ol_fgcolor=='undefined'){var ol_fgcolor="#CCCCFF";}
if(typeof ol_bgcolor=='undefined'){var ol_bgcolor="#333399";}
if(typeof ol_textcolor=='undefined'){var ol_textcolor="#000000";}
if(typeof ol_capcolor=='undefined'){var ol_capcolor="#FFFFFF";}
if(typeof ol_closecolor=='undefined'){var ol_closecolor="#9999FF";}
if(typeof ol_textfont=='undefined'){var ol_textfont="Verdana,Arial,Helvetica";}
if(typeof ol_captionfont=='undefined'){var ol_captionfont="Verdana,Arial,Helvetica";}
if(typeof ol_closefont=='undefined'){var ol_closefont="Verdana,Arial,Helvetica";}
if(typeof ol_textsize=='undefined'){var ol_textsize="1";}
if(typeof ol_captionsize=='undefined'){var ol_captionsize="1";}
if(typeof ol_closesize=='undefined'){var ol_closesize="1";}
if(typeof ol_width=='undefined'){var ol_width="200";}
if(typeof ol_border=='undefined'){var ol_border="1";}
if(typeof ol_offsetx=='undefined'){var ol_offsetx=10;}
if(typeof ol_offsety=='undefined'){var ol_offsety=10;}
if(typeof ol_text=='undefined'){var ol_text="Default Text";}
if(typeof ol_cap=='undefined'){var ol_cap="";}
if(typeof ol_sticky=='undefined'){var ol_sticky=0;}
if(typeof ol_background=='undefined'){var ol_background="";}
if(typeof ol_close=='undefined'){var ol_close="Close";}
if(typeof ol_hpos=='undefined'){var ol_hpos=8;}
if(typeof ol_status=='undefined'){var ol_status="";}
if(typeof ol_autostatus=='undefined'){var ol_autostatus=0;}
if(typeof ol_height=='undefined'){var ol_height=-1;}
if(typeof ol_snapx=='undefined'){var ol_snapx=0;}
if(typeof ol_snapy=='undefined'){var ol_snapy=0;}
if(typeof ol_fixx=='undefined'){var ol_fixx=-1;}
if(typeof ol_fixy=='undefined'){var ol_fixy=-1;}
if(typeof ol_fgbackground=='undefined'){var ol_fgbackground="";}
if(typeof ol_bgbackground=='undefined'){var ol_bgbackground="";}
if(typeof ol_padxl=='undefined'){var ol_padxl=1;}
if(typeof ol_padxr=='undefined'){var ol_padxr=1;}
if(typeof ol_padyt=='undefined'){var ol_padyt=1;}
if(typeof ol_padyb=='undefined'){var ol_padyb=1;}
if(typeof ol_fullhtml=='undefined'){var ol_fullhtml=0;}
if(typeof ol_vpos=='undefined'){var ol_vpos=36;}
if(typeof ol_aboveheight=='undefined'){var ol_aboveheight=0;}
if(typeof ol_caption=='undefined'){var ol_capicon="";}
if(typeof ol_frame=='undefined'){var ol_frame=self;}
if(typeof ol_timeout=='undefined'){var ol_timeout=0;}
if(typeof ol_function=='undefined'){var ol_function=Function();}
if(typeof ol_delay=='undefined'){var ol_delay=0;}
if(typeof ol_hauto=='undefined'){var ol_hauto=0;}
if(typeof ol_vauto=='undefined'){var ol_vauto=0;}
if(typeof ol_closeclick=='undefined'){var ol_closeclick=0;}
if(typeof ol_css=='undefined'){var ol_css=51;}
if(typeof ol_fgclass=='undefined'){var ol_fgclass="";}
if(typeof ol_bgclass=='undefined'){var ol_bgclass="";}
if(typeof ol_textfontclass=='undefined'){var ol_textfontclass="";}
if(typeof ol_captionfontclass=='undefined'){var ol_captionfontclass="";}
if(typeof ol_closefontclass=='undefined'){var ol_closefontclass="";}
if(typeof ol_padunit=='undefined'){var ol_padunit="px";}
if(typeof ol_heightunit=='undefined'){var ol_heightunit="px";}
if(typeof ol_widthunit=='undefined'){var ol_widthunit="px";}
if(typeof ol_textsizeunit=='undefined'){var ol_textsizeunit="px";}
if(typeof ol_textdecoration=='undefined'){var ol_textdecoration="none";}
if(typeof ol_textstyle=='undefined'){var ol_textstyle="normal";}
if(typeof ol_textweight=='undefined'){var ol_textweight="normal";}
if(typeof ol_captionsizeunit=='undefined'){var ol_captionsizeunit="px";}
if(typeof ol_captiondecoration=='undefined'){var ol_captiondecoration="none";}
if(typeof ol_captionstyle=='undefined'){var ol_captionstyle="normal";}
if(typeof ol_captionweight=='undefined'){var ol_captionweight="bold";}
if(typeof ol_closesizeunit=='undefined'){var ol_closesizeunit="px";}
if(typeof ol_closedecoration=='undefined'){var ol_closedecoration="none";}
if(typeof ol_closestyle=='undefined'){var ol_closestyle="normal";}
if(typeof ol_closeweight=='undefined'){var ol_closeweight="normal";}
if(typeof ol_texts=='undefined'){var ol_texts=new Array("Text 0", "Text 1");}
if(typeof ol_caps=='undefined'){var ol_caps=new Array("Caption 0", "Caption 1");}
var otext="";
var ocap="";
var osticky=0;
var obackground="";
var oclose="Close";
var ohpos=8;
var ooffsetx=2;
var ooffsety=2;
var ofgcolor="";
var obgcolor="";
var otextcolor="";
var ocapcolor="";
var oclosecolor="";
var owidth=100;
var oborder=1;
var ostatus="";
var oautostatus=0;
var oheight=-1;
var osnapx=0;
var osnapy=0;
var ofixx=-1;
var ofixy=-1;
var ofgbackground="";
var obgbackground="";
var opadxl=0;
var opadxr=0;
var opadyt=0;
var opadyb=0;
var ofullhtml=0;
var ovpos=36;
var oaboveheight=0;
var ocapicon="";
var otextfont="Verdana,Arial,Helvetica";
var ocaptionfont="Verdana,Arial,Helvetica";
var oclosefont="Verdana,Arial,Helvetica";
var otextsize="1";
var ocaptionsize="1";
var oclosesize="1";
var oframe=self;
var otimeout=0;
var otimerid=0;
var oallowmove=0;
var ofunction=Function();
var odelay=0;
var odelayid=0;
var ohauto=0;
var ovauto=0;
var ocloseclick=0;
var ocss=51;
var ofgclass="";
var obgclass="";
var otextfontclass="";
var ocaptionfontclass="";
var oclosefontclass="";
var opadunit="px";
var oheightunit="px";
var owidthunit="px";
var otextsizeunit="px";
var otextdecoration="";
var otextstyle="";
var otextweight="";
var ocaptionsizeunit="px";
var ocaptiondecoration="";
var ocaptionstyle="";
var ocaptionweight="";
var oclosesizeunit="px";
var oclosedecoration="";
var oclosestyle="";
var ocloseweight="";
var ox=0;
var oy=0;
var oallow=0;
var oshowingsticky=0;
var oremovecounter=0;
var over=null;
var ns4=(document.layers)? true:false;
var ns6=(document.getElementById)? true:false;
var ie4=(document.all)? true:false;
var ie5=false;
if(ie4){
if((navigator.userAgent.indexOf('MSIE 5')> 0)||(navigator.userAgent.indexOf('MSIE 6')> 0)){
ie5=true;
}
if(ns6){
ns6=false;
}
}
if((ns4)||(ie4)||(ns6)){
document.onmousemove=mouseMove
if(ns4)document.captureEvents(Event.MOUSEMOVE)
}else{
overlib=no_overlib;
nd=no_overlib;
ver3fix=true;
}
function no_overlib(){
return ver3fix;
}
function overlib(){
otext=ol_text;
ocap=ol_cap;
osticky=ol_sticky;
obackground=ol_background;
oclose=ol_close;
ohpos=ol_hpos;
ooffsetx=ol_offsetx;
ooffsety=ol_offsety;
ofgcolor=ol_fgcolor;
obgcolor=ol_bgcolor;
otextcolor=ol_textcolor;
ocapcolor=ol_capcolor;
oclosecolor=ol_closecolor;
owidth=ol_width;
oborder=ol_border;
ostatus=ol_status;
oautostatus=ol_autostatus;
oheight=ol_height;
osnapx=ol_snapx;
osnapy=ol_snapy;
ofixx=ol_fixx;
ofixy=ol_fixy;
ofgbackground=ol_fgbackground;
obgbackground=ol_bgbackground;
opadxl=ol_padxl;
opadxr=ol_padxr;
opadyt=ol_padyt;
opadyb=ol_padyb;
ofullhtml=ol_fullhtml;
ovpos=ol_vpos;
oaboveheight=ol_aboveheight;
ocapicon=ol_capicon;
otextfont=ol_textfont;
ocaptionfont=ol_captionfont;
oclosefont=ol_closefont;
otextsize=ol_textsize;
ocaptionsize=ol_captionsize;
oclosesize=ol_closesize;
otimeout=ol_timeout;
ofunction=ol_function;
odelay=ol_delay;
ohauto=ol_hauto;
ovauto=ol_vauto;
ocloseclick=ol_closeclick;
ocss=ol_css;
ofgclass=ol_fgclass;
obgclass=ol_bgclass;
otextfontclass=ol_textfontclass;
ocaptionfontclass=ol_captionfontclass;
oclosefontclass=ol_closefontclass;
opadunit=ol_padunit;
oheightunit=ol_heightunit;
owidthunit=ol_widthunit;
otextsizeunit=ol_textsizeunit;
otextdecoration=ol_textdecoration;
otextstyle=ol_textstyle;
otextweight=ol_textweight;
ocaptionsizeunit=ol_captionsizeunit;
ocaptiondecoration=ol_captiondecoration;
ocaptionstyle=ol_captionstyle;
ocaptionweight=ol_captionweight;
oclosesizeunit=ol_closesizeunit;
oclosedecoration=ol_closedecoration;
oclosestyle=ol_closestyle;
ocloseweight=ol_closeweight;
if((ns4)||(ie4)||(ns6)){
oframe=ol_frame;
if(ns4)over=oframe.document.overDiv
if(ie4)over=oframe.overDiv.style
if(ns6)over=oframe.document.getElementById("overDiv");
}
var c=-1;
var ar=arguments;
for(i=0;i < ar.length;i++){
if(c < 0){
if(ar[i]==1){
otext=ol_texts[ar[++i]];
}else{
otext=ar[i];
}
c=0;
}else{
if(ar[i]==1){otext=ol_texts[ar[++i]];continue;}
if(ar[i]==2){ocap=ol_caps[ar[++i]];continue;}
if(ar[i]==3){osticky=1;continue;}
if(ar[i]==4){obackground=ar[++i];continue;}
if(ar[i]==NOCLOSE){oclose="";continue;}
if(ar[i]==6){ocap=ar[++i];continue;}
if(ar[i]==9 || ar[i]==7 || ar[i]==8){ohpos=ar[i];continue;}
if(ar[i]==10){ooffsetx=ar[++i];continue;}
if(ar[i]==11){ooffsety=ar[++i];continue;}
if(ar[i]==12){ofgcolor=ar[++i];continue;}
if(ar[i]==13){obgcolor=ar[++i];continue;}
if(ar[i]==14){otextcolor=ar[++i];continue;}
if(ar[i]==15){ocapcolor=ar[++i];continue;}
if(ar[i]==16){oclosecolor=ar[++i];continue;}
if(ar[i]==17){owidth=ar[++i];continue;}
if(ar[i]==18){oborder=ar[++i];continue;}
if(ar[i]==19){ostatus=ar[++i];continue;}
if(ar[i]==20){oautostatus=1;continue;}
if(ar[i]==21){oautostatus=2;continue;}
if(ar[i]==22){oheight=ar[++i];oaboveheight=ar[i];continue;}// Same param again.
if(ar[i]==23){oclose=ar[++i];continue;}
if(ar[i]==24){osnapx=ar[++i];continue;}
if(ar[i]==25){osnapy=ar[++i];continue;}
if(ar[i]==26){ofixx=ar[++i];continue;}
if(ar[i]==27){ofixy=ar[++i];continue;}
if(ar[i]==28){ofgbackground=ar[++i];continue;}
if(ar[i]==29){obgbackground=ar[++i];continue;}
if(ar[i]==30){opadxl=ar[++i];opadxr=ar[++i];continue;}
if(ar[i]==31){opadyt=ar[++i];opadyb=ar[++i];continue;}
if(ar[i]==34){ofullhtml=1;continue;}
if(ar[i]==36 || ar[i]==35){ovpos=ar[i];continue;}
if(ar[i]==37){ocapicon=ar[++i];continue;}
if(ar[i]==38){otextfont=ar[++i];continue;}
if(ar[i]==39){ocaptionfont=ar[++i];continue;}
if(ar[i]==40){oclosefont=ar[++i];continue;}
if(ar[i]==41){otextsize=ar[++i];continue;}
if(ar[i]==42){ocaptionsize=ar[++i];continue;}
if(ar[i]==43){oclosesize=ar[++i];continue;}
if(ar[i]==44){opt_FRAME(ar[++i]);continue;}
if(ar[i]==45){otimeout=ar[++i];continue;}
if(ar[i]==46){opt_FUNCTION(ar[++i]);continue;}
if(ar[i]==47){odelay=ar[++i];continue;}
if(ar[i]==48){ohauto=(ohauto==0)? 1 : 0;continue;}
if(ar[i]==49){ovauto=(ovauto==0)? 1 : 0;continue;}
if(ar[i]==50){ocloseclick=(ocloseclick==0)? 1 : 0;continue;}
if(ar[i]==51){ocss=ar[i];continue;}
if(ar[i]==52){ocss=ar[i];continue;}
if(ar[i]==53){ocss=ar[i];continue;}
if(ar[i]==54){ofgclass=ar[++i];continue;}
if(ar[i]==55){obgclass=ar[++i];continue;}
if(ar[i]==56){otextfontclass=ar[++i];continue;}
if(ar[i]==57){ocaptionfontclass=ar[++i];continue;}
if(ar[i]==58){oclosefontclass=ar[++i];continue;}
if(ar[i]==59){opadunit=ar[++i];continue;}
if(ar[i]==60){oheightunit=ar[++i];continue;}
if(ar[i]==61){owidthunit=ar[++i];continue;}
if(ar[i]==62){otextsizeunit=ar[++i];continue;}
if(ar[i]==63){otextdecoration=ar[++i];continue;}
if(ar[i]==64){otextstyle=ar[++i];continue;}
if(ar[i]==65){otextweight=ar[++i];continue;}
if(ar[i]==66){ocaptionsizeunit=ar[++i];continue;}
if(ar[i]==67){ocaptiondecoration=ar[++i];continue;}
if(ar[i]==68){ocaptionstyle=ar[++i];continue;}
if(ar[i]==69){ocaptionweight=ar[++i];continue;}
if(ar[i]==70){oclosesizeunit=ar[++i];continue;}
if(ar[i]==71){oclosedecoration=ar[++i];continue;}
if(ar[i]==72){oclosestyle=ar[++i];continue;}
if(ar[i]==73){ocloseweight=ar[++i];continue;}
}
}
if(odelay==0){
return overlib350();
}else{
odelayid=setTimeout("overlib350()", odelay);
if(osticky){
return false;
}else{
return true;
}
}
}
function nd(){
if(oremovecounter >=1){oshowingsticky=0};
if((ns4)||(ie4)||(ns6)){
if(oshowingsticky==0){
oallowmove=0;
if(over !=null)hideObject(over);
}else{
oremovecounter++;
}
}
return true;
}
function overlib350(){
var layerhtml;
if(obackground !="" || ofullhtml){
layerhtml=ol_content_background(otext, obackground, ofullhtml);
}else{
if(ofgbackground !="" && ocss==CSSOFF){
ofgbackground="BACKGROUND=\""+ofgbackground+"\"";
}
if(obgbackground !="" && ocss==CSSOFF){
obgbackground="BACKGROUND=\""+obgbackground+"\"";
}
if(ofgcolor !="" && ocss==CSSOFF){
ofgcolor="BGCOLOR=\""+ofgcolor+"\"";
}
if(obgcolor !="" && ocss==CSSOFF){
obgcolor="BGCOLOR=\""+obgcolor+"\"";
}
if(oheight > 0 && ocss==51){
oheight="HEIGHT=" + oheight;
}else{
oheight="";
}
if(ocap==""){
layerhtml=ol_content_simple(otext);
}else{
if(osticky){
layerhtml=ol_content_caption(otext, ocap, oclose);
}else{
layerhtml=ol_content_caption(otext, ocap, "");
}
}
}
if(osticky){
oshowingsticky=1;
oremovecounter=0;
}
layerWrite(layerhtml);
if(oautostatus > 0){
ostatus=otext;
if(oautostatus > 1){
ostatus=ocap;
}
}
oallowmove=0;
if(otimeout > 0){
if(otimerid > 0)clearTimeout(otimerid);
otimerid=setTimeout("cClick()", otimeout);
}
disp(ostatus);
if(osticky){
oallowmove=0;
return false;
}else{
return true;
}
}
function ol_content_simple(text){
if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 class=\""+obgclass+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 class=\""+ofgclass+"\"><TR><TD VALIGN=TOP><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 style=\"background-color: "+obgcolor+";height: "+oheight+oheightunit+";\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 style=\"color: "+ofgcolor+";background-color: "+ofgcolor+";height: "+oheight+oheightunit+";\"><TR><TD VALIGN=TOP><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";text-decoration: "+otextdecoration+";font-weight: "+otextweight+";font-style:"+otextstyle+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
if(ocss==CSSOFF)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 "+obgcolor+" "+oheight+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+ofgcolor+" "+ofgbackground+" "+oheight+"><TR><TD VALIGN=TOP><FONT FACE=\""+otextfont+"\" COLOR=\""+otextcolor+"\" SIZE=\""+otextsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
set_background("");
return txt;
}
function ol_content_caption(text, title, close){
closing="";
closeevent="onMouseOver";
if(ocloseclick==1)closeevent="onClick";
if(ocapicon !="")ocapicon="<IMG SRC=\""+ocapicon+"\"> ";
if(close !=""){
if(ocss==CSSCLASS)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\" class=\""+oclosefontclass+"\">"+close+"</A></TD>";
if(ocss==CSSSTYLE)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\" style=\"color: "+oclosecolor+";font-family: "+oclosefont+";font-size: "+oclosesize+oclosesizeunit+";text-decoration: "+oclosedecoration+";font-weight: "+ocloseweight+";font-style:"+oclosestyle+";\">"+close+"</A></TD>";
if(ocss==CSSOFF)closing="<TD ALIGN=RIGHT><A HREF=\"/\" "+closeevent+"=\"return cClick();\"><FONT COLOR=\""+oclosecolor+"\" FACE=\""+oclosefont+"\" SIZE=\""+oclosesize+"\">"+close+"</FONT></A></TD>";
}
if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 class=\""+obgclass+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT class=\""+ocaptionfontclass+"\">"+ocapicon+title+"</FONT></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 class=\""+ofgclass+"\"><TR><TD VALIGN=TOP><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 style=\"background-color: "+obgcolor+";background-image: url("+obgbackground+");height: "+oheight+oheightunit+";\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><FONT style=\"font-family: "+ocaptionfont+";color: "+ocapcolor+";font-size: "+ocaptionsize+ocaptionsizeunit+";font-weight: "+ocaptionweight+";font-style: "+ocaptionstyle+";\">"+ocapicon+title+"</FONT></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 style=\"color: "+ofgcolor+";background-color: "+ofgcolor+";height: "+oheight+oheightunit+";\"><TR><TD VALIGN=TOP><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";text-decoration: "+otextdecoration+";font-weight: "+otextweight+";font-style:"+otextstyle+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
if(ocss==CSSOFF)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING="+oborder+" CELLSPACING=0 "+obgcolor+" "+obgbackground+" "+oheight+"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><B><FONT COLOR=\""+ocapcolor+"\" FACE=\""+ocaptionfont+"\" SIZE=\""+ocaptionsize+"\">"+ocapicon+title+"</FONT></B></TD>"+closing+"</TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 "+ofgcolor+" "+ofgbackground+" "+oheight+"><TR><TD VALIGN=TOP><FONT COLOR=\""+otextcolor+"\" FACE=\""+otextfont+"\" SIZE=\""+otextsize+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
set_background("");
return txt;
}
function ol_content_background(text, picture, hasfullhtml){
if(hasfullhtml){
txt=text;
}else{
if(ocss==CSSCLASS)txt="<TABLE WIDTH="+owidth+owidthunit+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+oheightunit+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+opadunit+"></TD></TR><TR><TD WIDTH="+opadxl+opadunit+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+opadunit+"><FONT class=\""+otextfontclass+"\">"+text+"</FONT></TD><TD WIDTH="+opadxr+opadunit+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+opadunit+"></TD></TR></TABLE>";
if(ocss==CSSSTYLE)txt="<TABLE WIDTH="+owidth+owidthunit+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+oheightunit+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+opadunit+"></TD></TR><TR><TD WIDTH="+opadxl+opadunit+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+opadunit+"><FONT style=\"font-family: "+otextfont+";color: "+otextcolor+";font-size: "+otextsize+otextsizeunit+";\">"+text+"</FONT></TD><TD WIDTH="+opadxr+opadunit+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+opadunit+"></TD></TR></TABLE>";
if(ocss==CSSOFF)txt="<TABLE WIDTH="+owidth+" BORDER=0 CELLPADDING=0 CELLSPACING=0 HEIGHT="+oheight+"><TR><TD COLSPAN=3 HEIGHT="+opadyt+"></TD></TR><TR><TD WIDTH="+opadxl+"></TD><TD VALIGN=TOP WIDTH="+(owidth-opadxl-opadxr)+"><FONT FACE=\""+otextfont+"\" COLOR=\""+otextcolor+"\" SIZE=\""+otextsize+"\">"+text+"</FONT></TD><TD WIDTH="+opadxr+"></TD></TR><TR><TD COLSPAN=3 HEIGHT="+opadyb+"></TD></TR></TABLE>";
}
set_background(picture);
return txt;
}
function set_background(pic){
if(pic==""){
if(ie4)over.backgroundImage="none";
if(ns6)over.style.backgroundImage="none";
}else{
if(ns4){
over.background.src=pic;
}else if(ie4){
over.backgroundImage="url("+pic+")";
}else if(ns6){
over.style.backgroundImage="url("+pic+")";
}
}
}
function disp(statustext){
if((ns4)||(ie4)||(ns6)){
if(oallowmove==0){
placeLayer();
showObject(over);
oallowmove=1;
}
}
if(statustext !=""){
self.status=statustext;
}
}
function placeLayer(){
var placeX, placeY;
if(ofixx > -1){
placeX=ofixx;
}else{
winoffset=(ie4)? oframe.document.body.scrollLeft : oframe.pageXOffset;
if(ie4)iwidth=oframe.document.body.clientWidth;
if(ns4)iwidth=oframe.innerWidth;// was screwed in mozilla, fixed now?
if(ns6)iwidth=oframe.outerWidth;
if(ohauto==1){
if((ox - winoffset)>((eval(iwidth))/ 2)){
ohpos=7;
}else{
ohpos=8;
}
}
if(ohpos==9){// Center
placeX=ox+ooffsetx-(owidth/2);
}
if(ohpos==8){// Right
placeX=ox+ooffsetx;
if((eval(placeX)+ eval(owidth))>(winoffset + iwidth)){
placeX=iwidth + winoffset - owidth;
if(placeX < 0)placeX=0;
}
}
if(ohpos==7){// Left
placeX=ox-ooffsetx-owidth;
if(placeX < winoffset)placeX=winoffset;
}
if(osnapx > 1){
var snapping=placeX % osnapx;
if(ohpos==7){
placeX=placeX -(osnapx + snapping);
}else{
placeX=placeX +(osnapx - snapping);
}
if(placeX < winoffset)placeX=winoffset;
}
}
if(ofixy > -1){
placeY=ofixy;
}else{
scrolloffset=(ie4)? oframe.document.body.scrollTop : oframe.pageYOffset;
if(ovauto==1){
if(ie4)iheight=oframe.document.body.clientHeight;
if(ns4)iheight=oframe.innerHeight;
if(ns6)iheight=oframe.outerHeight;
iheight=(eval(iheight))/ 2;
if((oy - scrolloffset)> iheight){
ovpos=35;
}else{
ovpos=36;
}
}
if(ovpos==35){
if(oaboveheight==0){
var divref=(ie4)? oframe.document.all['overDiv'] : over;
oaboveheight=(ns4)? divref.clip.height : divref.offsetHeight;
}
placeY=oy -(oaboveheight + ooffsety);
if(placeY < scrolloffset)placeY=scrolloffset;
}else{
placeY=oy + ooffsety;
}
if(osnapy > 1){
var snapping=placeY % osnapy;
if(oaboveheight > 0 && ovpos==35){
placeY=placeY -(osnapy + snapping);
}else{
placeY=placeY +(osnapy - snapping);
}
if(placeY < scrolloffset)placeY=scrolloffset;
}
}
repositionTo(over, placeX, placeY);
}
function mouseMove(e){
if((ns4)||(ns6)){ox=e.pageX;oy=e.pageY;}
if(ie4){ox=event.x;oy=event.y;}
if(ie5){ox=event.x+oframe.document.body.scrollLeft;oy=event.y+oframe.document.body.scrollTop;}
if(oallowmove==1){
placeLayer();
}
}
function cClick(){
hideObject(over);
oshowingsticky=0;
return false;
}
function compatibleframe(frameid){
if(ns4){
if(typeof frameid.document.overDiv=='undefined')return false;
}else if(ie4){
if(typeof frameid.document.all["overDiv"]=='undefined')return false;
}else if(ns6){
if(frameid.document.getElementById('overDiv')==null)return false;
}
return true;
}
function layerWrite(txt){
txt +="\n";
if(ns4){
var lyr=oframe.document.overDiv.document
lyr.write(txt)
lyr.close()
}else if(ie4){
oframe.document.all["overDiv"].innerHTML=txt
}else if(ns6){
range=oframe.document.createRange();
range.setStartBefore(over);
domfrag=range.createContextualFragment(txt);
while(over.hasChildNodes()){
over.removeChild(over.lastChild);
}
over.appendChild(domfrag);
}
}
function showObject(obj){
if(ns4)obj.visibility="show";
else if(ie4)obj.visibility="visible";
else if(ns6)obj.style.visibility="visible";
}
function hideObject(obj){
if(ns4)obj.visibility="hide";
else if(ie4)obj.visibility="hidden";
else if(ns6)obj.style.visibility="hidden";
if(otimerid > 0)clearTimeout(otimerid);
if(odelayid > 0)clearTimeout(odelayid);
otimerid=0;
odelayid=0;
self.status="";
}
function repositionTo(obj,xL,yL){
if((ns4)||(ie4)){
obj.left=xL;
obj.top=yL;
}else if(ns6){
obj.style.left=xL + "px";
obj.style.top=yL+ "px";
}
}
function opt_FRAME(frm){
oframe=compatibleframe(frm)? frm : ol_frame;
if((ns4)||(ie4 ||(ns6))){
if(ns4)over=oframe.document.overDiv;
if(ie4)over=oframe.overDiv.style;
if(ns6)over=oframe.document.getElementById("overDiv");
}
return 0;
}
function opt_FUNCTION(callme){
otext=callme()
return 0;
}
function helper(db){//This is the database of overlib functions used in the tutorials
	var img_root = "http://www.infinitedesigns.org/wp-content/themes/default/scripts/Rollover_Help/";//Edit this to either the location of the script or the absolute path
	//Here are the Photoshop helpers
	if(db == "accented_edges"){
		content = "<small><b>Filter &gt; Brush Strokes &gt; Accented Edges</b></small>";
		title = "Accented Edges";
		overlib(content, CAPTION,  title);
	} else if(db == "auto_levels"){
		content = "<small><b>Image &gt; Adjust &gt; Auto Levels </b></small>";
		title = "Auto Levels";
		overlib(content, CAPTION, title);
	} else if(db == "add_mask"){
		content = "<small><b>Layer &gt; Add Layer Mask &gt; Reveal All </b><i>or</i><br>Click on the add mask button<br><center><img src="+ img_root +"Add_Mask/mask.gif></center></small>";
		title = "Add Mask";
		overlib(content, CAPTION, title);
	} else if(db == "add_noise"){
		content = "<small><b>Filter &gt; Noise &gt; Add Noise</b><br> then enter the amount and select appropriate options</small>";
		title="Add Noise";
		overlib(content,  CAPTION, title);
	} else if((db == "adjust_levels")||(db == "levels")){
		content = "<small><b>Press Ctrl + L</b><i> or</i><br>Image &gt; Adjustments &gt; Levels<br> then enter the given settings</small>";
		title="Levels";
		overlib(content,  CAPTION, title);
	} else if(db == "anchor"){
		content = "<center><img src="+ img_root +"Anchor/anchor.jpg /></center>";
		title="Anchor";
		overlib(content,  CAPTION, title);
	} else if(db == "blending_mode"){
		content = "<small><b>In Layers window click on..</b><br><img src="+ img_root +"Blending-Mode/blendingmode.jpg><br><i>or &nbsp;</i>Layer &gt; Layer Style &gt; Blending Options.. and you will see a drop down menu (as shown below), and change it to desired effect<br><center><img src="+ img_root +"Blending-Mode/blend-mode2.jpg></center></small>";
		title="Blending Mode";
		overlib(content,  CAPTION, title);
	} else if((db == "brightness_and_contrast") || (db == "brightness-contrast")){
		content = "<small><b>Image &gt; Adjustments &gt; Brightness/Contrast</b><br> then enter the amounts or slide the sliders</small>";
		title="Brightness/Contrast";
		overlib(content,  CAPTION, title);
	} else if(db == "brush-pencil_tools"){
		content = "<small><b>Click and hold on the Brush/Pencil Tool Button [Press B]</b> (as shown below), and select the desired Brush or Pencil Tool.<br><center><img src="+ img_root +"Brush-Pencil_Tools/brush-pencil_tools.jpg></center></small>";
		title="Brush/Pencil Tool";
		overlib(content,  CAPTION, title);
	} else if(db == "canvas_size"){
		content = "<small><b>Image &gt; Canvas Size..</b><br> then enter the width and height</small>";
		title="Canvis Size";
		overlib(content,  CAPTION, title);
	} else if(db == "chrome"){
		content = "<small><b>Filter &gt; Sketch &gt; Chrome</b></small>";
		title="Chrome";
		overlib(content,  CAPTION, title);
	} else if(db == "clouds"){
		content = "<small><b>Filter &gt; Render &gt; Clouds</b></small>";
		title="Clouds";
		overlib(content,  CAPTION, title);
	} else if((db == "expand_selection") || (db == "expand")){
		content = "<small><b>Select &gt; Modify &gt; Expand...</b></small>";
		title="Expand Selection";
		overlib(content,  CAPTION, title);
	} else if((db == "contract_selection") || (db == "contract")){
		content = "<small><b>Select &gt; Modify &gt; Contract...</b></small>";
		title="Contract Selection";
		overlib(content,  CAPTION, title);
	} else if(db == "copy_and_paste"){
		content = "<small><b>Press Ctrl + C</b> to copy the selection and <b>Press Ctrl + V</b> to paste the selection automatically into a new layer. <i>or</i><br>Edit &gt; Copy</b> and then go to <b>Edit &gt; Paste</b> and it will paste selection automatically into a new layer.</small>";
		title="Copy and Paste";
		overlib(content,  CAPTION, title);
	} else if(db == "copy_and_paste_image"){
		content = "<small><b>Press Ctrl + C</b> to copy the selected image then select the graphic window you are working on and and it should pop infront of the image you are copying. Then <b>Press Ctrl + V</b> to paste the selection automatically a layer. <i>or</i><br>Edit &gt; Copy</b> and then go to <b>Edit &gt; Paste</b> and it will paste selection automatically into a new layer.</small>";
		title="Copy and Paste Image";
		overlib(content,  CAPTION, title);
	} else if(db == "copy_layer"){
		content = "<small><b>Press Ctrl + J</b> <i>or</i><br>Layer &gt; New &gt; Layer via Copy <i>or</i><br>Right click on the layer you wish to copy, and select - Duplicate Layer</small>";
		title="Copy Layer";
		overlib(content,  CAPTION, title);
	} else if(db == "craquelure"){
		content = "<small><b>Filter &gt; Texture &gt; Craquelure</b></small>";
		title = "Craquelure";
		overlib(content, CAPTION, title);
	} else if(db == "crystalize"){
		content = "<small><b>Filter &gt; Pixelate &gt; Crystalize</b></small>";
		title="Crystalize";
		overlib(content,  CAPTION, title);
	} else if(db == "curves"){
		content = "<small><b>Ctrl + M</b><i> or</i><br>Image &gt; Adjust &gt; Curves..<br> then adjust the curves to the given settings</small>";
		title="Curves";
		overlib(content,  CAPTION, title);
	} else if(db == "deselect"){
		content = "<small><b>Press Ctrl + D</b> <i>or</i><br>Select &gt; Deselect</small>";
		title="Deselect";
		overlib(content,  CAPTION, title);
	} else if(db == "difference_clouds"){
		content = "<small><b>Filter &gt; Render &gt; Difference Clouds</b></small>";
		title="Difference Clouds";
		overlib(content,  CAPTION, title);
	} else if(db == "distort"){
		content = "<small><b>Edit &gt; Transform &gt; Distort</b></small>";
		title = "Distort";
		overlib(content, CAPTION, title);
	} else if(db == "dodge-burn-sponge_tools"){
		content = "<small><b>Click and hold on Dodge/Burn/Sponge Tool Button</b> (as shown below), and select the desired Tool.<br><center><img src="+ img_root +"Dodge-Burn-Sponge_Tools/DBS.jpg></center></small>";
		title="Dodge/Burn/Sponge Tools";
		overlib(content,  CAPTION, title);
	} else if(db == "emboss"){
		content = "<small><b>Filter &gt; Stylize &gt; Emboss</b></small>";
		title="Emboss";
		overlib(content,  CAPTION, title);
	} else if(db == "eraser_tools"){
		content = "<small><b>Click and hold on the Eraser Tool Button [Press E]</b> (as shown below), and select the desired Eraser Tool.<br><center><img src="+ img_root +"Eraser_Tools/eraser_tools.gif></center></small>";
		title="Brush/Pencil Tool";
		overlib(content,  CAPTION, title);
	} else if(db == "extrude"){
		content = "<small><b>Filter &gt; Stylize &gt; Extrude</b></small>";
		title="Extrude";
		overlib(content,  CAPTION, title);
	} else if(db == "feather_selection"){
		content = "<small><b>Select &gt; Modify &gt; Feather</b><i> or</i><br> Press Alt + Ctrl + D</small>";
		title="Feather Selection";
		overlib(content,  CAPTION, title);
	} else if(db == "fill"){
		content = "<small><b>Press Alt + Backspace</b> <i>or</i><br>Edit &gt; Fill.. and click -OK- <i>or</i><br> Select the Paintbucket tool <img src="+ img_root +"Fill/Paintbucket.jpg> and click anywhere on image</small>";
		title="Fill";
		overlib(content,  CAPTION, title);
	} else if(db == "fill_percentage"){
		content = "<small><b><img src="+ img_root +"Fill/fill_percentage.gif></b> <i>or</i><br>Layer &gt; Layer Style &gt; Blending Options.. and then under Advance Blending move the fill slider, or manually input a value.</small>";
		title="Fill Percentage";
		overlib(content,  CAPTION, title);
	} else if(db == "find_edges"){
		content = "<small><b>Filter &gt; Stylize &gt; Find Edges</b></small>";
		title = "Find Edges";
		overlib(content, CAPTION, title);
	} else if(db == "flatten_image"){
		content = "<small><b>Layers &gt; Flatten Image</b></small>";
		title = "Flatten Image";
		overlib(content, CAPTION, title);
	} else if(db == "gaussion_blur"){
		content = "<small><b>Filter &gt; Blur &gt; Gaussion Blur</b><br> then enter the Radius</small>";
		title = "Gaussion Blur";
		overlib(content, CAPTION, title);
	} else if(db == "glowing_edges"){
		content = "<small><b>Filter &gt; Stylize &gt; Glowing Edges</b></small>";
		title = "Glowing Edges";
		overlib(content, CAPTION, title);
	} else if(db == "gradient_tool"){
		content = "<small><b>Click and hold on the Paintbucket Tool Button</b> (as shown below), and select the Gradient Tool.<br><center><img src="+ img_root +"Gradient/gradient.jpg></center><br>If there is no Paintbucket tool, then look for <br><img src="+ img_root +"Gradient/gradient_small.jpg> and click on it once to select it.</small>";
		title = "Gradient Tool";
		overlib(content, CAPTION, title);
	} else if(db == "horizontal_centers"){
		content = "<small><b>Layer &gt; Align to Selection &gt; Horizontal Centers </b><i>or</i><br>After selecting the move tool, on the top utility bar select<br><center><img src="+ img_root +"Alignment/horizontal_centers.jpg></center></small>";
		title = "Horizontal Centers";
		overlib(content, CAPTION, title);
	} else if(db == "horizontal_flip"){
		content = "<small><b>Edit &gt; Transform &gt; Flip Horizontally</b></small>";
		title = "Horizontal Flip";
		overlib(content, CAPTION, title);
	} else if(db == "hue-saturation"){
		content = "<small><b>Image &gt; Adjustments &gt; Hue/Saturation</b> <i>or</i><br> Ctrl + U<br> then enter the amounts or slide the sliders</small>";
		title = "Hue/Saturation";
		overlib(content, CAPTION, title);
	} else if(db == "image_size"){
		content = "<small><b>Image > Image Size...</b> then enter the given settings, or enter whatever settings you please.</small>";
		title = "Image Size";
		overlib(content, CAPTION, title);
	} else if(db == "inverse"){
		content = "<small><b>Ctrl + Shift + I</b><i> or</i><br>Select &gt; Inverse</small>";
		title = "Inverse";
		overlib(content, CAPTION, title);
	} else if(db == "invert"){
		content = "<small><b>Press Ctrl + I</b> <i>or</i><br>Image &gt; Adjust &gt; Invert</small>";
		title = "Invert";
		overlib(content, CAPTION, title);
	} else if(db == "lasso_tools"){
		content = "<small><b>Click and hold on the Lasso Tool Button</b> (as shown below), and select the desired Lasso Tool.<br><center><img src="+ img_root +"Lasso_Tool/lasso.jpg></center></small>";
		title = "Lasso Tools";
		overlib(content, CAPTION, title);
	} else if(db == "lens_flare"){
		content = "<small><b>Filter &gt; Render &gt; Lens Flare</b></small>";
		title = "Lens Flare";
		overlib(content, CAPTION, title);
	} else if(db == "lighting_effects"){
		content = "<small><b>Filter &gt; Render &gt; Lighting Effects</b></small>";
		title = "Lighting Effects";
		overlib(content, CAPTION, title);
	} else if(db == "linear_gradient"){
		content = "<small><b>Click once to select the linear gradient tool</b> (as shown below)<br><center><img src="+ img_root +"Gradient/linear_gradient.jpg></center></small>";
		title = "Linear Gradient";
		overlib(content, CAPTION, title);
	} else if(db == "load_channel_selection"){
		content = "<small><b>Hold Ctrl while clicking on the layer</b> you want to load selection from <i>or</i><br>Select the layer you want the selection of, then click on the Load Channel as Selection button (shown below)<br><center><img src="+ img_root +"New_Layer-Channel/loadselection.jpg></center></small>";
		title = "Load Selection";
		overlib(content, CAPTION, title);
	} else if(db == "load_layer_selection"){
		content = "<small><b>Hold Ctrl while clicking on the layer</b> you want to load selection from</small>";
		title = "Load Selection";
		overlib(content, CAPTION, title);
	} else if(db == "magic_wand_tool"){
		content = "<small><b>Press W on the keyboard</b><i> or</i><br>In the Tool bar select the button shown below.<br><center><img src="+ img_root +"Wand_Tool/wand.jpg></center></small>";
		title = "Magic Wand Tool";
		overlib(content, CAPTION, title);
	} else if(db == "marquee_tools"){
		content = "<small><b>Click and hold on the Marquee Tool Button</b> (as shown below), and select the desired Marquee Tool.<br><center><img src="+ img_root +"Marquee_Tool/Marquee.jpg></center></small>";
		title = "Marquee Tools";
		overlib(content, CAPTION, title);
	} else if(db == "merge_layers"){
		content = "<small><b>Press Ctrl + E</b> <i>or</i><br>Layer &gt; Merge Down</small>";
		title = "Merge Layers";
		overlib(content, CAPTION, title);
	} else if(db == "mezzotint"){
		content = "<small><b>Filter &gt; Pixelate &gt; Mezzotint</b></small>";
		title = "Mezzotint";
		overlib(content, CAPTION, title);
	} else if(db == "mosiac"){
		content = "<small><b>Filter &gt; Pixelate &gt; Mosiac</b></small>";
		title = "Mosiac";
		overlib(content, CAPTION, title);
	} else if(db == "motion_blur"){
		content = "<small><b>Filter &gt; Blur &gt; Motion Blur</b><br> then enter the angle and distance</small>";
		title = "Motion Blur";
		overlib(content, CAPTION, title);
	} else if(db == "move_tool"){
		content = "<small><b>Press V on the keyboard</b><i> or</i><br>In the Tool bar select the button shown below.<br><center><img src="+ img_root +"Move_Tool/Move_Tool.jpg></center>You can move the image by click and dragging the mouse or pressing the arrow keys.</small>";
		title = "Move Tool";
		overlib(content, CAPTION, title);
	} else if(db == "new_adjustment_layer"){
		content = "<small><b>Layer &gt; New Adjustment Layer &gt; specified in tutorial..</b> and then click -OK- to both windows that pop up <i>or</i><br><i>or</i><br>Click on new adjustment layer button, <br><center><img src="+ img_root +"New_Layer-Channel/new_adjustment_layer.jpg><br>and click -OK- on the window that pops up.</center></small>";
		title = "New Adjustment Layer";
		overlib(content, CAPTION, title);
	} else if(db == "new_channel"){
		content = "<center><img src="+ img_root +"New_Layer-Channel/new_layer-chan.jpg></center>";
		title = "New Channel";
		overlib(content, CAPTION, title);
	} else if(db == "new_layer"){
		content = "<small><b>Press Shift+Ctrl+N</b> and then click -OK- <i>or</i><br>Layer &gt; New &gt; Layer.. <i>or</i><br>Click on new layer button<br><center><img src="+ img_root +"New_Layer-Channel/new_layer-chan.jpg></center></small>";
		title = "New Layer";
		overlib(content, CAPTION, title);
	} else if(db == "ocean_ripple"){
		content = "<small><b>Filter &gt; Distort &gt; Ocean Ripple</b></small>";
		title = "Ocean Ripple";
		overlib(content, CAPTION, title);
	} else if(db == "opacity"){
		content = "<small><b>In Layers window it says opacity,</b> click on the arrow and then move the slider to desired opacity or simply type in the number by clicking on the box. </small>";
		title = "Opacity";
		overlib(content, CAPTION, title);
	} else if(db == "paintbucket"){
		content = "<small><b>Click on the Paintbucket tool</b><br><img src="+ img_root +"Fill/Paintbucket.jpg> and click anywhere on image</small>";
		title="Paintbucket Tool";
		overlib(content,  CAPTION, title);
	} else if(db == "pen_tools"){
		content = "<small><b>Press P</b><i> or</i><br>Click and hold on the pen tool (as shown below).<br><center><img src="+ img_root +"Pen_Tool/pen.gif></center><br>and then select the pen tool instructed by the tutorial.</small>";
		title = "Pen Tools";
		overlib(content, CAPTION, title);
	} else if(db == "perspective"){
		content = "<small><b>Edit &gt; Transform &gt; Perspective</b></small>";
		title = "Perspective";
		overlib(content, CAPTION, title);
	} else if(db == "plastic_wrap"){
		content = "<small><b>Filter &gt; Artistic &gt; Plastic Wrap</b></small>";
		title = "Plastic Wrap";
		overlib(content, CAPTION, title);
	} else if(db == "polar_coordinates"){
		content = "<small><b>Filter &gt; Distort &gt; Polar Coordinates</b></small>";
		title = "Polar Coordinates";
		overlib(content, CAPTION, title);
	} else if(db == "preserve_transparency"){
		content = "<small><b>With the desired layer selected, press '?' on keyboard, </b><i>or</i> check the 'Preserve Transparency' box as shown below.<br><img src="+ img_root +"Preserve_Transparency/p-t.gif></small>";
		title = "Preserve Transparency";
		overlib(content, CAPTION, title);
	} else if(db == "radial_blur"){
		content = "<small><b>Filter &gt; Blur &gt; Radial Blur</b><br> then enter the given settings</small>";
		title = "Radial Blur";
		overlib(content, CAPTION, title);
	} else if(db == "radial_gradient"){
		content = "<small><b>Click once to select the radial gradient tool</b> (as shown below)<br><center><img src="+ img_root +"Gradient/radial_gradient.jpg></center></small>";
		title = "Radial Gradient";
		overlib(content, CAPTION, title);
	} else if(db == "reflected_gradient"){
		content = "<small><b>Click once to select the reflected gradient tool</b> (as shown below)<br><center><img src="+ img_root +"Gradient/reflected_gradient.jpg></center></small>";
		title = "Reflected Gradient";
		overlib(content, CAPTION, title);
	} else if(db == "rotate"){
		content = "<small><b>Edit &gt; Transform &gt; Rotate</b></small>";
		title = "Rotate";
		overlib(content, CAPTION, title);
	}  else if(db == "rotate_canvas"){
		content = "<small><b>Image &gt; Rotate Canvas</b><br>then choose the appropriate option specified in the tutorial.</small>";
		title = "Rotate Canvas";
		overlib(content, CAPTION, title);
	} else if(db == "ripple"){
		content = "<small><b>Filter &gt; Distort &gt; Ripple</b></small>";
		title = "Ripple";
		overlib(content, CAPTION, title);
	} else if(db == "select_all"){
		content = "<small><b>Press Ctrl + A</b> <i>or</i><br>Select &gt; All</small>";
		title = "Select All";
		overlib(content, CAPTION, title);
	} else if(db == "sharpen"){
		content = "<small><b>Filter &gt; Sharpen &gt; Sharpen</b></small>";
		title = "Sharpen";
		overlib(content, CAPTION, title);
	} else if(db == "show_channels"){
		content = "<small><b>Windows &gt; Show Channels</b> <i>or</i><br>Click on Channels tab<br><img src="+ img_root +"Show_Layer-Channel/Channel.jpg></small>";
		title = "Show Channels";
		overlib(content, CAPTION, title);
	} else if(db == "show_color"){
		content = "<small><b>Windows &gt; Show Color</b> <br> If you see <b>hide color</b> then it is already visible and you should look for it.<br><img src="+ img_root +"Show_Color/show_color.jpg></small>";
		title = "Show Color";
		overlib(content, CAPTION, title);
	} else if(db == "show_layers"){
		content = "<small><b>Windows &gt; Show Layers</b> <i>or</i><br>Click on Layers tab<br><img src="+ img_root +"Show_Layer-Channel/Layer.jpg></small>";
		title = "Show Layers";
		overlib(content, CAPTION, title);
	} else if(db == "skew"){
		content = "<small><b>Edit &gt; Transform &gt; Skew</b></small>";
		title = "Skew";
		overlib(content, CAPTION, title);
	} else if(db == "slice_tools"){
		content = "<small><b>Press K</b><i> or</i><br>Click and hold on the slice tool (as shown below).<br><center><img src="+ img_root +"Slice_Tool/slice_tools.gif></center><br>and then select the slice tool instructed by the tutorial.</small>";
		title = "Slice Tools";
		overlib(content, CAPTION, title);
	} else if(db == "solarize"){
		content = "<small><b>Filter &gt; Stylize &gt; Solarize</b></small>";
		title = "Solarize";
		overlib(content, CAPTION, title);
	} else if(db == "spherize"){
		content = "<small><b>Filter &gt; Distort &gt; Spherize</b></small>";
		title = "Spherize";
		overlib(content, CAPTION, title);
	} else if(db == "splatter"){
		content = "<small><b>Filter &gt; Brush Strokes &gt; Splatter</b></small>";
		title = "Splatter";
		overlib(content, CAPTION, title);
	} else if(db == "sponge"){
		content = "<small><b>Filter &gt; Artistic &gt; Sponge</b></small>";
		title = "Sponge";
		overlib(content, CAPTION, title);
	} else if(db == "stained_glass"){
		content = "<small><b>Filter &gt; Texture &gt; Stained Glass</b></small>";
		title = "Stained Glass";
		overlib(content, CAPTION, title);
	} else if(db == "stroke"){
		content = "<small><b>Edit &gt; Stroke...</b></small>";
		title = "Stroke";
		overlib(content, CAPTION, title);
	} else if(db == "style-bevel_and_emboss"){
		content = "<small><b>Select the layer, then go to,  Layer &gt; Layer Style.. &gt; Bevel and Emboss</b><i> or</i><br>Right click on the layer and select Blending Options. As image shows below.<br><center><img src="+ img_root +"Style/bevel_and_emboss.gif></center>Then use settings given in tutorial.</small>";
		title = "Bevel and Emboss";
		overlib(content, CAPTION, title);
	} else if(db == "style-drop_shadow"){
		content = "<small><b>Select the layer, then go to,  Layer &gt; Layer Style.. &gt; Drop Shadow</b><i> or</i><br>Right click on the layer and select Blending Options. As image shows below.<br><center><img src="+ img_root +"Style/drop_shadow.gif></center>Then use settings given in tutorial.</small>";
		title = "Drop Shadow";
		overlib(content, CAPTION, title);
	} else if(db == "style-gradient_overlay"){
		content = "<small><b>Select the layer, then go to,  Layer &gt; Layer Style.. &gt; Gradient Overlay</b><i> or</i><br>Right click on the layer and select Blending Options. As image shows below.<br><center><img src="+ img_root +"Style/gradient_overlay.gif></center>Then use settings given in tutorial.</small>";
		title = "Gradient Overlay";
		overlib(content, CAPTION, title);
	} else if(db == "style-inner_shadow"){
		content = "<small><b>Select the layer, then go to,  Layer &gt; Layer Style.. &gt; Inner Shadow</b><i> or</i><br>Right click on the layer and select Blending Options. As image shows below.<br><center><img src="+ img_root +"Style/inner_shadow.gif></center>Then use settings given in tutorial.</small>";
		title = "Inner Shadow";
		overlib(content, CAPTION, title);
	} else if(db == "style-satin"){
		content = "<small><b>Select the layer, then go to,  Layer &gt; Layer Style.. &gt; Satin</b><i> or</i><br>Right click on the layer and select Blending Options. As image shows below.<br><center><img src="+ img_root +"Style/satin.gif></center>Then use settings given in tutorial.</small>";
		title = "Satin";
		overlib(content, CAPTION, title);
	} else if(db == "style-pattern_overlay"){
		content = "<small><b>Select the layer, then go to,  Layer &gt; Layer Style.. &gt; Pattern Overlay</b><i> or</i><br>Right click on the layer and select Blending Options. As image shows below.<br><center><img src="+ img_root +"Style/pattern_overlay.gif></center>Then use settings given in tutorial.</small>";
		title = "Pattern Overlay";
		overlib(content, CAPTION, title);
	} else if(db == "style-inner_glow"){
		content = "<small><b>Select the layer, then go to,  Layer &gt; Layer Style.. &gt; Inner Glow</b><i> or</i><br>Right click on the layer and select Blending Options. As image shows below.<br><center><img src="+ img_root +"Style/inner_glow.gif></center>Then use settings given in tutorial.</small>";
		title = "Inner Glow";
		overlib(content, CAPTION, title);
	} else if(db == "style-outer_glow"){
		content = "<small><b>Select the layer, then go to,  Layer &gt; Layer Style.. &gt; Outer Glow</b><i> or</i><br>Right click on the layer and select Blending Options. As image shows below.<br><center><img src="+ img_root +"Style/outer_glow.gif></center>Then use settings given in tutorial.</small>";
		title = "Outer Glow";
		overlib(content, CAPTION, title);
	} else if(db == "style-stroke"){
		content = "<small><b>Select the layer, then go to,  Layer &gt; Layer Style.. &gt; Stroke</b><i> or</i><br>Right click on the layer and select Blending Options. As image shows below.<br><center><img src="+ img_root +"Style/stroke.gif></center>Then use settings given in tutorial.</small>";
		title = "Stroke";
		overlib(content, CAPTION, title);
	} else if(db == "twirl"){
		content = "<small><b>Filter &gt; Distort &gt; Twirl</b></small>";
		title = "Twirl";
		overlib(content, CAPTION, title);
	} else if(db == "type_tools"){
		content = "<small><b>Press T</b><i> or</i><br>Click and hold on the type tool (as shown below).<br><center><img src="+ img_root +"Text/typetool.jpg></center><br>and then select the type tool instructed by the tutorial.</small>";
		title = "Type Tools";
		overlib(content, CAPTION, title);
	} else if(db == "vertical_centers"){
		content = "<small><b>Layer &gt; Align to Selection &gt; Vertical Centers </b><i>or</i><br>After selecting the move tool, on the top utility bar select<br><center><img src="+ img_root +"Alignment/vertical_centers.jpg></center></small>";
		title = "Vertical Centers";
		overlib(content, CAPTION, title);
	} else if(db == "vertical_flip"){
		content = "<small><b>Edit &gt; Transform &gt; Flip Vertically</b></small>";
		title = "Vertical Flip";
		overlib(content, CAPTION, title);
	} else if(db == "wave"){
		content = "<small><b>Filter &gt; Distort &gt; Wave</b></small>";
		title = "Distortion Wave";
		overlib(content, CAPTION, title);
	} else if(db == "wind"){
		content = "<small><b>Filter &gt; Stylize &gt; Wind</b></small>";
		title = "Wind";
		overlib(content, CAPTION, title);
	} else if(db == "zigzag"){
		content = "<small><b>Filter &gt; Distort &gt; ZigZag</b></small>";
		title = "ZigZag";
		overlib(content, CAPTION, title);
	}
	/****** MISC AREA ******/
	else if(db == "ft_gradient"){
		content = "<center><b>After selecting Reflected Gradient, click on the down arrow in the Red box (Step 1), then click on the gradient type in the neon green box (Step 2).<br><img src="+ img_root +"Misc/gradient-type.jpg></center>";
		title = "Gradient Type - Foreground-to-Transparent";
		overlib(content, CAPTION, title);
	}/*else if(db == ""){
		content = "";
		title = "";
		overlib(content, CAPTION, title);
	}*/else {
		content = "<small>Not in database. Please e-mail marf@infinitedesigns.org and tell him this rollover is not working</small>";
		title = "Not in Database";
		overlib(content, CAPTION, title);
	}
	return 0;
}