// Stop page going off the top of the screen when resized

var leftPercent=0.35;
var widthThreshold=1400;
var sidebarWidth=270;


window.onresize=contentPosition;
window.onload=loader;


function contentPosition(){
	


if (document.getElementById) { // DOM3 = IE5, NS6

document.getElementById('sidebar').style.left=Math.max(sidebarWidth,parseInt(Math.min(0,jQuery(window).width()-widthThreshold)/2+(leftPercent*jQuery(window).width())))+"px";
document.getElementById('copy').style.left=Math.max(sidebarWidth,parseInt(Math.min(0,jQuery(window).width()-widthThreshold)/2+(leftPercent*jQuery(window).width())))+"px";
document.getElementById('copy').style.width=(jQuery(window).width()-parseFloat(document.getElementById('copy').style.left))+"px";
}
else {
if (document.layers) { // Netscape 4

}
else { // IE 4

} }


}



function loader() {
	
	//contentPosition;
	
}
