// ===============================================
//       6 Times 9 Drop Shadow  (JavaScript)
// ===============================================
//          Version "Alpha"  (2007-03-22)
//
//  http://www.6times9.com/javascript/dropshadow/
//
//         Copyright 2007 Richard Winskill
// ===============================================

function dropshadow(){
	var div=""
	shadowdivs=document.getElementsByTagName("div") //Identify every DIV
	for (div=0; div<shadowdivs.length; div++){ //Go through the array
		if(shadowdivs[div].className=="shadow"){ //Pick out the DIVs with the CLASS of "shadow"
			text=shadowdivs[div].innerHTML  //Extract the content of the DIV
			shadowdivs[div].className="outer" //Set the CLSS to "outer"
			shadowdivs[div].innerHTML="<div class=\"inner\">"+text+"<\/div>" //Put the text back in wrapped in an "inner" CLASS DIV
		}
	}
}

//Handle other window.onload's
var prevonload=window.onload;
if(typeof(prevonload)=="function"){window.onload=function(){prevonload();dropshadow()}; }else{ window.onload=function(){dropshadow()}; }
