window.addEvent('domready', function(){
 //pageInit();
 });
window.addEvent('load', function(){
 //Lightbox.init.bind(Lightbox);
 });

function popupError(txt){
 alert(txt);
 }
function resizeFlashDiv(h){
 h = parseInt(h);
 var curheight = parseInt($('content').style.height);
 var newheight = h + "px";
 if(h<curheight){
  var marginendval = curheight-h;
  }
 else{
  $('bbp').setAttribute("height", newheight);
  }
 var morphcontainer = new Fx.Morph('content',{
											   onUpdate:function(e){
											   if(h<curheight){$('footer').style.marginBottom = marginendval - h + $('content').offsetHeight;}
											   },
											   onComplete:function(e){
											   $('bbp').setAttribute("height", newheight);
											   var morph2 = new Fx.Morph('footer');
											   morph2.start({marginBottom: 0});
											   }
											   });
 morphcontainer.start({height: newheight});
 }

var flashvars = {};

var params = {};
params.play = "true";
params.menu = "false";
params.quality = "best";
params.wmode = "transparent";

var attributes = {};
attributes.id = "bbphead";

swfobject.embedSWF("header.swf", "myAlternativeHeader", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);


var flashvars = {};
flashvars.page = 0;

var params = {};
params.play = "true";
params.menu = "false";
params.quality = "best";
params.wmode = "transparent";

var attributes = {};
attributes.id = "bbp";

swfobject.embedSWF("main.swf", "myAlternativeContent", "100%", "420px", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
var url = window.location.toString();
if(url.indexOf("#")==-1){window.location = "#/HOME/";};

