// JavaScript Document
function ontop() {
this.style.zIndex=100;
}

/*
var table = document.getElementById("deviantart"); 
var cells = table.getElementsByTagName("li"); 
for (var i = 0; i < cells.length; i++) { 
    status = cells[i].getAttribute("status"); 
cells[i].style.width = cells[i].getElementsByTagName('a')[0].getElementsByTagName('img')[0].width;
}
*/


function OperaDivWidth(theClass) { 
//Create an array 
var allPageTags = new Array(); 
 //Populate the array with all the page tags 
 var allPageTags=document.getElementsByTagName("*"); 
 //Cycle through the tags using a for loop 
 for (k=0; k<allPageTags.length; k++) { 
 //Pick out the tags with our class name 
 if (allPageTags[k].className==theClass) { 
 //Manipulate this in whatever way you want 
var table = allPageTags[k]; 
var cells = table.getElementsByTagName("li"); 
for (var i = 0; i < cells.length; i++) { 
    status = cells[i].getAttribute("status"); 
cells[i].style.width = cells[i].getElementsByTagName('a')[0].getElementsByTagName('img')[0].width;
}
// allPageTags[i].style.display='none'; 
 } 
 } 
} 

