function o(id){
	return document.getElementById(id);
}

function op(o){
	var r=[];
	r['w']=o.offsetWidth;
	r['h']=o.offsetHeight;
	r['t']=o.offsetTop;
	r['l']=o.offsetLeft;
	while((o=o.offsetParent)!=null){
		r['t']+=o.offsetTop;
		r['l']+=o.offsetLeft;
	}
	return r;
}

if(navigator.appVersion.indexOf('MSIE 6')==-1){
	o('search').style.marginLeft='394px';
}else{
	o('search').style.marginLeft='197px';
}

if(navigator.appVersion.indexOf('MSIE')==-1){
	var pmain_obj=o('pmain');
	var main_obj=o('main');
	var bottom_pos=op(o('bottom'));
	pmain_obj.style.height=bottom_pos['t']+bottom_pos['h']+'px'
	main_obj.style.height=bottom_pos['t']+bottom_pos['h']+'px'
}

o('pmain').style.marginLeft=((screen.width-o('pmain').offsetWidth)/2)+'px';