/**
* mauro el loco del javascript 
*/

/*function highlite(id){
	if(document.getElementById(id).bgColor=="#fefff0"){
		document.getElementById(id).bgColor="#ffffff";
	}
	else{
		document.getElementById(id).bgColor="#fefff0";	
	}
}*/

function showimage(url,wname,width,height){

        var pop = window.open('','','left='+((screen.width - width)*.5)+',top='+((screen.height - height)*.5)+',width='+width+',height='+height+',toolbar=0,resizable=0,statusbar=0');
        pop.document.open("text/html", "replace");
        pop.document.write("<html><head><title>"+wname+"</title></head><body><img src="+url+"></body></html>");
        pop.document.body.style.margin = 0;
        pop.document.close();
        pop.focus();
}
function open_popup(url, wname, width, height){
        var params='left='+((screen.width - width)*.5)+',top='+((screen.height - height)*.5)+', width='+width+',height='+height+',toolbar=0 ,resizable=0 ,scrollbars=1';
        var pop = window.open(url,'',params);
        pop.focus();
}


function toggle_hidden(id){
    
    if(document.getElementById(id).style.display=="none"){
        document.getElementById(id).style.display="";   
    }
    else{
        document.getElementById(id).style.display="none";
    }
}
function toggle_more_less(id){
    var _image = document.getElementById(id);
    if(_image.src.indexOf("more.gif")!=-1){
        _image.src = "theme/less.gif";
    }
    else{
        _image.src = "theme/more.gif";
    }
}

function toggle_up_down(id){
    var _image = document.getElementById(id);
    if(_image.src.indexOf("down.gif")!=-1){
        _image.src = "theme/up.gif";
    }
    else{
        _image.src = "theme/down.gif";
    }
}
function hide(id){
    document.getElementById(id).style.display="none";
}





