try {

        //Select row
        var thisRow = document.getElementById( 'handle_itemMainPortlet' ).getElementsByTagName( 'tr' )[1];
        thisRow.id = 'top_pagination_row';

        //Append  Row
        document.getElementById( 'top_pagination_receptor' ).getElementsByTagName( 'tbody' )[0].appendChild( thisRow );

        //Remove padding
        thisRowTables = thisRow.getElementsByTagName( 'table' );
        for (var i = 0; i < thisRowTables.length; i ++)
        {
                thisRowTables[i].cellSpacing = '0';
                thisRowTables[i].cellPadding = '0';

        }
} catch(e) {}

try {
        /*Ie pagination number*/
        var thisTable = document.getElementById( 'top_pagination_row' ).getElementsByTagName( 'table' )[1];
        if (thisTable)
        {
                thisTable.className = 'pagination-left-table';
        }

        if(document.getElementById('searchresults') == null)
        {
                document.getElementById( 'top_pagination_receptor' ).style.display='none';
        }
} catch(e) {}

try {
        document.getElementById('searchportlet').style.display='none';
} catch(e) {}

//try {
//      if( indexOf.thisTable('Results') == "-1" )
//      {
//              thisTable.style.display='none';
//      }
//      else
//      {
//              alert( indexOf.thisTable('Results') );
//      }
//} catch(e){}


