		function nav_overs(elem)
		{
			var pnav = document.getElementById(elem);
			
			var nav_items = pnav.getElementsByTagName('li');
			for(i=0;i<nav_items.length;i++){
				//dont try to make rollovers for images with no_rollover class
				if(nav_items[i].className != 'act'){
					nav_items[i].onmouseover=function(){this.className = 'act';}
					nav_items[i].onmouseout=function(){this.className = '';}
				}				
				
			}
			
			
			
		}
		
		
		timer = null;

		function fadeIn(id){
			if(timer) clearTimeout(timer);
			jQuery(id).fadeIn('fast');
		}

		function fadeOut(id){
			timer = setTimeout("doFade('"+id+"')",100);
		}

		function doFade(id){
			jQuery(id).fadeOut('fast');
		}
		
		
		function nav_overs(id,h,spd){
			jQuery('#'+id+' li').hover(function() {
        	jQuery(this).children('.link a').animate({ marginTop: -h }, spd);
      		}, function() {
       		jQuery(this).children('.link a').animate({ marginTop: -0 }, spd);          
      		});	
		}
		
		function btn_overs(cls){
			jQuery('.'+cls).hover(function() {
        	jQuery(this).children('.'+cls+' a').addClass('act');
      		}, function() {
       		jQuery(this).children('.'+cls+' a').removeClass('act');         
      		});	
		}
		
		function feat_image(img){
			jQuery('#bgimg').attr("src",img);
		}
		
		function show_text(id){
			jQuery('#'+id).click(function () { 
      		jQuery('#rightbar').removeClass('hide'); 
   			});
   		}
   		
   		function hide_text(id){
			jQuery('#'+id).click(function () { 
      		jQuery('#rightbar').addClass('hide'); 
   			});
   		}
   		
   		function scroll_pane(id){
   			jQuery('#'+id).jScrollPane();
   		}
   		
   		function hide(id){
   			jQuery('#'+id).addClass('hide');
   		}
