function hSize() {
  var myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myHeight = document.body.clientHeight;
  }
  return myHeight;
}
function scrollit(a,b) {
 if (a==undefined) {a=150}
 if (b==undefined) {b=0}
 var ScrollTop = b; 
 var I = 0;
 if (b>0) {
 ScrollTop = document.body.scrollTop;
 if (ScrollTop == 0)
  {
  if (window.pageYOffset) {ScrollTop = window.pageYOffset;}
  else {ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0; }
  }
 }
 var boyut=hSize();
 if ((a==150) && (boyut<600))
 {for (I=1; I<=a; I=I+2){ parent.scroll(1,I)} }
 else if (a>150)
 {for (I=1; I<=a; I=I+3){ parent.scroll(1,ScrollTop+I)} } 
}

function RDisplay(d,q) {
if (q == undefined) {q = "d";}

if (q== "d") 
{
	if (document.getElementById(d).style.display == "block") 
	  document.getElementById(d).style.display = "none";
	else
	  document.getElementById(d).style.display = "block";
}
else if (q== "v")
{
	if (document.getElementById(d).style.visibility == "visible") 
	  document.getElementById(d).style.visibility = "hidden";
	else
	  document.getElementById(d).style.visibility = "visible";
}

}