//scroller Fix

//w00t!


//fixScroll function gets window and div parameters

function fixScroll(minHeight,divName){
  var wh = getWindowHeight(); // Window Height
  var d = document.getElementById(divName) // Get div element
		
 // alert((minHeight>wh) ? minHeight+'px': '100%');
  d.style.height = (minHeight>wh) ? minHeight+'px': '100%';
 // alert(d.style.height);

}

//this function resets the scrollTop, triggered onscroll
function getScroll(){
	//alert("w00t!");
	//d.onScroll(DocumentY());
}

//get the height of the window
function getWindowHeight() {
  var windowHeight = 0;
	
  if (typeof(window.innerHeight) == 'number')
    windowHeight = window.innerHeight;
	
  else {
		
    if (document.documentElement && document.documentElement.clientHeight)
      windowHeight = document.documentElement.clientHeight;
		
    else {
      if (document.body && document.body.clientHeight)
        windowHeight = document.body.clientHeight; }; };
				
  return windowHeight;
}

	//get the yoffset
	function DocumentY()
{
	if (document.documentElement && typeof(document.documentElement.scrollTop) == "number") // ie6 standards compliant mode 
		return document.documentElement.scrollTop;		
	else if (document.body && typeof(document.body.scrollTop) == "number") // dom 
		return document.body.scrollTop;
}

//scroll trigger
//window.onscroll = getScroll;