window.onresize = function(event) {
	init_dw_Scroll()
}


setInterval(function(){
//CUT LINE

var cutLine_h = 1090;
var cutLine_msk = 172;
var clearH = cutLine_h-cutLine_msk
if(scr !== undefined){
	var cutLine_Y = (Math.abs(scr.x)*clearH)/Math.abs(scr.maxX);
}

if(document.getElementById("line_l") !== null || document.getElementById("line_r") !== null){
document.getElementById("line_l").style.marginTop = -cutLine_Y+'px';
document.getElementById("line_r").style.marginTop = cutLine_Y-clearH+'px';	
}

},10)

// if code supported, link in the style sheet and call the init function onload
if ( dw_scrollObj.isSupported() ) {
    //dw_writeStyleSheet('css/scroll.css');
    dw_Event.add( window, 'load', init_dw_Scroll);
}

/*function getSectionFolder(){
	var u=document.location.href.split("/"); 
	return u[u.length-3];

}
function setScrPos(){
	document.cookie="scr="+scr.x+","+getSectionFolder()+"; path=/"; 
}
function getScrPos(){	
	var scrPos = document.cookie.split("=")[1];
	
	if(getSectionFolder() == scrPos.split(",")[1]){
		scr.on_scroll_start(scr.x,scr.y);
		scr.shiftTo(scrPos.split(",")[0],scr.y);
		scr.on_scroll(scrPos.split(",")[0],scr.y);
	}
}*/
