﻿/// <reference path="/javascript/$-1.4.1.min.js" />
/// <reference path="/javascript/$-ui-1.8.1.custom.min.js" />

// js/nojs
$("html").removeClass("nojs").addClass("js");

// sfHover
sfHover = function () {
	var sfEls = document.getElementById("topmenu").getElementsByTagName("LI");

	for (var i = 0; i < sfEls.length; i = i + 2) {

		sfEls[i].onmouseover = function () {

			this.className += " ie_hover";
		}
		sfEls[i].onmouseout = function () {
			this.className = this.className.replace(new RegExp(" ie_hover\\b"), "");
		}

	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

// escapeHTML
function escapeHTML(str) {
	var div = document.createElement('div');
	var text = document.createTextNode(str);
	div.appendChild(text);
	return div.innerHTML;
}

// init
$(function () {
	init();
});

function init() {

	// hideonclick
	$('body').click(function () {
		$('.hideonclick').fadeOut('7000');
	});

};




