window.onload = function () {
		if (self.dispCO) {
			dispCO();
			window.onresize = dispCO;
			jQuery(function()
			{
				jQuery('.scroll-pane').jScrollPane({showArrows:true, scrollbarWidth: 12, arrowSize: 16, dragMinHeight: 50 });
			});
		}
  }

function dispCO()
{
	if (parseInt(navigator.appVersion)>3) {
	 if (navigator.appName=="Netscape") {
	  winW = window.innerWidth;
	  winH = window.innerHeight;
	 }
	 if (navigator.appName.indexOf("Microsoft")!=-1) {
	  winW = document.body.offsetWidth;
	  winH = document.body.offsetHeight;
	 }
	}
	if (winW<1024 || winH<620) hideContent('comocean');
	else displayContent('comocean');
}
  
function preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function hideContent(id) {
  document.getElementById(id).style.display='none'; return null;
}

function displayContent(id) {
  document.getElementById(id).style.display='block'; return null;
}

function open_video()
{
	var win = new Window({className: "alphacube", width:568, height:428, zIndex: 100, resizable: true, title: "Vid&eacute;o de pr&eacute;sentation Ebhys", showEffect:Effect.Appear, hideEffect: Effect.Fade, draggable:true, wiredDrag: true});
	win.getContent().innerHTML= "<p id='preview'>The player will show in this paragraph</p>";
	//win.setStatusBar("Status bar info");
	win.showCenter();
	load_player();
}

function load_player()
{
	var s1 = new SWFObject('/flash/player.swf','player','560','420','9');
	s1.addParam('allowfullscreen','true');
	s1.addParam('allowscriptaccess','always');
	s1.addVariable('file','/video/video.flv');
	s1.addVariable('autostart','true');
	s1.write('preview');
}
