function votefor(){

		 for (i=0; i<document.voteform.vote.length; i++)
		 {
            if (document.voteform.vote[i].checked==true)
            {
               window.open('vote.php?p=vote&vid='+ document.voteform.vote_id.value + '&item=' + document.voteform.vote[i].value,'vote','width=480,height=300,menubar=no,scrollbars=no,status=no,resizable=yes');
            }
         }
		

}
function playVideo(name,image)
{
	document.getElementById('player').href =  name;

	flowplayer("player", "swf/flowplayer-3.1.5.swf", {    
		playlist: 
		[                     
			{             
				url: 'flv/images/'+ image,              
				scaling: 'orig'         
			},                  

			{             
				autoPlay: false                                     
			}     
		]
		,
		plugins:  { 
			controls:  
			{             
				backgroundColor: '#E8E8E8',            
				backgroundGradient: 'none',                          
				progressColor: '#FF0000', 
	            bufferColor: '#254558'
			}
		} 
	}); 
}


function popup(url) 
{
 var width  = 594;
 var height = 300;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'comment', params);
 if (window.focus) {newwin.focus()}
 return false;
}

