var dropped= new Array(6) 
for (x=1; x<=10; x++)
{
dropped[x]=0;
} 
function verif(param,but,nr)
{  z = 0;
for (x=1; x<=10; x++)
{  
  if(dropped[x]==1){   
  y = 'text' + x;
  dropped[x]=0;
  if(x == nr){z = 1;}
  Effect.BlindUp(y);
  document.getElementById('pic' + x + '1').style.display='block';
     document.getElementById('pic' + x + '2').style.display='none'; 
     //document.getElementById(but).style.background='url(images/sag2.jpg)';
     
  }
}
 
if(z == 0){
 if(dropped[nr]==0)
	{ dropped[nr]=1;
	 Effect.BlindDown(param,'slide');
	 document.getElementById(but).style.background='url(images/sag2.jpg)';
     document.getElementById('pic' + nr + '1').style.display='none';
     document.getElementById('pic' + nr + '2').style.display='block';
	 
	}
 else {    
	   Effect.toggle(param,'slide');
 	   document.getElementById(but).style.background='url(images/sag.jpg)';
	   dropped[nr]=0;
	   }   
 }
/*obj1=document.getElementById('stanga').offsetHeight;
obj2=document.getElementById('dreapta').offsetHeight;
alert(obj1);	
alert(obj2);
if(obj1 > obj2)
	{alert('aaaaaaa');
	 document.getElementById('main').style.backgroundColor='#181410';}
else {document.getElementById('main').style.backgroundColor='#1f1a14';alert('nnn');}*/
}

function setH(a,b)
{

obj1=document.getElementById(a);
obj2=document.getElementById(b);
//obj3=document.getElementById('div3');
H=Math.max(obj1.offsetHeight,obj2.offsetHeight);
obj1.style.height=H+'px';
obj2.style.height=H+'px';
//obj3.style.height=H+'px';
}

function validate_flash()
{
if (AC_FL_RunContent == 0) {
							alert("This page requires AC_RunActiveContent.js.");
				} else {
					AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','0','height','0','id','banner','align','middle','src','banner','menu','false','quality','high','bgcolor','#000000','name','proartstudio','allowscriptaccess','sameDomain','allowfullscreen','true','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','todays' ); //end AC code
				}
}

function sifr_titlu()
{
//<![CDATA[-
/* Replacement calls. Please see documentation for more information. */

if(typeof sIFR == "function"){
// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({sSelector:".titlu h1", sFlashSrc:"scripts/bastardus.swf", sColor:"#ffffff",sBgColor:"transparent",sWmode : "transparent", width: "200px"}));
	sIFR.replaceElement(named({sSelector:".titlu_categorie", sFlashSrc:"scripts/bastardus.swf", sColor:"#f36d26",sBgColor:"transparent",sWmode : "transparent", width: "200px"}));
	sIFR.replaceElement(named({sSelector:".titlu_stire h1", sFlashSrc:"scripts/bastardus.swf", sColor:"#ffffff",sBgColor:"transparent",sWmode : "transparent", width: "200px"}));
	sIFR.replaceElement(named({sSelector:".titlu_categorie1", sFlashSrc:"scripts/bastardus.swf", sColor:"#ffffff",sBgColor:"transparent",sWmode : "transparent", width: "200px"}));

};

//]]>
}
