function teclaenter() {
if(event.keyCode == 13) {
}
}
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,status=no' );
}
function displayWindoww1(url, width, height) {
var Win = window.open(url,"displayWindoww1",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,status=no' );
}
function displayWindoww2(url, width, height) {
var Win = window.open(url,"displayWindoww2",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,status=no' );
}
function displayWindoww3(url, width, height) {
var Win = window.open(url,"displayWindoww3",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,status=no' );
}
function displayWindoww4(url, width, height) {
var Win = window.open(url,"displayWindoww4",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,status=no' );
}

function displayWindowbarras(url2, width, height) {

var Winb = window.open(url2,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,status=yes' );

}
function displayWindowradio(urlradio, width, height) {

var Win = window.open(urlradio,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,status=no' );

}
function prepararbusqueda()
{
document.formbusqueda.q.value=document.formbusqueda.q.value+" noticia.php3 site:narceadigital.com";
}
function prepararbusquedaenter(e)
{
tecla = (document.all) ? e.keyCode : e.which;
if (tecla==13) 
{
document.formbusqueda.q.value=document.formbusqueda.q.value+" noticia site:www.narceadigital.com";
}


}

function borrarbusqueda()
{
document.formbusqueda.q.value="";
}

function lanzarEncuesta()
{ 


for (i = 0; i < 4; i++){
if (document.formEncuesta.vote_for[i].checked == true){
vote_for = document.formEncuesta.vote_for[i].value; }
}
action = document.formEncuesta.action.value;

   window.open("encuesta.html?action="+action+"&vote_for="+vote_for,"ventana1","width=170,height=230,scrollbars=yes") 
   
 
}
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
