
/***********************************************
* Random Content Colors script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//specify list of random background colors to apply to CSS class "randomcolor"
//For each entry, you can optionally specify a text and link color via the syntax:
// "BackgroundColor:TextColor" OR "BackgroundColor:TextColor:LinkColor"
var randombgcolors=[/* "green:white:yellow", */ "#ffff33", "#fefdf3", "#33ffcc"]

var rbcssrule=""
var randomnum=Math.floor(Math.random()*randombgcolors.length)
if (randombgcolors[randomnum].indexOf(":")!=-1){
rbcssrule="background-color: "+randombgcolors[randomnum].split(":")[0]+";"
rbcssrule+="border-bottom-color: "+randombgcolors[randomnum].split(":")[0]+";"
}
else
rbcssrule="background-color: "+randombgcolors[randomnum]+";"

document.write('<style type="text/css">\n')
//document.write('.thumb{'+rbcssrule+'}\n')
document.write('.thumb-slide{'+rbcssrule+'}\n')
document.write('#top-shelf{'+rbcssrule+'}\n')
document.write('#top-link:hover{'+rbcssrule+'}\n')
//if (randombgcolors[randomnum].split(":").length==3) //if link color specified
document.write('#navigation a:hover {border-bottom-color:'+randombgcolors[randomnum].split(":")[0]+';}\n')
document.write('<\/style>')

