
$(document).ready(function(){
if(document.getElementById("player") != null)
		    flowplayer("player", {allowfullscreen: 'false', src: 'http://www.ipix.ro/Documents/flowplayer-3.2.5.swf', wmode: 'transparent'}, {
	            canvas: {
					backgroundColor:'transparent',
					backgroundGradient: 'none'
				},
				
				/*clip: {
					autoPlay: true,
					autoBuffering: true
				},*/
				
				
				onMouseOver: function() {
					var content = this.getPlugin("myContent"); 
					content.show();
				},
	
				// when mouse is exited remove exposing
				onMouseOut: function() {
					var content = this.getPlugin("myContent"); 
					content.hide();
				},
				
				onLoad: function() {
					var content = this.getPlugin("myContent"); 
					content.hide();
				},
				
				play: {
					label: null,
					replayLabel: ""
				},

				// use a minimalistic controlbar
				plugins:  {
					controls:  {
						backgroundGradient: 'none',
						backgroundColor: 'transparent',
						all:false,
						mute: true,
						play: true,
						scrubber:false
					},
					myContent: {
						// location of the plugin
						url: 'http://www.ipix.ro/Documents/flowplayer.content-3.2.0.swf',
						style: {
							'a': {
								color: '#0FFFFF',
								fontFamily: 'arial'
							},
							'a:hover': {
								color: '#000000',
								fontFamily: 'arial'
							}
						},
						// display properties
						top: 300,
						width: 150,
						zIndex: 2,
						backgroundGradient: 'high',
						html: '<p>Vrei IPIX Sales Agent pentru website-ul tau? <a href="http://www.ipix.ro/imobiliare_ipix_sales_agent_web_actor.aspx" target="_self">Click aici</a></p>'
					}
				}	
           });
		   $(function() {
			$( "#player" ).draggable({
				stop: function() {
					$("#player").addClass("player");
				}
				}
			);
		});
})
