function scrollInit() {
  
  var contentDivHeight = 410;
  var borderImgHeight = 538;
  var diffHeight = 0;
  var bLarge = false;
  var screenHeight = screen.height;

 if (screenHeight != 600) {
 
    bLarge = true;
    
 } else {
 
	diffHeight = -105;
 
 }

 if (!bLarge) {
 	
	document.getElementById('featureid1').style.display='none';
	document.getElementById('featureid2').style.display='none';
 }
 
 // setting proper height according to screenresolution.
   document.getElementById("contentdiv").style.height = contentDivHeight + diffHeight;
   document.getElementById("borderimg").style.height = borderImgHeight + diffHeight;
	
// place div tag top left
   document.getElementById("contentdiv").style.left = xsPos('contentimg');
	document.getElementById("contentdiv").style.top = ysPos('contentimg');
	
	document.getElementById('contentdiv').style.visibility='visible'
	
}
	


function ysPos(what){
	if(document.all)
		return yIE(eval('document.'+what));
	else if(document.getElementById)
		return yIE(document.getElementById(what));
}

function xsPos(what){
	if(document.all)
		return xIE(eval('document.'+what));
	else if(document.getElementById)
		return xIE(document.getElementById(what));
}

function yIE(what){
	if(what.offsetParent)
		return parseInt(what.offsetTop + yIE(what.offsetParent));
	else
		return parseInt(what.offsetTop);
}

function xIE(what){
	if(what.offsetParent)
		return parseInt(what.offsetLeft + xIE(what.offsetParent));
	else
		return parseInt(what.offsetLeft);
}

function placeAgain(){
        if(document.layers)
                document.location.reload();
        else
                scrollInit();
}
		

