/// PIC SWITCHER
function switch_pic(pic_id,path,c) {
	w = document.getElementById("pic_zoom");
	w_c = document.getElementById("pic_zoom_content");
	w_c.innerHTML="";
	w.style.display="block";
	w_c.innerHTML=c+"<br/><a href='javascript:close_switch_pic()'><img src='"+path+"' border='0' /></a>";
}


function close_switch_pic() {
	w = document.getElementById("pic_zoom");
	w.style.display="none";
}


var go_on_top = function(id,mode) {
    var hH = jQuery('#header').height();                           
    jQuery('#column_1').css({
       'overflow' : 'auto',
       'position'  : 'relative',
       'height' : (jQuery(window).height()-hH)
       
    }).scrollTop(jQuery('#'+id).offset().top-hH);
    //.animate({scrollTop:jQuery('#'+id).offset().top-hH},800);
};      


/*
//////////////////////////////////////////////////////////////////////
// display activ nav element
var id = "";
var aktiv = "";
var mode = 0;
var top_h = 0;
function go_on_topOLD(id,mode) {
	if(id) {
		// INIT
		//if(document.documentElement.clientHeight != top_h) mode=0;
		top_h = document.documentElement.clientHeight;
		e = document.getElementById(id);
		if(!e) return false;
		n = document.getElementById("column_1");
		f = document.getElementById("footer");
		// SET NEW STYLES
		c_h=document.documentElement.clientHeight-n.offsetTop;
		// wenn seite nicht scrollt 
		if(document.documentElement.clientHeight>=document.body.clientHeight) {
			c_h-=f.clientHeight+2;
		}
		n.style.height=c_h+"px";
		n.style.overflow="auto";
		// DEFINE NEW ATTRIBUTES
		e_h = e.offsetTop;
		if(!document.all) 	{// firefox...
			e_h-=n.offsetTop; 	
			mode=0
		}
		else	{// ie
			e_h-=5; 			
		}
		// warte eine millisekunde... bis das fenster auch wirklich resized ist... is so ;)
		if(mode!=1)	aktiv = window.setInterval("set_att()", 1);
	}
}
// SET NEW ATTRIBUTES
var old_scroll;
function set_att() {
	old_scroll=n.scrollTop;
	n.scrollTop+=5;

	if(n.scrollTop>=e_h || n.scrollTop == old_scroll) {
		window.clearInterval(aktiv);
	}
}
  */
