var nodeList = document.getElementsByTagName("div");
for (var i = 0; i <nodeList.length; i++){
if(nodeList[i].className=='page'){
nodeList[i].style.width=getClientWidth()+"px";
}
}



//bottom - to down
  var window_height=getClientHeight();
if(window_height>805){
  var paddingT=window_height-362;
  document.getElementById("footer").style.paddingTop=paddingT+"px";
  
//bookmarks - to line
  document.getElementById("items").style.height= paddingT+20+'px';
  document.getElementById("scrollable").style.height= paddingT+20+'px';
  
  for(var i=1; i<=3; i++){
        document.getElementById("bookmark"+i).style.marginTop="0px";
       document.getElementById("bookmark"+i).style.top=paddingT-170-3+"px";
       
	}
//visual
	if(!window.opera)
	document.getElementById("footer").style.paddingTop=paddingT+"px";
}



	$(function() {
		$("#scrollable").scrollable({horizontal:true});
	});
	

var nodeList = document.getElementsByTagName("div");
for (var i = 0; i <nodeList.length; i++){
if(nodeList[i].className=='page'){
nodeList[i].style.width=getClientWidth()+"px";
}
}
