function get_page_height() 
{
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) 
  {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } 
  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
  {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } 
  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
  {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

	return myHeight;
}

function get_page_width() 
{
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) 
  {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } 
  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
  {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } 
  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
  {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

	return myWidth;
}

function init_scroll() 
{
   var h = (navigator.appName == 'Microsoft Internet Explorer' && navigator.userAgent.indexOf('MSIE 7') == -1) ? 206 : 206;
   var pheight = get_page_height();
   var pwidth = get_page_width();
   var logoW = 482;
   var logoH = 136;
//header      
   document.getElementById( 'header' ).style.width = (pwidth - 30) + 'px';
   document.getElementById( 'header' ).style.display='block';
   document.getElementById( 'header' ).style.height = (logoH) + 'px';
   
   document.getElementById( 'logo' ).style.width = (logoW) + 'px';
   document.getElementById( 'logo' ).style.height = (logoH) + 'px';
   document.getElementById( 'logo' ).style.left = ((pwidth - 980)/2) + 'px';
   
   document.getElementById( 'menuHor' ).style.width = (440) + 'px';
   document.getElementById( 'menuHor' ).style.left = (logoW + ((pwidth - 1000) / 2) + 58) + 'px';
//header

//scoll
   document.getElementById( 'container' ).style.top = (logoH) + 'px';
   document.getElementById( 'container' ).style.width = (pwidth) + 'px';
   document.getElementById( 'container' ).style.height = (pheight - logoH) + 'px';
   document.getElementById( 'container' ).style.display='block';
   
   var iNewHeight = document.getElementById('container').scrollHeight;
   
   document.getElementById( 'contain' ).style.width = (pwidth - 50) + 'px';
   document.getElementById( 'contain' ).style.height = iNewHeight + 'px';

   document.getElementById( 'footer' ).style.width = (pwidth - 50) + 'px';		
   document.getElementById( 'footer' ).style.display='block';
   
   document.getElementById( 'menuVert' ).style.height = (pheight - logoH) + 'px';	
   
   document.getElementById( 'content' ).style.width = (pwidth - 200) + 'px';
   
if (document.getElementById( 'carousel' ) != null)
   document.getElementById( 'carousel' ).style.left = ((pwidth - 820) / 2) + 'px';   
   
if (document.getElementById( 'prod_detail' ) != null)
   document.getElementById( 'prod_detail' ).style.left = ((pwidth - 820) / 2) + 'px';   
}

function couponcheck(str)
{
	if (str == "ja")
	{
		document.getElementById( 'bedrag' ).disabled = false;
		document.getElementById( 'eenheid' ).disabled = false;
		document.getElementById( 'coupontext' ).disabled = false;
	}
	
	if (str == "nee")
	{
		document.getElementById( 'bedrag' ).disabled = true;
		document.getElementById( 'eenheid' ).disabled = true;
		document.getElementById( 'coupontext' ).disabled = true;
	}
}
