function writeArrow() {
  var windowheight = 0;
  var textheight = 0; 
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
      windowheight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
       windowheight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
      windowheight = document.body.clientHeight;
  }
  		var arrowposition = windowheight-180;
   		textheight = document.getElementById('content').offsetHeight;
  		var textheightact = textheight+43;
  		if (textheightact > windowheight) {
  		document.writeln ('<div id="arrow" style="position:absolute; z-index:20; right:220px; top:' + arrowposition + 'px"><img src="../../../templates/allcss/images/arrow-grey.png" /></div>' );  		}
  		
  }	


