	function show_corner(){
		document.getElementById('corner').style.left = 100+"px";(windowInnerWidth-30)+"px";//!!konstante padding-ausgleich
		document.getElementById('corner').style.visibility="visible";
	}

	function hide_corner(){
		document.getElementById('corner').style.visibility = "hidden";
	}

	function snap(snapped){

		if(snapped){
			
			if(snap_happened == 0){
				snap_sav_top = document.getElementById('props_block').offsetTop;
				snap_sav_height = document.getElementById('props_block').offsetHeight;
			}

			document.getElementById('props_block').style.top = '0px';
			document.getElementById('props_block').style.height=windowInnerHeight+"px";
		
			document.getElementById('props_block').style.zIndex = zconst_props_block_unsnapped;
			document.getElementById('slider_dets').style.zIndex = zconst_slider_dets_snapped;
			document.getElementById('props_snap_up').style.zIndex = zconst_props_snap_up_snapped;

			document.getElementById('props_snap_up').style.visibility = 'visible';

			document.getElementById('props_snap_up').style.top = (document.getElementById('props_path').offsetTop + 50)+'px';//!!konstante
			document.getElementById('props_snap_up').style.visibility = "visible";
			document.getElementById('props_snap_down').style.visibility = "hidden";

			document.getElementById('props').style.top = document.getElementById('props_block').offsetTop + document.getElementById('props_path').offsetHeight + document.getElementById('props_path').offsetTop + const_props_top + "px";

			snap_happened = 1;
		}
		else{
			document.getElementById('props_block').style.top = snap_sav_top+"px";
			document.getElementById('props_block').style.height = snap_sav_height+"px";

			document.getElementById('props_block').style.zIndex = zconst_props_block_unsnapped;
			document.getElementById('slider_dets').style.zIndex = zconst_slider_dets_unsnapped;
			document.getElementById('props_snap_up').style.zIndex = zconst_props_snap_up_unsnapped;

			document.getElementById('props_snap_up').style.visibility = "hidden";
			document.getElementById('props_snap_down').style.visibility = "visible";

			document.getElementById('props').style.top = document.getElementById('props_block').offsetTop + document.getElementById('props_path').offsetHeight + document.getElementById('props_path').offsetTop + const_props_top + "px";

			snap_happened = 0;
		}
		
		show_navmini();

		adjust_slider();

		adjust_slider_dets();
	}

	function show_props(){

		document.getElementById('props_block').style.top = document.getElementById('riders').offsetHeight+"px";
		document.getElementById('props_block').style.left = (document.getElementById('right').offsetLeft + document.getElementById('tab_view').offsetLeft)+"px";
	
		document.getElementById('props_block').style.height = "2000px";
	
		document.getElementById('props_block').style.width = (windowInnerWidth - document.getElementById('right').offsetLeft)-30+"px";//!!konstante				
	
		document.getElementById('props_block').style.borderLeft = "1px solid black";
		document.getElementById('props_block').style.borderTop = "";

		document.getElementById('props_block').style.zIndex = zconst_props_block_over;
		
		document.getElementById('props').style.top = document.getElementById('props_block').offsetTop + document.getElementById('props_path').offsetTop + document.getElementById('props_path').offsetHeight + const_props_top +"px";			

		if(props_visible) document.getElementById('props').style.visibility = 'inherit';
	}
	
	function props_close(){
		hide_props();

		if(snap_happened == 1){
			document.getElementById('props_block').style.top = snap_sav_top+"px";
			document.getElementById('props_block').style.height = snap_sav_height+"px";
		}
		
		snap_happened = 0;	
	}
	
	function hide_props(){	
		if(props_visible){
			document.getElementById('props_snap_up').style.visibility = "hidden";
			document.getElementById('props_snap_down').style.visibility = "hidden";
	
			document.getElementById('props_block').style.visibility = "hidden";
	
			hide_corner();
		
			props_visible = false;
			
			hide_navmini();	
		}
		
		adjust_slider();
		adjust_slider_dets();	
	}

	function pin(){
		if(pinned){
			pinned = false;
			document.getElementById('props_pin_icon').src='../icons/snap_win.gif';

			//show_corner();
		}
		else{
			pinned = true;
			document.getElementById('props_pin_icon').src='../icons/snap_win2.gif';

			hide_corner();
		}

		slidebar_top = 0;
		adjust_slider();
	}

	function props_shift(bool){
		if(bool){
			snap_shift_sav = actual_mouseY;
		}
		else{
			move_props(snap_shift_sav-actual_mouseY);

			snap_shift_sav = false;
		}

		return false;
	}

	function move_props(diff){

		var propsview_height = windowInnerHeight - document.getElementById('props_path').offsetHeight - const_props_top - document.getElementById('props_block').offsetTop;

		var props_top_unmoved = document.getElementById('props_path').offsetTop + document.getElementById('props_path').offsetHeight + const_props_top;

		var props = document.getElementById('props');

		var props_top = props.offsetTop;

		if(props_top+diff > props_top_unmoved){
			diff = props_top_unmoved - props_top;
		}
		else if(props_top_unmoved - props_top - diff > props.offsetHeight + 100 - propsview_height){
			diff = props_top_unmoved - props_top + propsview_height - 100 - props.offsetHeight;
		}

		props.style.top = (props_top+diff)+"px";
	}



