////////////////////////////////pentu rating//////////////////////////

function toate_blue(steluta){
	var i=1;
	for(i=1; i<=steluta; i++){
		document.getElementById('star'+i).src='images/star_blue.gif';		
		
	}
	
}
function reverse23(steluta) {
	for(i=1; i<=steluta; i++){
		document.getElementById('star'+i).src=document.getElementById('hid_star'+i).value;		
		
	}	
}
////////////////////////////////pentu rating//////////////////////////

var win=null; 
function NewWindow(mypage,myname,w,h,scroll,pos) 
{ 
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor		
	(Math.random()*((screen.height-h)-75)):100;} 
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;} 
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20} settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; win=window.open(mypage,myname,settings); 
} 



function comentarii() {
 document.getElementById('formular_comentarii').style.display='block';
 document.getElementById('comenteaza').style.display='none';
}

function kiki(img,ind,primul){	
	var img2=img.split(',');
	
	if(ind<img2.length){
		document.getElementById('top_news').innerHTML=img2[ind];
		ind++;
		setTimeout('kiki2(\''+img+'\',\''+(ind)+'\',\''+img2[0]+'\')',8000);
		}
	else{	
		document.getElementById('top_news').innerHTML=img2[0];
		setTimeout('kiki2(\''+img+'\',\'0\',\''+img2[0]+'\')',8000);
		}
	
	}

function kiki2(img,ind,primul){
	var img2=img.split(',');
	if(ind<img2.length){
		document.getElementById('top_news').innerHTML=img2[ind];
		ind++;
		setTimeout('kiki(\''+img+'\',\''+(ind)+'\',\''+img2[0]+'\')',8000);
		}
	else{
		document.getElementById('top_news').innerHTML=img2[0];
		setTimeout('kiki(\''+img+'\',\'0\',\''+img2[0]+'\')',8000);
		}
	}
