window.onload = function() {
//	init_uploader();
	startList();
}
// INITIALISE MENU 
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}

// INITIALISE TINY MCE
tinyMCE.init({
	mode : "textareas",
	theme : "advanced",
	editor_selector : "mceEditor",
	language: "nl",
	plugins: "fullscreen,paste,save",
	theme_advanced_buttons1 : "save,cut,copy,pasteword,separator,bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink,image,code,fullscreen",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_resizing : true,
	theme_advanced_resize_horizontal : false,
	width: "100%"
});

// INITIALISE SWFUPLOAD
var init_uploader = function() {
    swfu = new SWFUpload({

        //many more options which you must determine for yourself - see the SWFUpload docs and examples
		upload_script : upload_url,
		target : "SWFUploadTarget",
		flash_path : swfupload_url,
		allowed_filesize : 30720,	// 30 MB
		allowed_filetypes : "*.jpg;*.doc;*.pdf",
		allowed_filetypes_description : "All files...",
		browse_link_innerhtml : "Bestanden toevoegen",
		upload_link_innerhtml : "Uploaden",
		browse_link_class : "swfuploadbtn browsebtn",
		upload_link_class : "swfuploadbtn uploadbtn",
		flash_loaded_callback : 'swfu.flashLoaded',
		upload_file_queued_callback : "fileQueued",
		upload_file_start_callback : 'uploadFileStart',
		upload_progress_callback : 'uploadProgress',
		upload_file_complete_callback : 'uploadFileComplete',
		upload_file_cancel_callback : 'uploadFileCancelled',
		upload_queue_complete_callback : 'uploadQueueComplete',
		upload_error_callback : 'uploadError',
		upload_cancel_callback : 'uploadCancel',
		auto_upload : false
    });
    swfu.loadUI();
};



