/**
 * Include script for Aerodynamics website.
 * 
 * @author R.J.T. de Vries <rdevries@thirdwave.nl>
 * @version 1.00, 04/26/2007
 * @access public
 * @package Aerodynamics
 */
 
//------------------------------------------------------------------------------
// PHASE I: INCLUDE ALL NECESSARY JAVASCRIPT FILES.
//------------------------------------------------------------------------------
document.write("<script src='/cms/jscripts/cms.event.js'></script>");
document.write("<script src='/cms/jscripts/cms.functions.js'></script>");
document.write("<script src='/inc/jscripts/ddMenus.js'></script>");
document.write("<script src='/inc/jscripts/Photoalbum.js'></script>");
document.write("<script src='/inc/jscripts/Hotnews.js'></script>");
document.write("<script src='/inc/jscripts/Rubrieken.js'></script>");
document.write("<script src='/videoplayer/ufo.js'></script>");

//------------------------------------------------------------------------------
// PHASE II: INITIALIZATION FUNCTION, CALLED ON DOCUMENT LOAD EVENT
//------------------------------------------------------------------------------

/**
 * Instance of ddMenus object.
 * @var object ddmenus
 * @access global
 */
var ddmenus;

/**
 * Instance of the Hotnews object.
 * @var object hotnews
 * @access global
 */
var hotnews = null;

/**
 * Instance of the Rubrieken object for the thumbnail overview.
 * @var object photoalbumTabs
 * @access global
 */
var photoalbumTabs = null;

/**
 * Instance of the Photoalbum object, taking care of handling a click on a thumbnail.
 * @var object photoalbum
 * @access global
 */
var photoalbum = null;

/**
 * Instance of the Rubrieken object for the rubrieken in the 2nd column.
 * @var object rubriekenSmall
 * @access global
 */
var rubriekenSmall = null;

/**
 * Instance of the Rubrieken object for the overview of rubriek-articles in the
 * 1st column.
 * @var object rubriekenOvv
 * @access global
 */
var rubriekenOvv = null;

/**
 * Instance of Main object.
 * @var object main
 * @access global
 */
var main;

/**
 * Initialize website. Called from <body> tag.
 *
 * Starts with calling the ddinit() function which initializes the dropdown
 * menus in the website.
 * 
 * @return 	void
 * @access	global
 */
function init() {
	var title;

	hotnews = new Hotnews;
	hotnews.init();
	set_select_values();
} // init()

/**
 * Function to use for bookmarking website.
 * 
 * @param 	string	url
 * @param		string	title
 * @return 	global
 */
function bookmark(url, title) {
	if ( !url ) url = document.location.href;
	if ( !title ) title = document.title;
	if ( document.all ) {
		window.external.AddFavorite(url, title);
	} else {
		alert("Gebruik CTRL-D om deze pagina aan je favorieten toe te voegen.");
	}		
} // bookmark()

window.onload = init;

/* end of include script */