
function popsizer(iw,ih) {

	// takes 2 params, width/height, animates to proper size
		if(is_ie) {
			var cx = parseInt(parent.top.document.body.clientWidth);
			var cy = parseInt(parent.top.document.body.clientHeight);
		} else {
			var cx = (window.innerWidth);
			var cy = (window.innerHeight);	
		}
		
		if (cx < iw-10) {
			resizeBy(((iw-cx)/4),0);
		} else if (cx > iw+10) {
			resizeBy(((iw-cx)/4),0);
		} else {
			resizeBy(iw-cx,0);
		}
	
		if (cy < ih-10) {
			resizeBy(0,((ih-cy)/4));
		} else if (cy > ih+10) {
			resizeBy(0,((ih-cy)/4));
		} else {
			resizeBy(0,ih-cy);
		}
	
		if((cx != iw) || (cy != ih)) {
			setTimeout('popsizer('+iw+','+ih+')','1');
		} else {
			if(is_ie) {if(document.all)for(var i in document.links)document.links[i].onfocus=document.links[i].blur;}
		}
	
	}