var bo_ns_id = 0; 
function startIeFix() { 
  if (isIE()) { 
    document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- '); 
  } 
} 
function endIeFix() { 
  if (isIE()) { 
    document.write('</div>'); 
    var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++); 
    var theCode = theObject.innerHTML; 
    theCode = theCode.substring(4 ,9+theCode.indexOf("</object>")); 
    document.write(theCode); 
  } 
} 
function isIE() { 
  // only for Win IE 6+ 
  // But not in Windows 98, Me, NT 4.0, 2000 
  var strBrwsr= navigator.userAgent.toLowerCase(); 
  if (strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0) { 
    if (parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6) { 
      return false; 
    } 
    if (strBrwsr.indexOf("win98") > -1 || 
       strBrwsr.indexOf("win 9x 4.90") > -1 || 
       strBrwsr.indexOf("winnt4.0") > -1 || 
       strBrwsr.indexOf("windows nt 5.0") > -1) 
    { 
      return false; 
    } 
    return true; 
  } else { 
    return false; 
  } 
}

function resizeWinTo() 
{
	if( !document.images.length ) 
	{ 
		document.images[0] = document.layers[0].images[0]; 
	}
	
	var oH = document.images[0].height, oW = document.images[0].width;
	
	if( !oH || window.doneAlready ) { return; }
	
	window.doneAlready = true;
	
	var x = window; x.resizeTo( oW + 200, oH + 200 );
	var myW = 0, myH = 0, d = x.document.documentElement, b = x.document.body;
	
	if( x.innerWidth ) 
	{ 
		myW = x.innerWidth; myH = x.innerHeight; 
	}
	
	else if( d && d.clientWidth ) { myW = d.clientWidth; myH = d.clientHeight; }
	else if( b && b.clientWidth ) { myW = b.clientWidth; myH = b.clientHeight; }
	
	if( window.opera && !document.childNodes ) { myW += 16; }
	
	x.resizeTo( oW = oW + ( ( oW + 200 ) - myW ), oH = oH + ( (oH + 200 ) - myH ) );
	var scW = screen.availWidth ? screen.availWidth : screen.width;
	var scH = screen.availHeight ? screen.availHeight : screen.height;
	
	if( !window.opera ) { x.moveTo(Math.round((scW-oW)/2),Math.round((scH-oH)/2)); }
}