
function swapImage(src, arr){

	newArr = arr.split(";");
	for(i=0; i<newArr.length; i++){
		if(src==newArr[i]){		
			if((i+1)==newArr.length)
				index = 0;
			else
				index = i+1;	
			document.getElementById('senderPic').src = newArr[index];
			break;
		}
	}

}

function lodFlashEmbedPlayer(){
	 flashembed("freevideo", 
	{
		src:'flowplayer/FlowPlayerLight.swf',
		width: 160, 
		height: 120, 
		loop:false
	},
	{config: {   
		autoPlay: false,
		autoBuffering: true,
		initialVolumePercentage:150,
		//hideControls: true,
		showFullScreenButton: true,
		showVolumeSlider: false,
		showScrubber: true,
		showMenu: false,
		showPlayButton: false,
		showMuteVolumeButton: true,
		controlsWidth: 270,
		progressBarAreaHeight: 30,
		progressBarHeight: 30,
		controlBarBackgroundColor:'0xff6699',
		initialScale: 'scale',
		//initialScale: 'fit',
		controlBarGloss:'high',
		controlsOverVideo:'ease',
		videoFile: '<? echo $freevideo; ?>'
	}} 
);
}
