var alphaPixel   = 'pixel.gif';
var valign       = 'valign';


/*  _____________________________________________________________________________________________________________________________________________________________________________________________________________________
	
	~ VERIFICA VERSIUNEA DE INTERNET EXPLORER
	_____________________________________________________________________________________________________________________________________________________________________________________________________________________  */


function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}

var ieVersion = getInternetExplorerVersion();

/*
  if ( ieVersion > -1 )
  {
    if ( ieVersion >= 7.0 ) 
   		browserVersion = 
    else
    	browserVersion = 
   
  }
*/

function fixIE6Png(_target)
{
	//if(navigator.appName == 'Microsoft Internet Explorer')
	if(ieVersion > -1 && ieVersion < 7)
	{
		with(_target)
		{
			if(className != valign && /\.png$/i.test(src))
			{
				style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "')";
				src = alphaPixel;
				style.width = style.height = "10000px";				
			}
		
		}
	}
}

function fixIE6PngAll()
{
	var images = $('img');
	
	for(i=0; i<images.length; i++)
	{
		fixIE6Png(images[i]);
	}
	
}




