			flowplayer("player", "flowplayer-3.0.3.swf",{

			plugins: { 
                   content: { 
                   url: 'flowplayer.content-3.0.2.swf', 
				   left:10,
				   top: 10,
                   height: 220,
				   width: 450, 
                   padding:10, 
                   backgroundColor: '#112233', 
                   backgroundGradient: [0.1, 0.1, 1.0], 
				   display: 'none', 
               
                   html: '<p class="">To select fabrics and colours for your furniture, please use the menu on the right. ',
				   onClick: function() {   
				             this.hide();       
							   } 
							 
       } ,
	   content2: { 
                   url: 'flowplayer.content-3.0.2.swf', 
				   
				   bottom: 30,
                   height: 50,
				   width: 500, 
                   padding:10, 
                   backgroundColor: '#112233', 
                   backgroundGradient: [0.1, 0.1, 1.0], 
				   display: 'none', 
               
                   html: '<p class="">SPECIAL OFFER!</p>Free making on made-to-measure curtains in famous name fabrics: <a href="http://www.greatcurtains.co.uk/" target="_blank">Click here!</a>',
				   onClick: function() {   
				             this.hide();       
							   } 
							 
       } 
} ,
//clip: { 
//onCuepoint: [[{time:2000,duration:2000}],function(clip) { 
//var plugin = this.getPlugin("content");
//plugin.show(1000).setHtml($("").html()); 
//}] 
//}
clip : { 
 
    onCuepoint: [ 
        // setup last four cuepoints with custom properties 
      [ 
         4,  
		 {time: 420000, duration: 3000, title: 'Great Curtains', url:'http://www.greatcurtains.co.uk/'} ,
         {time: 20000, caption: 'End of advert'} ,
		 {time: 25000, caption2: 'New advert'},
         {time: 35000, caption3: 'Goodbye advert'}
      ], 
       
      // cuepoint argument can have properties 
      function(clip, cuepoint) { 
         
         if (cuepoint.url) { 
                 var plugin = this.getPlugin("content");
                 plugin.show();
         } else if (cuepoint.captionx) { 
		  var plugin = this.getPlugin("content");
              plugin.hide();
            } 
			else if (cuepoint.caption2x) { 
		  var plugin2 = this.getPlugin("content2");
              plugin2.show();
            } 
			else if (cuepoint.caption3x) { 
		  var plugin2 = this.getPlugin("content2");
              plugin2.hide();
            } 
      } 
   ] 
}





});
		
