function pl() { fl(); rl(); }

function fl()
{
  var i, frm, objects;

  if ( typeof( document.forms[0] ) != 'undefined' )
  {
    i = 0
    while ( typeof( document.forms[0].elements[i] ) != 'undefined' )
    {
      if ( document.forms[0].elements[i].type != 'hidden' )
      {
        if ( document.forms[0].elements[i].type == 'text' )
          document.forms[0].elements[i].focus();
        break;
      }

      i++;
    }

    if ( document.getElementsByTagName )
      for ( frm = 0; frm < document.forms.length; frm++ )
      {
        objects = document.forms[frm].getElementsByTagName('input');
        for ( i = 0; i < objects.length; i++ )
          if ( typeof( objects[i].src ) != 'undefined' )
            il( objects[i] );
      }
  }
}

function rl()
{
  var i, objects;
  
  if ( document.getElementsByTagName )
    objects = document.getElementsByTagName('img');
    for ( i = 0; i < objects.length; i++ )
      if ( typeof( objects[i].src ) != 'undefined' )
        il( objects[i] );
}

function il( object ) { if ( object.src.indexOf( '-normal' ) != -1 ) { object.nsrc = object.src; object.osrc = object.src.replace( '-normal', '-over' ); object.oimg = new Image; object.oimg.src = object.osrc; } }
function i0( name ) { var object; if ( document.getElementById ) if ( ( object = document.getElementById( name ) ) != null ) if ( object.nsrc != null ) object.src = object.nsrc; }
function i1( name ) { var object; if ( document.getElementById ) if ( ( object = document.getElementById( name ) ) != null ) if ( object.osrc != null ) object.src = object.osrc; }

var FlashActiveX;
var FlashActiveXVersion;

function FlashOK( version )
{
  if (navigator.plugins && navigator.plugins.length > 0)
  {
 	  if (navigator.plugins["Shockwave Flash"])
    {
      var words = navigator.plugins["Shockwave Flash"].description.split(" ");

    	for (var i = 0; i < words.length; ++i)
  	  {
        if (isNaN(parseInt(words[i])))
       		continue;
  
     		if ( parseInt(words[i]) >= version )
     		{
     		  return true;
     		}
      }
    }
  }
  else if ( FlashActiveX != null)
  {
    if ( FlashActiveX )
    {
      return FlashActiveXVersion >= version;
    }
  }

  return false;
}


if ( navigator.userAgent.indexOf("MSIE") != -1 )
{
  if ( ! ( ( navigator.appVersion.indexOf("Mac") != -1 ) && ( parseInt(navigator.appVersion) == 3) ) )
  {
    document.writeln('<script language="VBScript">');
    document.writeln('Private i, x');

    document.writeln('On Error Resume Next');

    document.writeln('FlashActiveX = False');
    document.writeln('FlashActiveXVersion = 0');

    document.writeln('For i = 6 To 2 Step -1');
       
    document.writeln('  Set x = CreateObject("ShockwaveFlash.ShockwaveFlash." & i)');
  
    document.writeln('  If IsObject(x) Then');
    document.writeln('    FlashActiveX = True');
    document.writeln('    FlashActiveXVersion = i');
    document.writeln('    Exit For');
    document.writeln('  End If');

    document.writeln('Next');

    document.write('</scr');
    document.writeln('ipt>');

  }
}

function pu( url, w, h ) { window.open( url, "popup", "width=" + w + ",height=" + h + ",scrollbars=yes,directories=no,toolbar=no,status=no,menubar=no,location=no,resizable=no"); return false; }
       
function fm (v,f,w,h,i,a)
{
	if ( FlashOK(v) )
	{
		document.write( '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + w + '" height="' + h + '" id="' + i + '" align="top">' );
		document.write( '  <param name="allowScriptAccess" value="sameDomain" />' );
		document.write( '  <param name="movie" value="' + f + '" /><param name="quality" value="high" />' );
		document.write( '  <param name="salign" value="lt" />' );
		document.write( '  <embed src="' + f + '" quality="high"  salign="lt" wmode="transparent" width="' + w + '" height="' + h + '" name="' + i + '" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' );
		document.write( '</object>' );
	}
	else
	{
		document.write( a );
	}	    	
}

function colorRows() 
{
		var content;
		var tables;
		var rows;
		var table;
		var row;
		
		if ( document.getElementsByTagName && document.getElementById ) 
		{
				if ( content = document.getElementById( 'contentMain' ) )
				{
					tables = content.getElementsByTagName('TBODY');
					
					for ( table = 0; table < tables.length; table++ )
					{
							rows = tables[table].getElementsByTagName('TR');
							
							for ( row = 0; row < rows.length; row++ )
							{
								if ( (row % 2 == 1) && (rows[row].className != 'rowOffer'))
								{
									rows[row].className = 'rowTint';
								}
								
							}
					}
				}
		}
}