/* JS for OTK Template */

jQuery(document).ready(function($) {
    // $() will work as an alias for jQuery() inside of this function

/*
	jQuery("#dropmenu ul").css({display: "none"}); // Opera Fix 
	jQuery("#dropmenu li").hover(function(){ 
        jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(268); 
	},function(){ 
        	jQuery(this).find('ul:first').css({visibility: "hidden"}); 
	});  
*/
	$('.trigtarget').hide();

	$('a.trig').click(function(){
		target = $(this).attr('rel');

		targ_cont = $('#'+target).slideToggle(100);

		return false;
	});

	$('#dropmenu > li.page-item-90 > a').css('color','#ff0');

/*
	$('.scrollPage').click(function() {
		var elementClicked = $(this).attr("href");
		var destination = $(elementClicked).offset().top;
		$("html:not(:animated),body:not(:animated)").animate({scrollTop: destination-20}, 500);
		return false;
	});
*/

});


/* Menu fix for IE */

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("dropmenu");
		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", "");
				}
			}
		}
	}
}
window.onload=startList;