function repositionBodyDiv(sDiv){
	try{
		var oDiv = document.getElementById(sDiv);
		var winWidth = document.body.clientWidth;
		var winHeight = document.body.clientHeight;
		var newXPos = (winWidth-800) / 2;
		//RESET LEFT
		if (newXPos >= 0){
			oDiv.style.left = newXPos;
		}
		//RESET TOP
		if (oDiv.clientHeight >= winHeight){
			oDiv.style.top = 0;
		}
		
		//IF NETSCAPE REDUCE SIZE TO COMPENSATE FOR BORDERS
		if(NN){
			oDiv.style.width = 800;
			oDiv.style.height = 623;
		}
		
		oDiv.style.display = "inline";
			
	}catch(e){
		//alert(e);
	}
}


function getConditionalDiv(sThumbnailRowCount, iDivIndex){
	var arrDependentDivs1 = new Array();
	var arrDependentDivs2 = new Array();

	arrDependentDivs1[0] = "<div id='divBodyText' style='position:absolute; left:240px; top:30px; width:560; height:372; z-index:2;'>";
	arrDependentDivs1[1] = "<div id='divBodyThumbnails' style='position:absolute; left:0%; top:180px; width:100%; height:185;text-align:center;background-image:  url(/source/images/util/gen/screen.gif); layer-background-image:  url(/source/images/util/gen/screen.gif);padding-top:10px' class='contentheadlines'>";
	arrDependentDivs1[2] = "<div id='divBodyTextBottom' style='position:absolute; left:0; top:362; width:100%; height:10px;'>";

	arrDependentDivs2[0] = "<div id='divBodyText' style='position:absolute; left:240px; top:30px; width:560; height:452; z-index:2;'>";
	arrDependentDivs2[1] = "<div id='divBodyThumbnails' style='position:absolute; left:0%; top:180px; width:100%; height:265;text-align:center;background-image:  url(/source/images/util/gen/screen.gif); layer-background-image:  url(/source/images/util/gen/screen.gif);padding-top:10px' class='contentheadlines'>";
	arrDependentDivs2[2] = "<div id='divBodyTextBottom' style='position:absolute; left:0; top:442; width:100%; height:10px;'>";


	switch (sThumbnailRowCount){
	case "1":
		return arrDependentDivs1[iDivIndex];
		break;
	case "2":
		return arrDependentDivs2[iDivIndex];
		break;
	}
}