// Javascript document

	// Include Scripts in Library
	function include(script_filename) {
		document.write('<' + 'script');
		document.write(' language="javascript"');
		document.write(' type="text/javascript"');
		document.write(' src="' + script_filename + '">');
		document.write('</' + 'script' + '>');
	}

	/*
var template = 'templates/le_template/js/';   
	
	// Create Library (include(template+'');)
	
	include(template+'mootools.js');
	
	include(template+'sifr.js');
	include(template+'sifr-addons.js');
	
	include(template+'slimbox.js');
	
	include(template+'styleswitcher.js');
	
*/
	
	// Popups //
	
	function popUp(URL, width, height) {
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, 'popup', 'toolbar=0,location=0,menubar=0,resizable=0,width=" + width + ",height=" + height + ",left=470,top=200');");
	}
	
	
	// Suckerfish menu for IE //
	
	sfHover = function() {
		var sfEls = document.getElementById("mainlevel").getElementsByTagName("li");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", sfHover);
	
	
	// Bookmarks Functionality //
	
	function bookmark_us(url, title) {

	if (window.sidebar) // firefox
		window.sidebar.addPanel(title, url, "");
	else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	}
	else if(document.all)// ie
		window.external.AddFavorite(url, title);
	}
	
	//alert('functions.js loaded successfully');
	

