/**
 * Patches
 *
 *
 * This JavaScript is part of Credox Framework [www.credox.org]
 * The script is freely distributable under the terms of an MIT license
 *
 *
 * @author Hristo Drumev
 * @package framework
 * @license MIT license
 * @copyright Hristo Drumev [www.hdrumev.com]
 * @version 0.2 / 10.07.2008
 *
 */


 
/**
 * Prevent IE6 flicker of background images
 *
 */
if( window.all && !window.XMLHttpRequest && !window.opera ) // only for IE6-
  try { document.execCommand( 'BackgroundImageCache', false, true ); }
  catch( error ) {}


/**
 * Fix border around objects in IE7
 *
 */
 /*
if( window.XMLHttpRequest && window.attachEvent && !window.opera )
{
	window.attachEvent( 'onload', function()
	{
		var objects = document.getElementsByTagName( 'object' );
		for( var i = 0, count = objects.length; i < count; ++i )
			objects[i].outerHTML = objects[i].outerHTML;
	} );
}
*/