function showFotobabble (divId, fotobabbleId, autoPlay, baseUrl) {
    showFotobabbleSized(divId, fotobabbleId, "", autoPlay, baseUrl, 400, 600);
}

function showFotobabbleSized (divId, fotobabbleId, title, autoPlay, baseUrl, h, w) {
// This method displays the fotobabble identified by fotobabbleId, in the div with id divId.
// Parameters:
// divId - the id of the div to display the fotlocalhostobabble in
// fotobabbleId - the id of the fotobabble to display
// autoPlay - true if the fotobabble should play immediately, false if the user should click to play

    document.getElementById(divId).innerHTML = '<h1 class="babbleTitle">'+title+'</h1><br/>' 
                               + '<object width="'+w+'" height="'+h+'"> '
				               +'<param name="movie" value="'+baseUrl+'/mediafiles/templates/basicslideshow/fb.swf"></param>'
				               +'<param name="allowFullScreen" value="true"></param>'
                                +'<param name="bgcolor" value="#000000"></param>'                                                    
                                +'<param name="wmode" value="transparent"></param>'                                                    
				               +'<param name="allowscriptaccess" value="always"></param>'
				               +'<param name="FlashVars" value="autoPlay=' + autoPlay + '&remoteXML=true&appURL='+baseUrl+'&id='+fotobabbleId+'&increment=true"/>'
				               +'<PARAM NAME=BASE VALUE="'+baseUrl+'"/>'
				               +'<embed src="'+baseUrl+'/mediafiles/templates/basicslideshow/fb.swf"'
				               +'  type="application/x-shockwave-flash"'
				               + ' FlashVars="autoPlay=' + autoPlay + '&remoteXML=true&appURL='+baseUrl+'&id='+fotobabbleId+'&increment=true"'
				               + ' BASE="'+baseUrl+'"'
				               +'  allowscriptaccess="always" wmode="transparent" bgcolor="#000000"'
				               +'  allowfullscreen="true"'
				               +'  width="'+w+'"'
				               +'  height="'+h+'"></embed>'
				               +'</object>'
  }

function editFotobabble (divId, fotobabbleId, env) {

}

function showFotobabbleSlideshow (divId, username, tag) {
}



function openOverlay(overlay, modal) {
    Effect.Appear(overlay, {duration:0.1});
    if (modal) {
        Effect.Appear('overlayBackground', {duration:0.1});

    }
}

function closeOverlay(overlay, modal) {
    Effect.Fade(overlay, {duration:0.1});
    if (modal) {
        Effect.Fade('overlayBackground', {duration:0.1});
    }
}

