// JavaScript scripts

<!-- 



//************************************************MAIN**************************************************



function showPage(loc , qty)
{
	document.location = 'http://dwarfy.bephp.com/sitececs/?section=' + loc + '&newsQty=' + qty ;
}

			

function positionateElements()



{



	//1 GET HEIGHT AND WIDTH OF BROWSER WINDOW



	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;



			}



		}



	}



	//place main div


	topdiv = document.getElementById('topContainer');

	topdiv.style.left = '' + (myWidth-706)/2 + 'px';
	

	maindiv = document.getElementById('mainContainer');

	maindiv.style.left = topdiv.style.left

	

	downdiv = document.getElementById('downContainer');

	downdiv.style.left = topdiv.style.left

	downdiv.style.top = '' + (topdiv.offsetHeight + maindiv.offsetHeight) + 'px'
	
	topdiv.style.visibility = 'visible';
	maindiv.style.visibility = 'visible';
	downdiv.style.visibility = 'visible';
	
			

}



-->

