

	 $(document).ready(function() {        
     
      $("#introvideo").hide();
      $("#demovideo").hide();
      $("#close_bu").hide();
      $("#valueprop").hide();
      
     $(function() {
        $("#showcase").showcase({
        css: { width: "566px", height: "168px" },
        animation: { type: "fade",interval: 15000 },
        images: [
        { url:"/images/slide1.png",description:"Bime is a browser based business intelligence solution everyone can use.Start small, connect all your data and answer deep business questions in minutes. Then enlighten your partners & everyone in your organisation.Bime is a perfect balance of power & simplicity to help your organisation make better decisions." },
        { url:"/images/slide2.png",description:"Connect all your on-site data: spreadsheets, databases and OLAP servers. Connect all your online data sources: Salesforce, Amazon SimpleDB, Google Spreadsheets and more. The great news is you can mix any of them on the fly. Bime may just be the missing link between the cloud & the ground."},
        { url:"/images/slide3.png",description:"Your data has something to say and Bime helps you to hear it. You have the plot, we provide everything else: incredible data visualizations & a powerful calculations engine will put your data to the forefront of your decision making scene. 321 Action!"},
        { url:"/images/slide4.png",description:"Create, arrange, filter, zoom, secure, play, refresh, interact, publish, embed & really enjoy dashboards. All created by you alone, armed with a mouse in just a few clicks. No need for weeks of work by a dedicated team. We have already done that work for you." }],
        navigator: {
            position:"bottom-left",
             orientation:"horizontal",
             css: {
                padding:"6px",
                margin:"25px 0px 0px 0px" }
            },
        titleBar: {enabled:false, css: { height:"25px" } }
   		 });
	});
	
	$("#intro_bu").click(function(){
	  $("#showcase").hide();
	  $("#demovideo").hide();
	 $("#close_bu").show();
	  $("#introvideo").show();
	  
	  var flashvars = {};
	  var params = {allowFullScreen: "true",wmode:"transparent"};
	  var attributes = {};
	  swfobject.embedSWF("/swf/video_intro_en.swf", "introvideo", "709", "440", "9.0.0", false, flashvars, params, attributes);
	  return false;

	});
	
	$("#demo_bu").click(function(){
	  $("#showcase").hide();
	  $("#introvideo").hide();
	  $("#close_bu").show();
	  $("#demovideo").show();
	  
	  var flashvars = {};
	  var params = {allowFullScreen: "true",wmode:"transparent"};
	  var attributes = {};
	  swfobject.embedSWF("/swf/video_demo_en.swf", "demovideo", "709", "440", "9.0.0", false, flashvars, params, attributes);
	  return false;

	});
	
	$("#close_bu").click(function(){
	  $("#demovideo").hide();
	  $("#introvideo").hide();
	  $("#close_bu").hide();
	  $("#showcase").show();
	});

   
 }); 

