function show(id,id2)
{
    var obj = document.getElementById(id2);
el = document.getElementById(id);
if (el.style.display == 'none')
{
              obj.firstChild.nodeValue="mai putine detalii";
el.style.display = 'block';
} else {
el.style.display = 'none';
              obj.firstChild.nodeValue="mai multe detalii";
}
}


function P7_ExpMenu(){ 
 if(navigator.appVersion.indexOf("MSIE")==-1){return;}
 var i,k,g,lg,r=/\s*p7hvr/,c,cs='p7hvr',bv='p7menubar';
 for(i=0;i<10;i++)
 {
	g=document.getElementById(bv);
	if(g){
		lg=g.getElementsByTagName("LI");
		if(lg)
		{
			for(k=0;k<lg.length;k++){
				lg[k].onmouseover=function(){
					c=this.className;
					cl=(c)?c+' '+cs:cs;
					this.className=cl;};
				lg[k].onmouseout=function(){
					c=this.className;
					this.className=(c)?c.replace(r,''):'';};
			}
		}
	}
	nn=i+1;
 }
}

    function showHTMLPreview(id,text) {
        var obj = document.getElementById(id);
	var obj2 = obj.childNodes;
if(obj) {
           if(obj2[1].firstChild.nodeValue=="mai multe detalii")
           {
              obj2[0].nodeValue = obj2[0].nodeValue + text;
              obj2[1].firstChild.nodeValue="mai putine detalii";
           }
           else if(obj2[1].firstChild.nodeValue=="mai putine detalii")
           {
var len = obj2[0].nodeValue.length - text.length;
obj2[0].nodeValue = obj2[0].nodeValue.slice(0,len);

              obj2[1].firstChild.nodeValue="mai multe detalii";
           }
        }
    }
	
	function showHTMLPreview2(img,txt,clasa) {
        var obj = document.getElementById("pictures");
        if(obj) {
            var html_img = document.createElement("img");
            html_img.className = clasa; 
            html_img.src = img;

//document.write(txt.firstChild.nodeValue);
            while(obj.hasChildNodes()) { obj.removeChild(obj.firstChild); }
            obj.appendChild(html_img);	
			}
            var text = document.getElementById("foto");
			text.firstChild.nodeValue = txt;

    }
