// JavaScript Document
window.onload = function(){ 
var refreshed_content = Array('!homepage'); 
// var refreshed_content = Array('!homepage','header','footer'); 
// the html-object with id "content" is our primary content area, 
// and will be animated. 
// the html-object with id "sidebar" is our secondary content area
// and will be refreshed without animation. 



bda.transitionTweenType = Tween.strongEaseInOut; 
// optional parameter 
// change the default transition type. 
// the default transition type is "Tween.regularEaseOut". 
// you can select "Tween.None" to disable the tweening. 

bda.transitionAlpha = true; 
// optional parameter 
// this parameter sets if the page should be faded in after parsing or not. 
// default true 

bda.calculateText = "Please wait, I'm parsing the page you requested."; 
// optional parameter 
// this parameter sets the text shown when parsing the page content. 
// default "Parsing images and other content..." 

bda.loadText = '<span id="loading">Loading content, please wait ...</span>';
// optional parameter 
// this parameter sets the text shown when loading a page. 
// default "Loading..." 

bda.errorText = "There has been an error."; 
// optional parameter 
// this parameter sets the text shown when an error occurs. 

bda.externalLocation = "I'm sorry, I can't parse content from an external location"; 
// optional parameter 
// this parameter sets the text shown when the user clicked a link to a website without one of the set content area's. 

bda.externalLocationClick = "Click here to open the requested page in a new window: [link]"; 
// optional parameter 
// this parameter sets the text shown to open a requested page in a new tab or window. 
// use "[link]" to display the link url in that place 

bda.imageLoadTimeout = 20; 
// optional parameter 
// this parameter sets the time in seconds to wait for images to load. 
// the page will open without the images loaded after this time. 
// default 20 

bda.imagesNotLoadedText = "Some images could not be loaded"; 
// optional parameter 
// this parameter sets the text shown when images cannot be loaded
// text will be shown for 3 seconds before the page will open 


bda.start(refreshed_content); // initiate the script 
} 