var gradientshadow={}
gradientshadow.depth=6 //Depth of shadow in pixels
gradientshadow.containers=[]

gradientshadow.create=function(){
var a = document.all ? document.all : document.getElementsByTagName('*')
for (var i = 0;i < a.length;i++) {
	if (a[i].className == "shadow") {
		for (var x=0; x<gradientshadow.depth; x++){
			var newSd = document.createElement("DIV")
			newSd.className = "shadow_inner"
			newSd.id="shadow"+gradientshadow.containers.length+"_"+x //Each shadow DIV has an id of "shadowL_X" (L=index of target element, X=index of shadow (depth) 
			if (a[i].getAttribute("rel"))
				newSd.style.background = a[i].getAttribute("rel")
			else
				newSd.style.background = "black" //default shadow color if none specified
			document.body.appendChild(newSd)
		}
	gradientshadow.containers[gradientshadow.containers.length]=a[i]
	}
}
gradientshadow.position()
window.onresize=function(){
	gradientshadow.position()
}
}

gradientshadow.position=function(){
if (gradientshadow.containers.length>0){
	for (var i=0; i<gradientshadow.containers.length; i++){
		for (var x=0; x<gradientshadow.depth; x++){
  		var shadowdiv=document.getElementById("shadow"+i+"_"+x)
			shadowdiv.style.width = gradientshadow.containers[i].offsetWidth + "px"
			shadowdiv.style.height = gradientshadow.containers[i].offsetHeight + "px"
			shadowdiv.style.left = gradientshadow.containers[i].offsetLeft + x + "px"
			shadowdiv.style.top = gradientshadow.containers[i].offsetTop + x + "px"
		}
	}
}
}

if (window.addEventListener)
window.addEventListener("load", gradientshadow.create, false)
else if (window.attachEvent)
window.attachEvent("onload", gradientshadow.create)
else if (document.getElementById)
window.onload=gradientshadow.create
	
	function modifycodeover1() {
		document.arrow1.src = "public/img/but11.jpg";
		document.arrow1.style.paddingTop = '6px';
		document.getElementById("Rcont1").style.color = "rgb(187,20,27)";
	}
	function modifycodeout1() {
		document.arrow1.src = "public/img/but1.jpg";
		document.arrow1.style.paddingTop = '6px';
		document.getElementById("Rcont1").style.color = "black";
	}
	function modifycodeover2() {
		document.arrow2.src = "public/img/but31.jpg";
		document.arrow2.style.paddingTop = '6px';
		document.getElementById("Rcont2").style.color = "rgb(187,20,27)";
	}
	function modifycodeout2() {
		document.arrow2.src = "public/img/but3.jpg";
		document.arrow2.style.paddingTop = '6px';
		document.getElementById("Rcont2").style.color = "black";
	}
	function modifycodeover3() {
		document.arrow3.src = "public/img/but11.jpg";
		document.arrow3.style.paddingTop = '6px';
		document.getElementById("Rcont3").style.color = "rgb(187,20,27)";
	}
	function modifycodeout3() {
		document.arrow3.src = "public/img/but1.jpg";
		document.arrow3.style.paddingTop = '6px';
		document.getElementById("Rcont3").style.color = "black";
	}
	function modifycodeover4() {
		document.arrow4.src = "public/img/but21.jpg";
		document.arrow4.style.paddingTop = '6px';
		document.getElementById("Rcont4").style.color = "rgb(187,20,27)";
	}
	function modifycodeout4() {
		document.arrow4.src = "public/img/but2.jpg";
		document.arrow4.style.paddingTop = '6px';
		document.getElementById("Rcont4").style.color = "black";
	}
