FA Extended

FA Extended tries to improve your FA experience!

// ==UserScript==
// @name          FA Extended
// @version       0.2.5.7
// @namespace     FA Extended
// @homepage      https://greasyfork.org/scripts/3418-fa-extended
// @include       *www.furaffinity.net/*
// @description   FA Extended tries to improve your FA experience!
// @author        NeroTheRaichu
// @copyright     2013+, NeroTheRaichu
// @icon          http://www.furaffinity.net/favicon.ico
// @require       http://code.jquery.com/jquery-2.1.1.min.js
// @require       http://code.jquery.com/ui/1.11.0/jquery-ui.min.js
// @run-at        document-end
// @grant         GM_setValue
// @grant         GM_getValue
// @grant         GM_addStyle
// ==/UserScript==

//
// QUICK HELP
//
// New Blocks syntax: 
// :block[MyBlockTitle]some content here::
//
// If you want the block on the left:
// :block[MyBlockTitle][left]some content here::
//
// New icons syntax: 
// :image[image_url]destination_when_user_clicks_the_image::
//
// New map syntax:
// :map[location]::
//
// If you want to see three lines of submissions on the user page scroll a bit down the script to
// the function "extend_user_page()" and comment out the line "one_line();" then you can remove
// the slashes from the line "three_lines();"
// If you leave them both commented you will see two lines as default.
//
//
// Thanks to http://www.furaffinity.net/user/noctisignem/ for the popup watchlist!
//

//
// Number of Submissions Rows in the user page
// You can change it to 3, 2, or 1
//
var submissions_rows = 3;

//
// BlackList
//
// If you want to black list some keywords from the new submissions page just add them to the following array
// example: 
// var keywords__blacklist = new Array("ych","stream");
//
// You can automatically remove those submissions or just hide them, for that just change this value:
// var remove_blacklisted = true; // they will be removed
// var remove_blacklisted = false; // they won't be removed
//
var keywords__blacklist = new Array();
var remove_blacklisted = false;

var left_menu_showing = false;

// MAIN CODE

// page ready
$(document).ready(function() {
	// executes when HTML-Document is loaded and DOM is ready
    
    init();
    
});

// page loaded
$(window).load(function () {
    // executes when complete page is fully loaded
    
    console.log("Loading FA Extended...");
    console.log(" Current url: " + location.href );
    
    change_document_title();
    fix_top_bar();
    add_new_line();
    add_icon_topbar();
    var _my_username = add_links_topbar();
    
    //console.log("Improved top navbar");
    console.log("Current user: " + _my_username );
    
    move_ads_to_bottom();
    fix_header();
    //scroll_down();
    
    if ( location.href == "http://www.furaffinity.net/" ) {
        
        fix_style_fa_home();
        
    }
    else if ( location.href.indexOf('watch/') > 0 ) {
        
        extend_watch_system_message();
        
    }
    else if ( location.href.indexOf('/browse') > 0 || location.href.indexOf('/gallery') > 0 || location.href.indexOf('/scraps') > 0 || location.href.indexOf('/favorites') > 0 ) {
        // browsing submission page
        
        if ( location.href.indexOf('/controls') > 0 ) {
        	
            //nothing to do
            
        } else if ( location.href.indexOf('/browse') == -1 ) {
            add_top_navbar('none');
        	add_gallery_rating_buttons();
            fix_first_cat();
            
            var current_user = "";
            
            if ( location.href.indexOf('/gallery') > 0 ) {
                current_user = location.href.slice(35,-1);
            }
            else if ( location.href.indexOf('/scraps') > 0 ) {
                current_user = location.href.slice(34,-1);
            } else {
                current_user = location.href.slice(37,-1);
            }
            
            add_custom_background( current_user );
            
        } else {
            add_top_navbar('browse');
            add_browse_rating_buttons();
            fix_first_cat_browse();
        }
    }
    else if ( location.href.indexOf('/stats/') > 0 ) {
        fix_first_cat_stats();
        
        var current_user = location.href.slice(33, location.href.indexOf('/submissions') );
        add_custom_background( current_user );
        
    }
    if ( location.href.indexOf('/user') > 0 ) {
        // user page
        
        //console.log("Position - Userpage" );
        var current_user = location.href.slice(32,-1);
        
        extend_user_page( location.href.indexOf( _my_username ), current_user );
        
        fix_cat_header_style();
        
        // fix anchors
        
        var loc = location.href.indexOf('/#')
        if ( loc > 0 && loc+3 < location.href.length ) {
        	var anchor = location.href.slice(loc + 2);
        	var a = $('a[name="' + anchor + '"]');
            if ( a.length > 0 ) {
                a = a[0];
                a.scrollIntoView();
            }
        }
        
    }
    if ( location.href.indexOf('/view/') > 0 || location.href.indexOf('/full/') > 0  ) {
        // submission page
        
        fix_title_comments();
        better_icons();
        better_comments_avatars();
        add_fa_extended_code();
        move_nav_buttons_on_top();
        fix_submission_style();
        change_story_style();
        remove_cell_spacing();
        
    }
    else if ( location.href.indexOf('/journals/') > 0 || location.href.indexOf('/commissions/') > 0  ) {
        
        fix_journals_style();
        better_icons();
        
        var current_user = "";
        
        if ( location.href.indexOf('/journals/') > 0 ) {
        	current_user = location.href.slice(36,-1);
        } else {
            current_user = location.href.slice(39, location.href.indexOf('/manage') );
        }
        
        add_custom_background( current_user );
    }
    else if ( location.href.indexOf('/journal/') > 0 ) {
        
        fix_journals_style();
        better_icons();
        better_comments_avatars();
        remove_cell_spacing();
        add_dotted_line_journal();
    }
    if ( location.href.indexOf('/msg/submissions') > 0 ) {
        // new submissions from watched users
        
        var notifications = 0;
        
        blacklist_submissions();
        update_submissions_values();
        notifications += count_new_others();
        notifications += count_new_notes();
        
        fix_message_icon(notifications);
        
        add_rating_buttons();
        
        fix_msg_submission_others_style()
        
    } else if ( location.href.indexOf('/msg/others') > 0 ) {
        
        var notifications = 0;
        
        notifications += count_new_submissions();
        update_others_values();
        notifications += count_new_notes();
        
        fix_message_icon(notifications);
        
        new_journals_view();
        
        fix_msg_submission_others_style()
        
    } else if ( location.href.indexOf('/msg/pms') > 0 ) {
        
        var notifications = 0;
        
        notifications += count_new_submissions();
        notifications += count_new_others();
        //update_notes_values();
        
        fix_message_icon(notifications);
        
        fix_pms_style()
        remove_cell_spacing();
        
    } else {
        
        var notifications = 0;
        
        notifications += count_new_submissions();
        notifications += count_new_others();
        notifications += count_new_notes();
        
        fix_message_icon(notifications);
    }
    
    if ( location.href.indexOf('/controls/profile') > 0 ) {
        
        extend_profile_controls();
        
    }
    else if ( location.href.indexOf('/sessions/') > 0 ) {
        
        fix_session_style();
        remove_cell_spacing();
        
    }
    else if ( location.href.indexOf('/controls/') > 0 ) {
        
        fix_controls_style();
        remove_cell_spacing();
        
    }
    else if ( location.href.indexOf('/search') > 0 ) {
        
        save_last_search();
        fix_search_style();
        remove_cell_spacing();
        
    }
    if ( location.href.indexOf('/newpm') > 0 ) {
        
        fix_newpm_style();
        remove_cell_spacing();
        
    }
    else if ( location.href.indexOf('/submit') > 0 ) {
        
        fix_submit_style();
        
    }
    else if ( location.href.indexOf('/viewmessage/') > 0 ) {
        
        nested_quotes();
        fix_message_style();
        remove_cell_spacing();
        
    }
    else if ( location.href.indexOf('/login/') > 0 ) {
        
        fix_login_page();
        
    }
    if ( location.href.indexOf( _my_username ) > 0 ) {
        
        fix_own_user_page();
        
    }
    
    narrow_space_before_avatar();
    
    page_width( "88%" );
    
    console.log("FA Extended - fully loaded");
        
} );

$.expr[':'].textEquals = function (a, i, m) {
    return $(a).text().match("^" + m[3] + "$"); 
};

function extend_profile_controls() {
    
    var page_blocked = $( "td.cat b:textEquals('System Message')");
    if ( page_blocked.length > 0 ) {
        
        page_blocked = page_blocked[0]
        page_blocked = page_blocked.parentNode;
        
        page_blocked.className = "cat_header";
        
        page_blocked = page_blocked.parentNode;
        page_blocked = page_blocked.parentNode;
        page_blocked = page_blocked.parentNode;
        
        page_blocked.className = page_blocked.className + " maintable_newpm";
        
        remove_cell_spacing();
        
        return;
    }
    
    bigger_text_area();
    bigger_update_button();
    new_append_buttons();
    fix_controls_style();
    remove_cell_spacing();
    
}

function extend_user_page( my_userpage, current_user ) {
    //extends user page
    
    var page_blocked = $( "td.cat b:textEquals('System Message')");
    if ( page_blocked.length > 0 ) {
        
        console.warn("Page blocked!");
        
        page_blocked = page_blocked[0]
        page_blocked = page_blocked.parentNode;
        
        page_blocked.className = "cat_header";
        
        page_blocked = page_blocked.parentNode;
        page_blocked = page_blocked.parentNode;
        page_blocked = page_blocked.parentNode;
        
        page_blocked.className = page_blocked.className + " maintable_newpm";
        
        remove_cell_spacing();
        
        return;
    }
    
    var user_name = $("td.addpad.lead b").get( 0 );
    user_name = user_name.innerHTML;
    user_name = user_name.slice(1);
    
    better_icons();
    better_avatars();
    fix_bottom_ads();
    
    new_layout( user_name, my_userpage, current_user );
    
    if ( submissions_rows >= 3 ) {
    	three_lines();
        
    } else {
        if ( submissions_rows == 1 ) {
            one_line();
        }
    }
    
    add_popups();
    fix_overflow();
    remove_cell_spacing();
    fix_user_tabs();
    
    add_custom_background( current_user );
    
}

function fix_user_tabs() {
	var tab_div = $( "div.tab" ).get(0);
    
    var parent_tab_div = tab_div.parentNode;
    parent_tab_div = parent_tab_div.parentNode;
    parent_tab_div = parent_tab_div.parentNode;
    parent_tab_div = parent_tab_div.parentNode;
    
    parent_tab_div.setAttribute("width","");
    parent_tab_div.className = "table_div_tab";
}

function extend_watch_system_message() {
    
    var page_blocked = $( "td.cat b:textEquals('System Message')");
    if ( page_blocked.length > 0 ) {
        
        console.warn("Page blocked!");
        
        page_blocked = page_blocked[0]
        page_blocked = page_blocked.parentNode;
        
        page_blocked.className = "cat_header";
        
        page_blocked = page_blocked.parentNode;
        page_blocked = page_blocked.parentNode;
        page_blocked = page_blocked.parentNode;
        
        page_blocked.className = page_blocked.className + " maintable_newpm";
        
        remove_cell_spacing();
        
    }
    
}

function remove_cell_spacing() {
        
    var aux = $('table[cellspacing="1"]');
    for(var i=0;i<aux.length;i++) {
        var table = aux[i];
        
        table.setAttribute("cellspacing","0");
        
    }
    
}

function add_dotted_line_journal() {
    
    var aux = $('table.maintable.table_top_more_spacing td.alt1 > div.no_overflow');
    if (aux.length > 0) {
        
        var parent = aux[0];
        parent = parent.parentNode;
        parent.className = "alt1 tdot";
        
    }
    
}

function new_journals_view() {
    
    var aux = $('fieldset#messages-journals ul.message-stream li a');
    for(var i=0;i<aux.length;i++) {
        var anchor = aux[i];
  		
        var user_page = anchor.href;
        user_page = user_page.slice( 32, -1 );
        
        var user_page_text = anchor.innerHTML.toLowerCase();
        var under_score = new RegExp("_", "g");
        user_page_text = user_page_text.replace( under_score, "");
        
        if ( user_page == user_page_text ) {
        
        	anchor.className = "iconusername";
            anchor.innerHTML = '<div class="newIconDiv"><img src="//a.facdn.net/' + user_page + '.gif" align="middle" title="' + user_page + '" alt="' + user_page + '">&nbsp;&nbsp;' + anchor.innerHTML + '</div>'
            
            var parent_li = anchor.parentNode;
            
            parent_li.className = "new_journal_entry";
            
            var span_element = parent_li.lastChild;
            
            var html_parent = parent_li.innerHTML;
            
            var a_index = html_parent.indexOf( "<a href" );
            var a_end_index = html_parent.indexOf( ", posted by" ) -1;

            var html_check_box = html_parent.slice( 0, a_index-1 );
            var html_journal_title = html_parent.slice( a_index, a_end_index );
            
            parent_li.innerHTML = html_check_box + '<table class="new_journal_entry"><tbody><tr><td>' + anchor.outerHTML + "</td><td>" + "&nbsp;:&nbsp;" + "</td><td>" + html_journal_title + "&nbsp;</td><td></td></tr></tbody></table>"
            
            var last_td = parent_li.lastChild.lastChild.lastChild.lastChild;
            
            last_td.appendChild( span_element )    
            
               
        } else {
            
            anchor.className = "iconusername iconusername_height";
            anchor.innerHTML = '<div class="newIconDiv bigger_text_size">&nbsp;' + anchor.innerHTML + '&nbsp;</div>'
            
        }
        
 	}
    
    //var aux = $('fieldset#messages-journals ul.message-stream li.section-controls');
    //if (aux.length > 0 ) {
    //    var control_li = aux[0];
    //    var new_control_li = control_li.cloneNode(true);
    //    
    //    var parent = control_li.parentNode;
    //    
    //    parent.insertBefore( new_control_li ,parent.childNodes[0]);
    //}
    
}


function nested_quotes() {
     
    var current_quote_list = $('div.bbcode_quote');
    
    if (current_quote_list.length > 0 ) {
        var current_quote = current_quote_list[0];
        var parent_quote = current_quote.parentNode;
        var quote = new RegExp("\\[QUOTE\\]", "g");
        var unquote = new RegExp("\\[/QUOTE\\]", "g");
        parent_quote.innerHTML = parent_quote.innerHTML.replace( quote , '<div class=".bbcode bbcode_quote">' );
        parent_quote.innerHTML = parent_quote.innerHTML.replace( unquote, '</div>' );
    }
}

function move_ads_to_bottom() {
    
    var aux = $('.block-banners .ads');
    var aux2 = $('.footer .ads');
    if (aux.length > 0 && aux2.length > 0) {
        var ads_top = aux[0];
        var ads_bottom = aux2[0];
        
        var container_bottom = ads_bottom.parentNode;
        container_bottom.insertBefore( ads_top, ads_bottom );
        container_bottom.insertBefore( new_br() , ads_bottom );
    }
        
}

function fix_login_page() {
    
    var aux = $('form table.maintable td.cat');
    if (aux.length > 0) {
        var parent = aux[0];
        
        parent.className = "cat_header";
        
        parent = parent.parentNode;
        parent.className = "alt1";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent.setAttribute("cellspacing","0");
        parent.setAttribute("cellpadding","5");
        parent.className = "maintable_newpm table_top_spacing";
    }
    
}

function fix_submit_style() {
    
    var aux = $('form table.maintable td.cat');
    if (aux.length > 0) {
        var parent = aux[0];
        parent = parent.parentNode;
        parent.className = "alt1";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent.setAttribute("cellspacing","0");
        parent.setAttribute("cellpadding","5");
        parent.className = "maintable_newpm table_top_spacing";
    }
    
}

function change_story_style() {
    
    var aux = $('table.maintable.table_submission table.maintable td.alt1_ext[align="left"]');
    if (aux.length > 0) {
        var parent = aux[0];
        
        var text = parent.innerHTML;
        
        if ( text.indexOf("File type: Text File") >= 0 ) {
            
            parent = parent.parentNode;
            parent = parent.parentNode;
            parent = parent.parentNode;
            
            parent.className = "maintable story_submission";
        }
        
    }
}

function fix_own_user_page() {
    
    var tab = $( "font:textEquals('.Watch')" );
    if ( tab.length > 0 ) {
        tab = tab[0];
        tab = tab.parentNode;
        tab = tab.parentNode;
        tab.setAttribute("style","display:none;");
    }
        
    var tab = $( "a:textEquals('Send Note')" );
    if ( tab.length > 0 ) {
        tab = tab[0];
        tab = tab.parentNode;
        tab.setAttribute("style","display:none;");
    }
}

function page_width( width ) {
    var aux = $('table.content.maintable tr.innertable table');
    if (aux.length > 0) {
        var parent = aux[0];
  		parent.className = parent.className + " maintable_content_inside";
        parent.setAttribute("width", width );
    }
    
    //console.log("New page width set!");
}

function fix_msg_submission_others_style() {
    
    var aux = $('div#messagecenter-submissions');
    if (aux.length > 0) {
        var parent = aux[0];
        parent = parent.parentNode;
  		parent.className = "alt1";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent.className = "maintable_newpm table_top_spacing";
        
    } else {
    
        var aux = $('div#messagecenter-other');
        if (aux.length > 0) {
            var parent = aux[0];
            parent = parent.parentNode;
            parent.className = "alt1";
            
            parent = parent.parentNode;
            parent = parent.parentNode;
            parent = parent.parentNode;
            parent.className = "maintable_newpm table_top_spacing";
        }
    }
    
}

function narrow_space_before_avatar() {
    
    var aux = $('td[width="20"]');
    for(var i=0;i<aux.length;i++) {
        var parent = aux[i];
  		parent.setAttribute("width","5");
 	}
    
    aux = $('th[width="20"]');
    for(var i=0;i<aux.length;i++) {
        var parent = aux[i];
  		parent.setAttribute("width","5");
 	}
    
}

function fix_first_cat_browse() {
    
    var aux = $('#browse table.maintable tr');
    if (aux.length > 0) {
        var parent = aux[0];
  		parent.className = "alt1";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent.setAttribute("cellspacing","0");
        parent.setAttribute("cellpadding","5");
        parent.className = "maintable table_top_spacing";
    }
    
}

function fix_first_cat_stats() {
    
    var aux = $('table.maintable td.cat table.maintable tr');
    if (aux.length > 0) {
        var parent = aux[0];
  		//parent.className = "alt1";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent.setAttribute("cellspacing","0");
        parent.setAttribute("cellpadding","5");
        parent.className = "maintable alt1 table_top_spacing";
    }
    
}

function fix_first_cat() {
    
    var aux = $('table.maintable td.cat table.maintable tr');
    if (aux.length > 0) {
        var parent = aux[0];
  		parent.className = "alt1";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent.setAttribute("cellspacing","0");
        parent.setAttribute("cellpadding","5");
        parent.className = "maintable table_top_spacing";
    }
    
}

function fix_cat_header_style() {
    
    var aux = $('td.cat[align="center"]');
    for(var i=0;i<aux.length;i++) {
        var parent = aux[i];
  		parent.className = "cat_header";
 	}
    
    aux = $('td[width="20"][valign="top"]');
    if (aux.length > 0) {
        var parent = aux[1];
  		parent.className = "alt1";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent.className = "maintable user_card"
 	}
    
    aux = $('table.content table[cellpadding="0"][width="100%"]');
    if (aux.length > 0) {
        var parent = aux[0];
  		parent.className = "maintable_user_content";
 	}
    
    aux = $('table.maintable td.cat[colspan="2"] div.no_overflow');
    if (aux.length > 0) {
        var parent = aux[0];
        parent = parent.parentNode;
  		parent.className = "cat_header";
 	}
    
}

function fix_style_fa_home() {
    
    var aux = $('table.content.maintable tr.innertable > td > table');
    if (aux.length > 0) {
        
        var parent = aux[0];
        parent.className = parent.className += " maintable_newpm table_top_more_spacing";
        parent.setAttribute("cellpadding","0");
        
    }
    
}

function fix_message_style() {
    
    var aux = $('td.cat[align="center"] > b');
    if (aux.length > 0) {
        var parent = aux[0];
        parent = parent.parentNode;
  		parent.className = "cat_header";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        parent.className = "maintable maintable_newpm"
 	}
    
    var aux = $('font[color="#999999"]');
    if (aux.length > 0) {
        var parent = aux[0];
        
        parent.removeAttribute("color");
        parent.className = "greyed_font";
    }
    
    var aux = $('form.viewmessage > table.maintable td.cat');
    if (aux.length > 0) {
        var parent = aux[0];
  		parent.className = "alt1";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        parent.className = "maintable maintable_newpm"
        parent.setAttribute("cellpadding","10");
        parent.setAttribute("cellspacing","0");
 	}
    
    var aux = $('td.alt1[rowspan="2"]');
    if (aux.length > 0) {
        var parent = aux[0];
  		parent.className = "";
        
 	}
}

function fix_search_style() {
    
    var aux = $( "b:textEquals('Search')" );
    if ( aux.length > 0 ) {
        var parent = aux[0];
        parent = parent.parentNode;
  		parent.className = "cat_header";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        parent.className = "maintable maintable_newpm"
        
    }
    
}

function fix_pms_style() {
    
    var aux = $('td.cat.links > b');
    for(var i=0;i<aux.length;i++) {
        var parent = aux[i];
        parent = parent.parentNode;
  		parent.className = "cat_header";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        parent.className = "maintable maintable_newpm"
 	}
    
    var aux = $('td.alt1[rowspan="2"]');
    if (aux.length > 0) {
        var parent = aux[0];
  		parent.className = "";
        
 	}
}

function fix_session_style() {
    
    var aux = $('td.cat.links > b');
    if (aux.length > 0) {
        var parent = aux[0];
        parent = parent.parentNode;
  		parent.className = "cat_header";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        parent.className = "maintable maintable_newpm"
 	}
    
    var aux = $('.maintable.container');
    if (aux.length > 0) {
        var parent = aux[0];        
        parent.className = "maintable container maintable_session"
 	}
    
}

function fix_controls_style() {
    
    var aux = $('td.cat.links > b');
    if (aux.length > 0) {
        var parent = aux[0];
        parent = parent.parentNode;
  		parent.className = "cat_header";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        parent.className = "maintable maintable_newpm"
 	}
    
    var aux = $('td.cat[align="center"] > b');
    if (aux.length > 0) {
        var parent = aux[0];
        parent = parent.parentNode;
  		parent.className = "cat_header";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        parent.className = "maintable maintable_newpm"
 	}
    
    if ( location.href.indexOf('/controls/site-settings') > 0 ) {
        aux = $('td.cat.links strong');
        for(var i=0;i<aux.length;i++) {
            var parent = aux[i];
            parent = parent.parentNode;
            parent.className = "cat_header";
            
            parent = parent.parentNode;
            parent = parent.parentNode;
            parent = parent.parentNode;
            
            parent.className = "maintable maintable_newpm"
        }
    }
    
}

function fix_newpm_style() {
    
    var aux = $('td.cat[align="center"] b');
    if (aux.length > 0) {
        var parent = aux[0];
        parent = parent.parentNode;
  		parent.className = "cat_header";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        parent.className = "maintable maintable_newpm"
 	}
}

function fix_journals_style() {
    
    var aux = $("table.maintable td.alt1 table.maintable");
    for(var i=0;i<aux.length;i++) {
        var parent = aux[i];
        
        parent.setAttribute("cellspacing","0");
        
        parent = parent.parentNode;
  		parent.className = "alt1_ext";
 	}
        
    aux = $( "td.alt1_ext table.maintable td.alt1");
    for(var i=0;i<aux.length;i++) {
        var parent = aux[i];
  		parent.className = "alt1_ext";
        if ( parent.width == "20%" ) {
            parent.className = "alt1_ext ldot";
        }
 	}
    
    aux = $('table.content td.cat table tr');
    if (aux.length > 0) {
        var parent = aux[0];
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        
  		parent.className = "alt1";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent.setAttribute("cellspacing","0");
        parent.setAttribute("cellpadding","5");
        parent.setAttribute("width","99%");
        parent.className = "maintable table_top_more_spacing";
        
    }
    
    var aux = $('td.cat[align="center"]');
    for(var i=0;i<aux.length;i++) {
        var parent = aux[i];
  		parent.className = "cat_header";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        if ( parent.className != "maintable table_top_more_spacing" ) {
        
        	parent.className = "maintable maintable_newpm";
        }
 	}
    
}

function fix_submission_style() {
    
    var aux = $("table.maintable td.alt1 table.maintable");
    for(var i=0;i<aux.length;i++) {
        var parent = aux[i].parentNode;
  		parent.className = "alt2";
 	}
        
    aux = $( "td.alt2 table.maintable td.alt1");
    for(var i=0;i<aux.length;i++) {
        var parent = aux[i];
  		parent.className = "alt1_ext";
 	}
    
    console.log( 'Changing style of submission page' );
    
    aux = $('td.cat table tr');
    if (aux.length > 0) {
        var parent = aux[0];
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        
  		parent.className = "alt1";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent.setAttribute("cellspacing","0");
        parent.setAttribute("cellpadding","5");
        parent.className = "maintable table_top_more_spacing";
        
    }
    
    aux = $('div#submission table.maintable[cellpadding="2"][cellspacing="1"] td.cat');
    if (aux.length > 0) {
        var parent = aux[0];
        
  		parent.className = "cat_header";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        parent.className = "maintable table_submission";
        
    }
    
    var aux = $('td.cat[align="center"]');
    for(var i=0;i<aux.length;i++) {
        var parent = aux[i];
  		parent.className = "cat_header";
        
        parent = parent.parentNode;
        parent = parent.parentNode;
        parent = parent.parentNode;
        
        parent.className = "maintable maintable_newpm"
 	}
    
    var aux = $('td.cat[valign="top"][width="70%"]');
    for(var i=0;i<aux.length;i++) {
        var parent = aux[i];
  		parent.className = "cat_header";
 	}
    
    var aux = $('table.table_submission > tbody > tr > td.alt2 > table.maintable > tbody > tr > td.alt1_ext');
    if (aux.length > 0) {
        var parent = aux[0];
        
        console.log( "here!");
        
        parent.innerHTML = "<object>" + parent.innerHTML + "</object>";
    }
    
    
    
}

function move_nav_buttons_on_top() {
    
    var prev = $('a.prev.button');
    if ( prev.length > 0 ) {
    	prev = prev[0];
    } else {
        prev = false;
    }
    
    var next = $('a.next.button');
    if ( next.length > 0 ) {
        next = next[0];
    } else {
        next = false;
    }
    
    var parent_node = false;
    if ( prev ) {
   		parent_node = prev.parentNode;
   		parent_node = parent_node.parentNode;
    } else if ( next ) {
        parent_node = next.parentNode;
        parent_node = parent_node.parentNode;
    }
    
    if ( parent_node ) {
    
    	var new_div = document.createElement("div");
    	new_div.className = 'alt1 actions';
    	new_div.appendChild( new_br() );
    
    	if ( prev ) {
    		prev = prev.cloneNode(true);
        
    		new_div.appendChild( prev );
    	}
    
    	if ( next ) {
    		next = next.cloneNode(true);
        
    		new_div.appendChild( next );
    	}
    
    	new_div.appendChild( new_br() );
    
    	$( parent_node ).prepend( new_div );
    	
    } 
    
}

function add_browse_rating_buttons() {
    
    var action_div = $('form[name="replyform"]').get( 0 );
    
    //action_div.appendChild( new_br() );
    
    var new_span = document.createElement("span");
    
    new_span.setAttribute('style','float:right;');
    
    new_span.innerHTML = "Toggle Submissions by Rating: ";
    
    var button_all = document.createElement("button");
    var button_general = document.createElement("button");
    var button_mature = document.createElement("button");
    var button_adult = document.createElement("button");
    
	button_all.setAttribute("type","button");
    button_general.setAttribute("type","button");
    button_mature.setAttribute("type","button");
    button_adult.setAttribute("type","button");
    
    button_general.setAttribute("id","b_general");
    button_mature.setAttribute("id","b_mature");
    button_adult.setAttribute("id","b_adult");
    
    button_all.className = 'blue';
    button_general.className = 'red';
    button_mature.className = 'red';
    button_adult.className = 'red';
    
    button_all.innerHTML = "Show All Ratings";
    button_general.innerHTML = "Hide General";
    button_mature.innerHTML = "Hide Mature";
    button_adult.innerHTML = "Hide Adult";
    
    button_all.onclick=show_all_ratings;
    button_general.onclick=toggle_general_rating;
    button_mature.onclick=toggle_mature_rating;
    button_adult.onclick=toggle_adult_rating;
    
    new_span.appendChild( button_all )
    new_span.appendChild( button_general )
    new_span.appendChild( button_mature )
    new_span.appendChild( button_adult )
    
    action_div.appendChild( new_span );
    
    check_saved_toggle();
}

function add_gallery_rating_buttons() {
    
    var action_div = $('td[align="center"][width="70%"]').get( 0 );
    
    action_div.appendChild( new_br() );
    
    var new_span = document.createElement("span");
    
    new_span.innerHTML = "Toggle Submissions by Rating: <br/>";
    
    var button_all = document.createElement("button");
    var button_general = document.createElement("button");
    var button_mature = document.createElement("button");
    var button_adult = document.createElement("button");
    
	button_all.setAttribute("type","button");
    button_general.setAttribute("type","button");
    button_mature.setAttribute("type","button");
    button_adult.setAttribute("type","button");
    
    button_general.setAttribute("id","b_general");
    button_mature.setAttribute("id","b_mature");
    button_adult.setAttribute("id","b_adult");
    
    button_all.className = 'blue';
    button_general.className = 'red';
    button_mature.className = 'red';
    button_adult.className = 'red';
    
    button_all.innerHTML = "Show All Ratings";
    button_general.innerHTML = "Hide General";
    button_mature.innerHTML = "Hide Mature";
    button_adult.innerHTML = "Hide Adult";
    
    button_all.onclick=show_all_ratings;
    button_general.onclick=toggle_general_rating;
    button_mature.onclick=toggle_mature_rating;
    button_adult.onclick=toggle_adult_rating;
    
    new_span.appendChild( button_all )
    new_span.appendChild( button_general )
    new_span.appendChild( button_mature )
    new_span.appendChild( button_adult )
    
    action_div.appendChild( new_span );
    
    check_saved_toggle();
}

function add_rating_buttons() {
    
    var action_div = $('div.actions').get( 0 );
    
    action_div.appendChild( new_br() );
    action_div.appendChild( new_br() );
    
    var new_span = document.createElement("span");
    
    new_span.innerHTML = "Toggle Submissions by Rating: ";
    
    var button_all = document.createElement("button");
    var button_general = document.createElement("button");
    var button_mature = document.createElement("button");
    var button_adult = document.createElement("button");
    
	button_all.setAttribute("type","button");
    button_general.setAttribute("type","button");
    button_mature.setAttribute("type","button");
    button_adult.setAttribute("type","button");
    
    button_general.setAttribute("id","b_general");
    button_mature.setAttribute("id","b_mature");
    button_adult.setAttribute("id","b_adult");
    
    button_all.className = 'blue';
    button_general.className = 'red';
    button_mature.className = 'red';
    button_adult.className = 'red';
    
    button_all.innerHTML = "Show All Ratings";
    button_general.innerHTML = "Hide General";
    button_mature.innerHTML = "Hide Mature";
    button_adult.innerHTML = "Hide Adult";
    
    button_all.onclick=show_all_ratings;
    button_general.onclick=toggle_general_rating;
    button_mature.onclick=toggle_mature_rating;
    button_adult.onclick=toggle_adult_rating;
    
    new_span.appendChild( button_all )
    new_span.appendChild( button_general )
    new_span.appendChild( button_mature )
    new_span.appendChild( button_adult )
    
    action_div.appendChild( new_span );
    
    check_saved_toggle();
}

function check_saved_toggle() {
    if ( !GM_getValue( "FAex_toggle_general", true ) ){
        toggle_general_rating();
    }
    if ( !GM_getValue( "FAex_toggle_mature", true ) ){
        toggle_mature_rating();
    }
    if ( !GM_getValue( "FAex_toggle_adult", true ) ){
        toggle_adult_rating();
    }
}

function show_all_ratings() {
    
    //var subs = $("b.t-image");
    //for(var i=0;i<subs.length;i++) {
    //    subs[i].setAttribute("style","visibility:visible;");
 	//}
    
    show_rating( "b.r-general" );
    show_rating( "b.r-mature" );
    show_rating( "b.r-adult" );
    
    var element;
    element = $('#b_general').get( 0 );
    element.className = 'red';
    element.innerHTML = "Hide General";
    element = $('#b_mature').get( 0 );
    element.className = 'red';
    element.innerHTML = "Hide Mature";
    element = $('#b_adult').get( 0 );
    element.className = 'red';
    element.innerHTML = "Hide Adult";
    
    GM_setValue( "FAex_toggle_general", true );
    GM_setValue( "FAex_toggle_mature", true );
    GM_setValue( "FAex_toggle_adult", true );
}

function toggle_general_rating() {
    
    var element = $('#b_general').get( 0 );
    if ( element.className == 'red' ) {
        hide_rating( "b.r-general" );
        element.className = 'blue';
        element.innerHTML = "Show General";
        
         GM_setValue( "FAex_toggle_general", false );
    } else {
        show_rating( "b.r-general" );
        element.className = 'red';
        element.innerHTML = "Hide General";
        
        GM_setValue( "FAex_toggle_general", true );
    }
}

function toggle_mature_rating() {
    
    var element = $('#b_mature').get( 0 );
    if ( element.className == 'red' ) {
        hide_rating( "b.r-mature" );
        element.className = 'blue';
        element.innerHTML = "Show Mature";
        
        GM_setValue( "FAex_toggle_mature", false );
    } else {
        show_rating( "b.r-mature" );
        element.className = 'red';
        element.innerHTML = "Hide Mature";
        
        GM_setValue( "FAex_toggle_mature", true );
    }
    
}

function toggle_adult_rating() {
    
    var element = $('#b_adult').get( 0 );
    if ( element.className == 'red' ) {
        hide_rating( "b.r-adult" );
        element.className = 'blue';
        element.innerHTML = "Show Adult";
        
        GM_setValue( "FAex_toggle_adult", false );
    } else {
        show_rating( "b.r-adult" );
        element.className = 'red';
        element.innerHTML = "Hide Adult";
        
        GM_setValue( "FAex_toggle_adult", true );
    }
    
}

function show_rating( rate ) {
    
    var subs = $( rate );
    for(var i=0;i<subs.length;i++) {
        subs[i].setAttribute("style","visibility:visible;");
 	}
    
}

function hide_rating( rate ) {
    
    var subs = $( rate );
    for(var i=0;i<subs.length;i++) {
        subs[i].setAttribute("style","visibility:hidden;display:none;");
 	}
    
}

function new_append_buttons() {
    
    var text_area = $('textarea[name="profileinfo"]').get( 0 );
    
    var new_p = document.createElement("p");
    new_p.setAttribute("style","text-align:left;");
    
    var button_new_block_r = document.createElement("button");
    var button_new_block_l = document.createElement("button");
    var button_new_user_icon = document.createElement("button");
    var button_new_user_icon_text = document.createElement("button");
    var button_custom_background = document.createElement("button");
    
	button_new_block_r.setAttribute("type","button");
    button_new_block_l.setAttribute("type","button");
    button_new_user_icon.setAttribute("type","button");
    button_new_user_icon_text.setAttribute("type","button");
    button_custom_background.setAttribute("type","button");
    
    button_new_block_r.innerHTML = "Add new block to the right";
    button_new_block_l.innerHTML = "Add new block to the left";
    button_new_user_icon.innerHTML = "Add new user/group icon";
    button_new_user_icon_text.innerHTML = "Add new user/group icon with text";
    button_custom_background.innerHTML = "Add a custom background to your userpage";
    
    text_area.parentNode.appendChild( new_p );
    
    button_new_block_r.onclick=openBlockDialogueRight;
    button_new_block_l.onclick=openBlockDialogueLeft;
    button_new_user_icon.onclick=openIconDialogue;
    button_new_user_icon_text.onclick=openIconTextDialogue;
    button_custom_background.onclick=openCustomBackDialogue;
    
    new_p.appendChild( button_new_block_r );
    new_p.appendChild( button_new_block_l );
    new_p.appendChild( button_new_user_icon );
    new_p.appendChild( button_new_user_icon_text );
    new_p.appendChild( button_custom_background );
    
}

function openIconDialogue() {
    
    var title = prompt('Insert user/group name', '');
    
    var text_area = $('textarea[name="profileinfo"]').get( 0 );
    
    var new_text = "";
    
    if (title) {
        new_text = " :" + title.toLowerCase() + "icon: ";
    }
    
    text_area.value += new_text;
    text_area.scrollTop = text_area.scrollHeight;
    
}

function openCustomBackDialogue() {
    
    var title = prompt('Insert background url', '');
    
    var text_area = $('textarea[name="profileinfo"]').get( 0 );
    
    var new_text = "";
    
    if (title) {
        new_text = " :background" + title.toLowerCase() + ":: ";
    }
    
    text_area.value += new_text;
    text_area.scrollTop = text_area.scrollHeight;
    
}

function openIconTextDialogue() {
    
    var title = prompt('Insert user/group name', '');
    
    var text_area = $('textarea[name="profileinfo"]').get( 0 );
    
    var new_text = "";
    
    if (title) {
        new_text = " :icon" + title.toLowerCase() + ": ";
    }
    
    text_area.value += new_text;
    text_area.scrollTop = text_area.scrollHeight;
    
}

function openBlockDialogueRight() {
    
    var title = prompt('Insert Block Title', 'My Block');
    
    var text_area = $('textarea[name="profileinfo"]').get( 0 );
    
    var new_text = "";
    
    if (title) {
        new_text = "\n:block[" + title + "]";        
        new_text += "\nYour content here\n::";
    }
    
    text_area.value += new_text;
    text_area.scrollTop = text_area.scrollHeight;
    
}

function openBlockDialogueLeft() {
    
    var title = prompt('Insert Block Title', 'My Block');
    
    var text_area = $('textarea[name="profileinfo"]').get( 0 );
    
    var new_text = "";
    
    if (title) {
        new_text = "\n:block[" + title + "]";
        new_text += "[left]";
        new_text += "\nYour content here\n::";
    }
    
    text_area.value += new_text;
    text_area.scrollTop = text_area.scrollHeight;
    
}

function bigger_update_button() {
    
    var update_button = $('input.button[value="Update"]').get( 0 );
    
    update_button.setAttribute("style","width:50%;font-size:15pt");
    
    
}

function bigger_text_area() {
    
    var text_area = $('textarea[name="profileinfo"]').get( 0 );
    
    text_area.setAttribute("style","width:96%;height:250px;");
    
}

function add_fa_extended_code() {
    var page_url = location.href;
    
    var script_list = $("script");
    var i;
    var j;
    var page_text = "";
    
    j = page_url.indexOf('view/');
    var submission_id = page_url.slice( j+5 );
    
    j = submission_id.indexOf('/');
    if ( j > 0 ) {
        submission_id = submission_id.slice(0,j);
    }
    
    for(i=0; i<script_list.length;i++) {
        page_text = script_list[i];
        page_text = page_text.innerHTML;
        j = page_text.indexOf('var small_url');
        if ( j > 0 ) {
            j = page_text.indexOf('"//');
            page_text = page_text.slice(j+3);
            j = page_text.indexOf('";');
            page_text = page_text.slice(0,j);
            break;
        }
    }
    
    if ( j < 0 ) {
        
        script_list = $("object");
        for(i=0; i<script_list.length;i++) {
            page_text = script_list[i];
            page_text = page_text.data;
            j = page_text.indexOf('/art/');
            if ( j > 0 ) {
                page_text = page_text.slice(j+5);
                j = page_text.indexOf('.');
                page_text = page_text.slice(0,j);
                j = page_text.indexOf('/');
                page_text = page_text.slice(j+1);
                
            }
        }
        
        page_text = 't.facdn.net/' + submission_id + '@100-' + page_text + '.jpg';
        
    }
    
    page_text = page_text.replace(/@400/,"@100");
    page_text = 'http://' + page_text;
    console.log( 'thumbnail image address: ' + page_text );
    
    var icon_code = ':image[' + page_text + ']' + page_url + '::';
        
    var container = $( "b:textEquals('Image Specifications:')" );
    if ( container.length > 0 && j > 0 ) {
        container = container[0];
        container = container.parentNode;
        
        container.appendChild( new_br() );
        var new_p = document.createElement("p");
        new_p.innerHTML = '<b>FA Extended icon code:</b> <input type="text" name="" style="width:80%;font-family:monospace;padding:1px;" value="' + icon_code + '"/>';
        container.appendChild( new_p );
        
    }
    
}

function change_document_title() {
    var text = document.title;
    var i = text.indexOf(" --");
    if ( i >= 0 ) {
        text = text.slice(0,i);
    }
    text = text.replace(/Artwork Gallery/,"Gallery");
    text = text.replace(/Scraps Gallery/,"Scraps");
    text = text.replace(/Favorites Gallery/,"Favorites");
    
    text = text + ' [FA Extended]';
    document.title = text;
}

function update_submissions_values() {
    
    var a_subs = $( 'a[title="Submissions"]' );
    
    if (a_subs) {
        a_subs = a_subs[0];
    	var subs_num = a_subs.innerHTML;
    	subs_num = parseInt( subs_num );
        
        GM_setValue( "FAex_s", subs_num );
        
    }
    
}

function update_others_values() {
    
    var a_mess = $( 'a[title="Comments, Journals, Favorites, and Watches"]' );
    var i;
    
    if (a_mess) {
        a_mess = a_mess[0];
    	var a_mess_num = a_mess.innerHTML;
    	var array_num = a_mess_num.split(",");
        
        GM_setValue( "FAex_c", 0 );
        GM_setValue( "FAex_j", 0 );
        GM_setValue( "FAex_f", 0 );
        GM_setValue( "FAex_w", 0 );
        
    	for( i=0; i<array_num.length;i++) {
        	var element = array_num[i];
            var element_num = parseInt( element );
            var element_last = element.slice(-1);
            
            GM_setValue( "FAex_" + element_last.toLowerCase(), element_num );
    	}
    }
    
}

function update_notes_values() {
    
    var a_notes = $( 'a[title="Notes"]' );
    if (a_notes) {
        a_notes = a_notes[0];
    	var notes_num = a_notes.innerHTML;
    	notes_num = parseInt( notes_num );
        
        GM_setValue( "FAex_n", notes_num );
        
    }
    
}

function count_new_submissions() {
    
    var a_subs = $( 'a[title="Submissions"]' );
    
    if ( a_subs.length > 0 ) {
        a_subs = a_subs[0];
    	var subs_num = a_subs.innerHTML;
        
        if ( subs_num == "" ) {
            return 0;
        }
        
    	subs_num = parseInt( subs_num );
        
        var old_num = GM_getValue( "FAex_s", 0 );
        
        var difference = subs_num - old_num;
        if ( difference > 0 ) {
            //a_subs.innerHTML = '<font color="#ffa075">+' + difference + '</font> / ' + subs_num + 'S';
            a_subs.innerHTML = '<font color="#ffa075">+' + difference + 'S</font>';
            return difference;
        }
    }
    return 0;
    
}

function count_new_others() {
    
    var a_mess = $( 'a[title="Comments, Journals, Favorites, and Watches"]' );
    var i;
    var total_difference = 0;
    
    if ( a_mess.length > 0 ) {
        a_mess = a_mess[0];
    	var a_mess_num = a_mess.innerHTML;
    	
        if ( a_mess_num == "" ) {
            return 0;
        }
        
    	var array_num = a_mess_num.split(",");
        var result_string = '';
    	for( i=0; i<array_num.length;i++) {
        	var element = array_num[i];
            var element_num = parseInt( element );
            var element_last = element.slice(-1);
            
            var old_num = GM_getValue( "FAex_" + element_last.toLowerCase(), 0 );
            var difference = element_num - old_num;
            if ( difference > 0 ) {
                total_difference += difference;
                //result_string += '<font color="#ffa075">+' + difference + '</font> / ' + element_num + element_last;
                result_string += '<font color="#ffa075">+' + difference + element_last + '</font>';
                
            } else {
                result_string += element_num + element_last;
            }
            
            if ( i < (array_num.length - 1) ) {
                result_string += ', ';
            }
    	}
        
        a_mess.innerHTML = result_string;
        
        return total_difference;
    }
    return 0;
}

function count_new_notes() {
    
    var a_notes = $( 'a[title="Notes"]' );
    if ( a_notes.length > 0 ) {
        a_notes = a_notes[0];
    	var notes_num = a_notes.innerHTML;
        
        if ( notes_num == "" ) {
            return 0;
        }
        
    	notes_num = parseInt( notes_num );
        
        //var old_num = GM_getValue( "FAex_n", 0 );
        //a_notes.innerHTML = '<font color="#ffa075">+' + difference + '</font> / ' + notes_num + 'N';
        a_notes.innerHTML = '<font color="#ffa075">+' + notes_num + 'N</font>';
        //var difference = notes_num - old_num;
        //if ( difference > 0 ) {  
        //}
        
        return notes_num;
    }
    return 0;
}

function fix_title_comments() {
    // fixes the position of the title before the comments
    
    var title = $( "b:textEquals('User comments')" );
    if ( title.length > 0 ) {
        title = title[0];
        title = title.parentNode;
        title = title.parentNode;
        title = title.parentNode;
        title = title.parentNode;
        var newbr = new_br();
        title.parentNode.insertBefore(newbr, title);
        newbr = new_br();
        title.parentNode.insertBefore(newbr, title);
    }
}

function better_comments_avatars() {
            
    var av_a;
    //var ignore_user = '#';
    
    av_a = $("td.alt1[width='70%'] a");
    
    if ( av_a.length > 0 ) {
    	av_a = av_a[0];
    	av_a.className = "newAvatar";
        //ignore_user = av_a.href;
        
        var newdiv = document.createElement("div");
        
        newdiv.setAttribute("width","100px");
        newdiv.setAttribute("style","display:inline-block;");
        
        var av_td = av_a.parentNode;
        
        //av_td.setAttribute("width","100%");
        
        av_td.insertBefore( newdiv, av_td.childNodes[0] );
        //av_td.prepend( newdiv );
        
        av_td.setAttribute("valign","baseline");
        
        newdiv.appendChild( av_a );
        
        //av_td = $("td.cat[width='70%']").get( 0 );
        //av_td.setAttribute("colspan","2");
        
        add_popup_to_avatar( av_a );
        
    }
    
    var list = $("td.icon");
    
    if( list.length > 0 ) {
        var i;
    	for(i=0;i<list.length;i++) {
	        var av_td = list[i];
            var childs = av_td.childNodes;
            if ( childs.length > 1 ) {
    	    	av_a = childs[1];
            } else {
                av_a = childs[0];
            }
        	av_a.className = "newAvatar";
            
            //if ( av_a.href != ignore_user ) {
            add_popup_to_avatar( av_a );
            //}
    	}
    }
    
    list = $("b.replyto-name");
    
    if( list.length > 0 ) {
        var i;
    	for(i=0;i<list.length;i++) {
	        var av_td = list[i];
            var text = av_td.outerHTML;
            
            av_td = av_td.parentNode;
            av_td = av_td.parentNode;
            av_td.innerHTML = text;
    	}
    }
    
    
}

function blacklist_submissions() {
    // hides and precheck 
    
    var sub_list = $( "b.t-image span" );
    var index;
    var remove_subs = false;
    
    if ( keywords__blacklist.length == 0 ) {
        return;
    }
    
    if ( sub_list.length > 0 ) {
        
        for ( index=0; index<sub_list.length; index++ ) {
            
            var sub = sub_list[index];
            var sub_title = sub.title;
            
            if ( list_in_string( keywords__blacklist , sub_title ) ) {
                
                var parentb = sub.parentNode;
                
                if ( !remove_blacklisted ) {
                	var newdiv = document.createElement("div");
                	newdiv.setAttribute("style",'display:inline-block;visibility:hidden;');
                	parentb.parentNode.appendChild( newdiv );
                	newdiv.appendChild( parentb );
                }
                
                var checkbox = parentb.childNodes[1];
                checkbox = checkbox.childNodes[0];
                
                checkbox.checked=true;
                
                remove_subs = true;
                
            }
            
        }
        
        if ( remove_subs && remove_blacklisted ) {
            var button = $( "input.button.remove-checked" ).get( 0 );
            button.click();
        }
        
    }
    
}

function list_in_string( list, string) {
    var i;
    string = ' ' + string.toLowerCase() + ' ';
        
    for (i=0;i<list.length;i++) {
        var element = list[i].toLowerCase();
        if ( string.indexOf( ' ' + element + ' ' ) >= 0 ) {
            return true;
        }
    }
    
    return false;
}

function fix_top_bar() {
	//fixed top bar
    
    GM_addStyle( ".fixedInPlace{position:fixed; z-index:1000}" );
    
    var top_bar = $("table.block-menu-top");
    top_bar.addClass("fixedInPlace");
    
}

function add_new_line() {
    //adds new line at the end of the page
    
    var body = $("body").get( 0 );
    var brTag = document.createElement("br");
	body.appendChild(brTag);
}

function fix_header() {
	//bump down fur affinity header and ads
    
    var top_bar = $("table.block-menu-top");
    var div = $("div.block-banners").get( 0 );
    var new_div = document.createElement("div");
    new_div.className = "bumpDown";
//    new_div.setAttribute("style","padding-top:" + top_bar.height() +"px;");
//    new_div.addEventListener ("resize", bump_down_page_content, true);
    div.parentNode.insertBefore(new_div, div);
//    
}

//function bump_down_page_content() {
//    var top_bar = $("table.block-menu-top");
//    var div = $("div.bumpDown").get( 0 );
//    div.setAttribute("style","padding-top:" + top_bar.height() +"px;");
//}

//var resizeTimer;
//$(window).resize(function() {
//    clearTimeout(resizeTimer);
//    resizeTimer = setTimeout( bump_down_page_content, 100);
//});

function add_icon_topbar() {
    
    // base64 image
    var icon = '<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xKHIgpYlTeawdl86f4ZgudsaLvJo8Hq0tdyCUOTA5PVPU8q9vqKWEiJGKY4ee+clEEz7206ueaxcETs4SOOhEEoR2Wmi0CUQeFgZrVxfuG9vAPl90UORAsaKZMkpW5L0n04V9zSc02JBiWwuttPwJxTtDtfemdx/IEXpXSvaOj48P5a3+8c+hpS0Kd1C+fw/l7hyh8d8AYa8wenZmVFYAAAAASUVORK5CYII=" />';
    
    var top_td = $("td.header_bkg").get( 0 );
    var new_td = document.createElement("td");
    var new_a = document.createElement("a");
    
    var new_a_2 = document.createElement("a");
    
    new_a_2.className = "link_to_browse";
    
    new_a.href = "http://www.furaffinity.net/";
    new_a_2.href = "http://www.furaffinity.net/browse/";
    
    new_a.innerHTML = icon;
    
    new_a_2.innerHTML = second_icon;
    
    
    new_td.appendChild(new_a);
    if ( $(window).width() >= $(document).width() ) {
        
    	new_td.appendChild(new_a_2);
        new_td.className = "header_bkg";
        
    } else {
    	new_td.className = "header_bkg header_compact";
    }
    new_td.setAttribute("style","padding-left:6px;");
    
    top_td.parentNode.insertBefore(new_td, top_td);
}

function clear_last_searches() {
    
    GM_setValue( "searches", null );
    
    //window.location.reload();
    history.go(0)
    
    return false
}

function toggle_side_menu() {
    
    if ( left_menu_showing ) {
            
            left_menu_showing = false;
        	$( 'div.side_menu' ).hide('slide', {direction: 'right'}, 1000);
            return false;
            
    } else {
        
        left_menu_showing = true;
        $( 'div.side_menu' ).show('slide', {direction: 'right'}, 1000);
        return false;
        
    }
}

function fix_message_icon(num) {
    if(num > 0) {
        var alert_message_icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXP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w9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAH5JREFUeNpivNed9p+BBoCFgYGBQVGUn6qG3n/9kYGJgUZg1OBRg0cNHjV4QA1mgRVzpALkohabfiYGBgZGUrGiKH8GAwMDegWBooasoLj/+uNMBgaGbCyGI4KCgtpjOjQoJ0JdiRI8lEbeZAYGhkKckUchmKgoys+EHoGAAQCGsRiGSBU/MAAAAABJRU5ErkJggg==";
        var icon = $("#message_icon_img").get( 0 );
        icon.setAttribute("src",alert_message_icon);
    }
}

function add_links_topbar() {
           
    var left_menu = $("td.header_bkg ul.dropdown.dropdown-horizontal").get( 0 );
    var left_td = left_menu.parentNode;
    var parent_tr = left_td.parentNode;
    
    var outer_ul = document.createElement("ul");
    outer_ul.className = "dropdown dropdown_left main_dropdown_menu";
    outer_ul.setAttribute("style","float:left;");
    
    left_td.setAttribute("style","width:27px;");
    
    var inner_li = document.createElement("li");
    
    var menu_icon = '<img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAcCAYAAAHjIyRGAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFA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5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAJ9JREFUeNpi+f///38GJMDCwMDAiC6AoQIFAAAAAP//YkE2A0U/il4UfQAAAAD//2JBtxevDXgdiAwAAAAA///CaSwLycZh+JsGRgEAAAD//8IbCmQFAFlBik8T/Zz3ny5+AgAAAP//IjnIWWjuLJJDjD5OGpGhNMg8DQAAAP//IquAoEs+GrSWMA4bn4xG/AiN+NHUNbgsAQAAAP//AwCaMCa63jbV+QAAAABJRU5ErkJggg==" />';
    
    var home_icon = '<img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAMAAADzapwJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAlQTFRF3t7e////////R9Yj/gAAAAN0Uk5T//8A18oNQQAAAEZJREFUeNrUzjsSACAIQ8GH9z+0gx+I2NlJldkigRYHkkXFSTVLR1Qc1XQODefU7RRdTtXpXDqcW929qOqafOD57jfcBRgAgEECeyDOOh4AAAAASUVORK5CYII=" />';
    
    var message_icon = '<img id="message_icon_img" alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJ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RgAAAHZJREFUeNrslTsKgEAMRJ/iRXI7QSz2LFZebnITYyW6YuNnsdmBqZI8QgJJIykooA7AzD6FujsthVTBFVzBFfwruNvO3F0dT+1VfQs0d21mPXB+EFnOo1G4+wwMF/BdEfHGY0QskkJSFnu7vAlIJTrenM4drwMA4/+ZD2HpvOgAAAAASUVORK5CYII=" />';
    
    var side_menu_link = document.createElement("a");
    side_menu_link.innerHTML = menu_icon;
    
    side_menu_link.className = 'dir';
    side_menu_link.href = '#'
    side_menu_link.id = "left-menu";
    
    side_menu_link.onclick=toggle_side_menu;
    
    inner_li.appendChild( side_menu_link )
    
    //inner_li.innerHTML = '<a id="left-menu" class="dir" href="#">' + menu_icon + '</a>';
    
    var page_body = $( "body > div" ).get(0);
    var side_menu_div = document.createElement("div");
    side_menu_div.className = 'side_menu';
    
    page_body.appendChild( side_menu_div );
    
    left_menu.className = "dropdown dropdown_left";
    
    parent_tr.appendChild( left_td );
    left_td.appendChild( outer_ul );
    outer_ul.appendChild( inner_li );
    
    //inner_li.appendChild( left_menu );
    side_menu_div.appendChild( left_menu );
    
    var left_childs = left_menu.childNodes;
    var i;
    for(i=0; i<left_childs.length; i++) {
        var inner_child = left_childs[i].childNodes[0];
        if ( inner_child && inner_child.className == "dir" ) {
            inner_child.className = "";
        }
    }
    
    var a_user_name = $( "a#my-username" );
    
    var _my_username = ""
    
    if ( a_user_name.length > 0 ) {
    	a_user_name = a_user_name[0];
        
        a_user_name.className = "dir";
        
    	var li_container = a_user_name.parentNode;
    
	    var user_name = a_user_name.href;
        
        a_user_name.className = "";
        
        _my_username = a_user_name.innerHTML.replace(/~/,"");
    	a_user_name.innerHTML = a_user_name.innerHTML.replace(/~/,"▼ ");
    
	    var gallery_link = user_name.replace(/user/,"gallery");
	    var scraps_link = user_name.replace(/user/,"scraps");
    	var favorites_link = user_name.replace(/user/,"favorites");
        var journals_link = user_name.replace(/user/,"journals");
    
        var outer_ul = li_container.parentNode;
        outer_ul.className = "dropdown dropdown-horizontal";
        outer_ul.setAttribute("style","float:right;");
    
    	var new_ul = document.createElement("ul");
    
	    new_ul.innerHTML =  '<li><a href="' + user_name + '">User Page</a></li><li><a href="' + gallery_link + '">Gallery</a></li><li><a href="' + scraps_link + '">Scraps</a></li>';
        new_ul.innerHTML += '<li><a href="' + favorites_link + '">Favorites</a></li><li><a href="' + journals_link + '">Journals</a></li>';
    
    	li_container.appendChild( new_ul );
        
        var ul_my_fa_notes = $( "ul.dropdown a:textEquals('Notes')").get( 0 );
        var ul_my_fa = ul_my_fa_notes.parentNode;
        ul_my_fa = ul_my_fa.parentNode;
        
        ul_my_fa_notes.parentNode.removeChild( ul_my_fa_notes );
        
        ul_my_fa.innerHTML = ul_my_fa.innerHTML.replace(/Journals/,"Edit Journals");
        
        //console.log("Add Last Searched if there are some");
        
        var new_li_searched = false;
        var list_searches = GM_getValue( "searches", null );
        if ( list_searches ) {
            
            new_li_searched = document.createElement("li");
            
            var li_string = '<a href="#">▼ Last Searched</a><ul>'
            
			var array_search = list_searches.split('\n');
            var s;
            for (s=0; s<array_search.length; s++) {
                
                li_string = li_string + '<li><a href="http://www.furaffinity.net/search/' + encodeURIComponent( array_search[s] ) + '?perpage=24&order-by=date">' + array_search[s] +'</a></li>'
            }
            
            li_string = li_string + '<li><hr></li><li><a class="clear_search_gm" href="javascript:void();" >Clear List</a></li></ul>';
            
            new_li_searched.innerHTML = li_string;
            
        }
              
        var parent_ul_my_fa = ul_my_fa.parentNode;
        
        var ul_a = parent_ul_my_fa.childNodes[0];
        ul_a.className = "my_fa";
        
        var new_li_hr = document.createElement("li");
        new_li_hr.innerHTML = '<hr>';
        
        var new_li_hr_2 = document.createElement("li");
        new_li_hr_2.innerHTML = '<hr>';
        
        var new_li_hr_3 = document.createElement("li");
       	new_li_hr_3.innerHTML = '<hr>';
        
        var new_li_message = document.createElement("li");
        new_li_message.innerHTML = '<a href="http://www.furaffinity.net/controls/messages/">Message Center</a>';
        
        var new_li_notes = document.createElement("li");
        new_li_notes.innerHTML = '<a href="http://www.furaffinity.net/msg/pms/">Notes</a>';
        
        var left_menu = $("div.side_menu ul").get( 0 );
        //var left_menu = $("ul.main_dropdown_menu > li > ul").get( 0 );
        left_menu.appendChild( new_li_hr );
        left_menu.appendChild( li_container );
        left_menu.appendChild( parent_ul_my_fa );
        left_menu.appendChild( new_li_hr_2 );
        left_menu.appendChild( new_li_message );
        left_menu.appendChild( new_li_notes );
        left_menu.appendChild( new_li_hr_3 );
        
        if( new_li_searched ) {
            
            //left_menu.appendChild( new_li_searched );
            
            //var clear_button = $( "a.clear_search_gm" ).get(0);
            //clear_button.onclick = clear_last_searches
            
            //var new_li_hr_3 = document.createElement("li");
        	//new_li_hr_3.innerHTML = '<hr>';
            
            //left_menu.appendChild( new_li_hr_3 );
            
        }
        
        var right_menu = $("ul.dropdown.dropdown-horizontal > li.noblock");
        if ( right_menu.length > 0 ) {
        	var log_out = right_menu[right_menu.length-1];
        	var swf_toggle = right_menu[right_menu.length-2];
            
            swf_toggle.className = swf_toggle.className.replace(/noblock/,"");
            log_out.className = '';
        
        	left_menu.appendChild( swf_toggle );
        	left_menu.appendChild( log_out );
        }
        
        var messages_link = $('ul.dropdown-horizontal li.noblock a[href="/controls/messages/"]').get(0);
        
        var message_parent = messages_link.parentNode;
        
        message_parent.innerHTML = message_parent.innerHTML.slice(2,-2);
        
        message_parent.className = "li_to_remove";
        
        var new_li = document.createElement("li");
        
        new_li.innerHTML = '<a class="link_to_userpage" href="' + user_name + '">' + home_icon + '</a>';
        
        message_parent.parentNode.insertBefore( new_li, message_parent );
        
        var new_li_2 = document.createElement("li");
        
        message_parent.parentNode.insertBefore( new_li_2, message_parent );
        
        new_li_2.innerHTML = '<a class="link_to_userpage" href="#">' + message_icon + '</a>';
        
        new_ul = document.createElement("ul");
        
        new_ul.className = "dropdown-messages";
        
        new_li_2.appendChild( new_ul );
        new_ul.appendChild( message_parent );
        
        new_ul.appendChild( messages_link );
        var new_li = document.createElement("li");
        new_li.innerHTML = '<hr>';
        new_ul.appendChild( new_li );
        
        var message_as = $('ul.dropdown-messages li a');
        for ( i=0; i < message_as.length; i++ ) {
            
            var mess_a = message_as[i];
           	
            if ( mess_a.innerHTML != "" ) {
            
            	var new_li = document.createElement("li");
            
	            new_ul.appendChild( new_li );
    	        new_li.appendChild( mess_a );
            }
            
        }
        
        var new_li = $('li.li_to_remove').get(0);
        new_ul.removeChild( new_li );
        
    } else {
        
        
        
    }
    
    //console.log("Navbar Search");
    
    right_menu = $("ul.dropdown.dropdown-horizontal").get( 0 );
        
    var new_li = document.createElement("li");
    
    var search_image = 'src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAcCAYAAAEIFJ9FAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhG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TWjY++5d+cGWmtqampYX1lFemqSdDpNIpHgwsVL1O2tRQhBaWkpUkoHWFSR1prZ2Vm+fU9zrrmJumQ9Q8PDCM8jGo3ieZ4jY0xAW3uKVMtHnjwdotxaYrHY71QUU2SMIQgCrna00nD4CB1tLS7IUsoCQrlcjt67PVxpaaUz1U5/fx/GGKfqrzcKggCtNRuqNxIEASUlJS4DkUiEfD6P53kIIVBKUVlVzdcvE38GaTlnLapRSmGtpenseXpvdbF123YO1e9HKeUArbUopQB4PjrG2zevSHXddOVYEPPw4RcWFtBao7Xm4eNBXjwbZmZmhuMnTjHw6AH9Pd3s2r2Hg41HSVRUMDk1xbvXLxkf/8yBZJKBwUHisZgzg1NkrcUYw9zcHFprPnyaoLPtMtlsFt/32bGzlvvXulkX8wvWNZnOMP0zy5bNmzh5rNEp8H2/wG0FQFprfkxnaT5zmkwmQzwe5/rtPhqS+5xVw7cJgoCysjKXpcUbhXO1bG9JKalMlDMyMuLuFI1G3e9rKbvVFOKKQOF9rlQv/911azWs2Ps1AN1IVAlcDpRJAAAAAElFTkSuQmCC"';
    
    new_li.className = "noblock";
    
    var new_li_form  = '<form action="http://www.furaffinity.net/search/" method="post" class="search_navbar">';
    new_li_form += '<input type="text" id="search_box" name="q" value="" /><input type="image" ' + search_image + ' value="Submit" alt="Submit">';
    new_li_form += '<input type="checkbox" name="rating-general" checked="checked" style="display:none;" />';
    new_li_form += '<input type="checkbox" name="rating-mature" checked="checked" style="display:none;" />';
    new_li_form += '<input type="checkbox" name="rating-adult" checked="checked" style="display:none;" />';
    new_li_form += '</form>';
    
    new_li.innerHTML = new_li_form;
    
    right_menu.appendChild( new_li );    
    
    return _my_username.toLowerCase();
    
}

function save_last_search() {
    
    var results = $('center.flow');
    
    if (results.length > 0) {
        
   		var input_text = $('input.textbox[name="q"]').get( 0 );
        
        var input_page = $('input.textbox[name="page"]').get( 0 );
        
        if ( input_page.value == "1" ) {
        	var searched_text = input_text.value;
            
            var list_searches = GM_getValue( "searches", null );
            if ( list_searches ) {
                
                var array_search = list_searches.split('\n');
                
                if (array_search.indexOf( searched_text ) == -1) {
                
                	array_search.unshift( searched_text )
                
                	if ( array_search.length > 5 ) {
                    	array_search.pop()
                	}
                
                    list_searches = array_search.join("\n");
                	GM_setValue( "searches", list_searches );
                }
                
            }
            else {
                
                GM_setValue( "searches", searched_text );
                
            }
            
        }
        
    }
    
}

function scroll_down() {
    //scrolls down after the banner
	window.scrollBy(0,140);
}

function getButtonByValue(v) {
    var inputs = $('button');
    var i;
    for ( i=0; i < inputs.length; i++ ) {
        if (inputs[i].value == v) {
            return inputs[i];
        }
    }
    return false;
}

function add_top_navbar( gallery_page ) {
    var nav = null;
    var gallery = null;
    
    var prev = getButtonByValue("Back");
    
    nav = prev.parentNode;
    nav = nav.parentNode;
    nav = nav.parentNode;
    
    gallery = nav.parentNode;
    
    if ( gallery_page == "none" ) {
        
        nav.childNodes[1].setAttribute('colspan','2');
        
        nav = nav.parentNode;
        nav = nav.parentNode;
        nav = nav.parentNode;
        nav = nav.parentNode;
        
        gallery = gallery.parentNode;
        gallery = gallery.parentNode;
        gallery = gallery.parentNode;
        gallery = gallery.parentNode;
        gallery = gallery.childNodes[1];
        
    } else {
        
        gallery = gallery.childNodes[1];
    }
    
    nav.className = "alt1";
    
    nav = nav.cloneNode(true);
    
    if ( gallery_page == "none" ) {
        
        var tr = document.createElement("tr");
        tr.className = "alt1";
        tr.innerHTML = '<td colspan="3"><hr class="bbcode bbcode_hr"></td>'
        gallery.parentNode.insertBefore(tr, gallery);
        
    }
    
    gallery.parentNode.insertBefore(nav, gallery);
    
}

function new_block(title, content, class_name) {
    
    var cell_padding = "";
    if(!class_name) {
        class_name = "";
        cell_padding = "3";
    } else {
        cell_padding = "10";
    }
    
	return '<table cellpadding="' + cell_padding + '" cellspacing="0" border="0" width="99%" class="maintable">\n<tr>\n<td align="center" class="cat_header">\n<b>' + title + '</b>\n</td>\n</tr>\n<tr>\n<td class="alt1 user-info newBlock rounded_corners ' + class_name + '" align="left">' + content + '</td>\n</tr>\n</table>';
}

function new_block_wide(title, content) {
       
	return '<table cellpadding="3" cellspacing="0" border="0" width="100%" class="maintable">\n<tr>\n<td align="center" class="cat_header">\n<b>' + title + '</b>\n</td>\n</tr>\n<tr>\n<td class="alt1 user-info newBlock rounded_corners" align="left">' + content + '</td>\n</tr>\n</table>';
}

function new_icon(image, link) {
    
    return '<div class="newIcon"><a href="' + link + '"><img src="' + image + '" align="middle" alt></a></div>';
}

function  new_map(location) {
    
    location = encodeURIComponent( location );
    
    return '<div class="newMap"><img src="http://maps.googleapis.com/maps/api/staticmap?center=' + location + '&zoom=3&size=500x250&maptype=roadmap&markers=color:red%7Ccolor:red%7C' + location + '&sensor=false" alt="' + location + '"></div>' ;
}

function new_title_block( title ) {
    return '<table cellpadding="3" cellspacing="0" border="0" width="99%" class="maintable">\n<tr>\n<td class="cat_header" align="center"><b>' + title +'</b></td>\n</tr>\n</table>\n<br/>';
}

function new_br() {
    return document.createElement("br");
}

function new_element( html ) {
    var span = document.createElement("span");
    span.innerHTML = html;
    return span;
}

function new_anchor( name ) {
    
    var a = document.createElement("a");
    a.setAttribute("name",name);
    
    return a
    
}

function add_popup_class( element ) {
    
    var child_list = element.childNodes[1];
    child_list = child_list.childNodes;
	child_list = child_list[child_list.length - 2];
    child_list = child_list.childNodes[1];
   	var last_child = child_list.childNodes[0];
    last_child.className = "popupLink";
}

function add_popups( element ) {
    var popups = $(".popupLink");
    for(var i=0;i<popups.length;i++) {
  		popups[i].onclick=openPopup;
 	}
}

function openPopup() {
	var url = this.href;
	popupWindow = window.open(url,'popUpWindow','height=600,width=250,left=200,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes');
	return false;
}

function init() {
    
    //background:
    
    var back = "background-image: url(data:image/jpeg;base64,/9j/4QmDRXhpZgAATU0AKgAAAAgADAEAAAMAAAABAQAAAAEBAAMAAAABAQAAAAECAAMAAAADAAAAngEGAAMAAAABAAIAAAESAAM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jdFRvcGxvbmcAAAAAADhCSU0D7QAAAAAAEABIAAAAAQACAEgAAAABAAI4QklNBCYAAAAAAA4AAAAAAAAAAAAAP4AAADhCSU0EDQAAAAAABAAAAB44QklNBBkAAAAAAAQAAAAeOEJJTQPzAAAAAAAJAAAAAAAAAAABADhCSU0nEAAAAAAACgABAAAAAAAAAAI4QklNA/UAAAAAAEgAL2ZmAAEAbGZmAAYAAAAAAAEAL2ZmAAEAoZmaAAYAAAAAAAEAMgAAAAEAWgAAAAYAAAAAAAEANQAAAAEALQAAAAYAAAAAAAE4QklNA/gAAAAAAHAAAP////////////////////////////8D6AAAAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAOEJJTQQAAAAAAAACAAE4QklNBAIAAAAAAAYAAAAAAAA4QklNBDAAAAAAAAMBAQEAOEJJTQQtAAAAAAAGAAEAAAAEOEJJTQQIAAAAAAAQAAAAAQAAAkAAAAJAAAAAADhCSU0EHgAAAAAABAAAAAA4QklNBBoAAAAAA38AAAAGAAAAAAAAAAAAAAEAAAABAAAAACUAZgBhAGQAZQBkAF8AcwBxAHUAYQByAGUAcwAtAGQAYQByAGsAXwBiAGEAYwBrAGcAcgBvAHUAbgBkAF8AcABhAHQAdABlAHIAbgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAAAAG51bGwAAAACAAAABmJvdW5kc09iamMAAAABAAAAAAAAUmN0MQAAAAQAAAAAVG9wIGxvbmcAAAAAAAAAAExlZnRsb25nAAAAAAAAAABCdG9tbG9uZwAAAQAAAAAAUmdodGxvbmcAAAEAAAAABnNsaWNlc1ZsTHMAAAABT2JqYwAAAAEAAAAAAAVzbGljZQAAABIAAAAHc2xpY2VJRGxvbmcAAAAAAAAAB2dyb3VwSURsb25nAAAAAAAAAAZvcmlnaW5lbnVtAAAADEVTbGljZ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AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+/+4AIUFkb2JlAGRA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36WvDUC1dthChmeqacwFWkRnkKDN7aPusbluEkS4dW5IVrTWYbcbWYBwcPqvs7SwMwynUpayrMLfIwBa5w8Pu0aPQLVxVcWlyhBehN4whbbY2G+6uG0bvcAUhZUGvCWZCnJhjtTAH2PCx41el22ywFQ1FI4Kst9CDG3foNfBocLGj4qqQNylBVr942p3H/0wBIwqU7UcVZUrNbGIDy/9ljum+B0iTMr669nb1furjd8BUki0nQsqyULeEuCmbHL0Zu2j4GRJiqSsxaxI0xgECQcGv77WNGo0u2wGwR4Mk2syKDQiNZh7AfVXDfl3dXu9LhKkqeZpUcq7SFvBskCmSGX1Vw2jgR33m8VpcvAuBOXS1t18EdrMPYZhBwvRH7rA1BTSWt0taULtjta9gJw8LHjnR82jGSk5FUdZq10XhiQKZ/3a+zuywikiknSsizJrNbILpcdhwvDYb21KzVm51hKvFHFmaNj0Zu35d892urgFpR5N51J1jRrd6/8AZc+hv9JgCqnBFLcjQsQpkcbWZr3v3ZG5dc7nZo+Twsyna714pkATet2r1+z93wEYw9LlRhEWdCzaYr3Qe/u0WNGx/MU4Ubr6xh2xfIe81jRgfPEwMyXS6pIq26VmtxQG174OF3psEYvOY6qlJc3irX13gx2pmhw+6uG/LsCIk5ZMkS1iTetWuZa4T7xw2Xh1f6PFXS6S4S5F8QzwbaLM174G+6+zu922KRjdJoclXktMwbaMB4c+vHb8r3tt3v5zCehSku5Na9sPO1M79vuzhvy4+y8n5PGShqKrNbzskPMm8HmR89fdosZr4db2uCEua1dxAk93934eN9JhSVVZOekv894MfGdz0RXG7YAoZC13tZEk1sgr3cSY0eNgVExaSvyLWoUyMBqfxM5/ssdr4dpWvJ+UHhNKlpJedLWqg2Q0CA9OcAbzdvF9nAHte873H//Z);";
    
    
    // adds new css styles

    var style = "";
    
    var colour_navbar = "rgba(32, 34, 36, 0.9)";
       
    var colour_1 = "rgb(106, 114, 131)";
    var colour_2 = "rgba(46, 59, 65, 0.8)";
    
    var text_colour = "rgb(255, 255, 255)";
    var colour_grey = "rgb(175, 175, 175)";
    
    // FA Extended Style
    
    style += 'body{\
					padding: 0px;\
					margin: 0px;\
					font-size: 7.5pt;\
					font-family: Verdana, sans-serif;\
					background-color: #2e3b41;\
					color: ' + text_colour + ';' + 
                    back + 
                   	'background-repeat: repeat;\
					background-attachment:fixed;}\
			body > div{\
					background-color: rgba(106,114,131,0.0);}\
			div.bumpDown{\
					height:65px;}\
			TABLE, TR, TD, TH {\
					font-family: Verdana, sans-serif;\
					font-size: 7.5pt;}\
			b {\
					font-size: 8pt;\
					font-weight: bold;}\
			div.tab b {\
					font-size: 7.5pt;\
					font-weight: bold;}\
			font > b {\
					font-size: 10.5pt;}\
			div.block-banners.clearfix{\
					display:none;}\
			td.alt1.user-info td.alt1.user-info > span{\
					font-weight: bold;}\
			.maintable, .submissions, td.preview, td.desc, td.info{\
					background-color: rgba(106,114,131,0.0);}\
			.innertable{\
					background-color: rgba(46,59,65,0.0); }\
			.block-menu-top.fixedInPlace{\
					opacity: 1.0;\
					box-shadow:2px 2px 2px #2e2e2e;\
					-moz-box-shadow:2px 2px 2px #2a2a2a;\
					-webkit-box-shadow:2px 2px 2px #2a2a2a;}\
			.block-menu-top.fixedInPlace:hover{\
					opacity: 1.0 !important;}\
			td.cat .maintable{\
					background-color: rgba(106,114,131,0.0); }\
			.cat{\
					background-color: rgba(106,114,131,0.0);\
					border:0px; }\
			#sessions-form .container, #activity-periods-list .container, .personal-messages .container,\
			.personal-messages table.maintable_newpm td.alt1 form table.container tr:not(.hover) td.alt1, table#admin_notice_do_not_adblock {\
					background-color: rgba(106,114,131,0.0);}\
			.cat_header, td.alt1_ext table.maintable td.cat:first-child, .maintable_session td.cat{\
					border:2px;}\
			.cat_header, td.alt1_ext table.maintable td.cat:first-child,\
            .maintable_session td.cat, .tab a, #frontpage .cat{\
					border-style:solid;\
					border-width: 2px;\
					border-color: rgba(35, 45, 49, 0.8);\
					background-color: ' + colour_1 + ';\
					color: ' + text_colour + ';}\
			.cat_header{\
					font-size:8pt;\
					padding: 4px;}\
			.header{\
					color: white;}\
			.block-menu-top td{\
					background-color: ' + colour_navbar + ';}\
			div#news{\
					margin-top:16px;}\
			div.alt1, .personal-messages .container, .journal_block td.alt1, .about_block td.alt1, .shouts_block td.alt2{\
					background-color: rgba(106,114,131,0.0);\
					color: ' + text_colour + ';}\
			td.alt1, tr.alt1, td.cat table.maintable.alt1 > tbody > tr > td, table.container-comment, \
			div#stats-submission td.cat > table.maintable[cellspacing="1"] > tbody > tr >td, form.viewmessage > table, \
            td.alt2, div#news, .lead, .tab u, div#controls-journal table.maintable_newpm > tbody > tr > td.alt1_ext, table#admin_notice_do_not_adblock td, \
			table.maintable_newpm > tbody > tr > td.cat {\
					background-color: ' + colour_2 + ';\
					color: ' + text_colour + ';}\
			.alt1, .cat{\
					color: ' + text_colour + ';}\
			div#description_popup {\
					padding:2px;\
					background-color: rgba(46, 59, 65, 0.95);\
					border-radius:6px;\
					color: ' + text_colour + ';}\
			center.flow.with-titles{\
					vertical-align:middle;}\
			td.shouts_block table.shoutBlock{\
					border-collapse: separate;\
					border-width: 2px;\
					border-style:solid;\
					border-color: '+ colour_1 +';\
					border-radius:1px;}\
			table.container-comment, .maintable_newpm, .table_submission, .table_top_spacing, .table_top_more_spacing, \
			table.maintable_user_content > tbody > tr > td > table.maintable, table.maintable_user_content > tbody > tr > td > div > table.maintable,\
			table.maintable_user_content > tbody > tr > td > span > table.maintable, .maintable_session, div#news, \
			.table_submission > tbody > tr > td > table.maintable, td.alt1_ext > table.maintable, form.viewmessage > table,\
			div#stats-submission td.cat > table.maintable[cellspacing="1"], table#admin_notice_do_not_adblock{\
					border-collapse: separate;\
					border-width: 5px;\
					border-style:solid;\
					border-color: '+ colour_1 +';\
					-moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);\
					-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);\
					box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);\
					border-radius:1px;}\
			a#fa_header p img{\
					border-radius:5px;\
					-moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);\
					-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);\
					box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);}\
			td.journal_block > table.maintable, td.about_block > table.maintable, td.about_block > span > table.maintable,{\
					border-width: 0px;\
					border-radius:0px;}\
			td.journal_block > table.maintable td.cat_header,\
			td.about_block > table.maintable td.cat_header, td.about_block > span > table.maintable td.cat_header{\
					border-width: 0px;\
					text-align: left !important;\
					border-radius:3px;}\
			div#stats-submission td.cat > table.maintable[cellspacing="1"]{\
					margin-top:10px;}\
			.container-comment td.cat, .container-comment th, .container-comment .lead, td.alt1.addpad td.alt1.addpad{\
					background-color: rgba(106,114,131,0.0);}\
			.container-comment div.menu b, td.lead.addpad b{\
					font-size:10pt;}\
			div.tab u, div.tab b a{\
					border-radius:3px;}\
			td.alt1.ldot{\
					background-color: rgba(106,114,131,0.0);\
					color: ' + text_colour + ';}\
			td.alt2 .lead, td.alt2 .alt1, table.bpix.tpix.rpix.lpix[width="1%"] td.alt1{\
					background-color: rgba(106,114,131,0.0);}\
			.lead{\
					border-top: 0px;\
					border-bottom:0px;}\
			form.viewmessage > table{\
					margin-top:5px;\
					margin-bottom:6px;}\
			.maintable_user_content{\
					margin-top:4px}\
			.table_top_spacing{\
					margin-top:4px;}\
			.table_top_more_spacing{\
					margin-top:8px;}\
			div#browse table.maintable.table_top_spacing td.cat > form > font{\
					line-height:200%;\
					margin-top:2px;}\
			div.tab{\
					width:100%;\
					margin-bottom:4px;\
					margin-left:15px;}\
			table.table_div_tab{\
					width:100%;}\
			.tab u{\
					font-weight: bold;\
					border-bottom:1px solid #6A7283;\
					padding:5px 6px 4px 6px;}\
			.tab a{\
					padding:5px 6px 4px 6px;}\
			ul.dropdown li.noblock {\
					padding-right: 5px;\
					padding-left: 5px;}\
			ul.dropdown.main_dropdown_menu li.noblock{\
					padding-right: 0px;\
					padding-left: 0px;}\
			ul.dropdown li.noblock a:first-child{\
					padding-left: 0px;}\
			ul.dropdown.dropdown_left ul ul{\
					left: -99%;}\
			ul.dropdown.dropdown_left ul{\
					left: -130px;}\
			ul.main_dropdown_menu > li > ul{\
					top:5px;}\
			div.side_menu > ul{\
					background-color: rgba(32, 34, 36, 0.9);}\
			div.side_menu > ul > li a:hover{\
					background-color:#2e2e2e;}\
			ul.dropdown ul{\
					opacity:1.0;\
					background-color: rgba(51, 51, 51, 0.95);\
					border: 1px dashed rgba(207, 207, 207, 0.2);}\
			div.side_menu{\
					z-index:1001;\
					display: none;\
					position:fixed;\
 					top:45px;\
 					right:0;\
					width:160px;\
                    height:100%;}\
			div.side_menu > ul{\
					height:100%;\
					position:absolute;}\
			div.side_menu > ul > li{\
					width:160px;}\
			div.side_menu ul.dropdown.dropdown_left ul{\
					top:8px;\
					left:-190px;}\
			ul.dropdown ul li.active a:hover{\
					background-color:rgba(32, 34, 36, 0.5);}\
			ul.dropdown.main_dropdown_menu li.noblock a, ul.dropdown ul a{\
					padding: 4px 5px 4px 14px;\
                	width:171px;}\
			ul.dropdown li.noblock a, ul.dropdown li.noblock form{\
            		display:inline-block;\
					padding:7px 0;}\
			ul.dropdown li.noblock input[type="text"]{\
					width:160px;}\
			ul.dropdown li.noblock form input{\
					vertical-align:bottom;\
					padding:0px;\
					display:inline-block;\
					margin:0px;\
					font-size:14pt;\
					border:0px;\
                    height:28px;}\
			ul.dropdown-horizontal li.noblock a {\
					padding-top:14px;}\
			td.header_bkg form.search_navbar input[type="image"] {\
					vertical-align:bottom;\
					display:inline-block;\
					margin:0px;\
					margin-left:-2px;}\
			td.header_bkg img{\
					margin:1px;}\
			.personal-messages tr.hover td, div#messagecenter-other ul.message-stream li.hover,\
			div#messagecenter-other ul.message-stream table:hover, #sessions-form table.container tr.hover td, #activity-periods-list table.container tr.hover td,\
			.personal-messages tr.hover td{\
					cursor:default;\
					background-color:rgba(49, 64, 68, 0.7);}\
			.personal-messages tr.checked td, div#messagecenter-other ul.message-stream li.checked,\
			div#messagecenter-other ul.message-stream table.checked, center.flow.messagecenter b.checked,\
			#sessions-form table.container tr.checked td, #activity-periods-list table.container tr.checked td, .personal-messages tr.checked td{\
					background-color:rgba(65, 80, 84, 0.7) !important;}\
			div#messagecenter-other ul.message-stream table.new_journal_entry:hover{\
					background-color:rgba(56, 50, 50, 0.0);}\
			div#submission .prev, div#submission .next{\
					padding:3px;}\
			.button, button, input[type="button"], input[type="submit"], input[type="reset"], a.oldest, a.newest, a.more {\
					cursor:pointer;\
					margin:1px;\
					padding:3px;\
					padding-left:8px;\
					padding-right:8px;\
					font-size:8pt;\
					border:1px solid #cccacb;\
					background-color: rgba(255, 255, 255, 0.8);\
					color: rgb(39, 41, 44);\
					-moz-border-radius: 5px;\
					border-radius: 5px;}\
			div#messagecenter-submissions div.navigation a, div#messagecenter-submissions div.navigation .newest,\
			div#messagecenter-submissions div.navigation .oldest, div#messagecenter-submissions div.actions input{\
					margin:1px;\
					padding:3px;\
					background-color: rgba(255, 255, 255, 0.8);\
					color: rgb(39, 41, 44);}\
			div#messagecenter-other ul.message-stream li.section-controls:first-child{\
					border-bottom: 0px;}\
			a#fa_header{\
					cursor:default;\
					width:100%;\
					height:100%;\
					background:none;}\
			.block-banners{\
					border-bottom:0px solid #6A7283;\
					height:150px;\
					width:100%;\
					margin-bottom: 25px;}\
			.block-banners p{\
					margin: 47px;}\
			table.story_submission td{\
					font-size: 9pt;\
					line-height: 150%;\
					padding:15px;\
					padding-right:30px;\
					padding-left:30px;}\
			table.new_journal_entry{\
					display:inline-table;}\
			table.new_journal_entry > tbody > tr > td:first-child {\
					width:auto;\
                    min-width:140px;}\
			li.new_journal_entry{\
					border: 0px;\
					border-bottom: 1px;\
					border-style: dotted;}\
			div#messagecenter-other ul.message-stream li.new_journal_entry input{\
					bottom:19px;}\
			div#messagecenter-other ul.message-stream li.new_journal_entry {\
					padding:4px 0 4px 20px;\
					margin-top:2px;\
					margin-bottom:2px;}\
			div.bigger_text_size{\
					font-size: 9pt;}\
			table.story_submission tbody{\
					background-color: rgba(98, 118, 128, 0.2);\
					color: ' + text_colour + ';\
                    font-size: 9pt;}\
			div.bbcode_quote{\
					border:1px dashed ' + colour_1 + ';}\
			A:VISITED, .alt1 A:VISITED, .alt2 A:VISITED, div#messagecenter-other a:visited{\
					color:rgb(173, 173, 255);}\
			A:LINK, .alt1 A:LINK, .alt2 A:LINK, div#messagecenter-other a:link{\
					color:rgb(173, 173, 255); }\
			ul.dropdown li A:LINK, ul.dropdown li A:VISITED{\
					color:#cfcfcf; }\
			.tab a{\
					color: ' + text_colour + ';\
        			border-top: 1px solid ' + colour_1 + ';\
    				border-left: 1px solid ' + colour_1 + ';\
    				border-right: 1px solid ' + colour_1 + ';}\
			.cat_header a:LINK, a.iconusername:LINK div.newIconDiv, td.alt1_ext table.maintable td.cat:first-child a:LINK,\
            .tab a:LINK {\
					color:rgb(255, 255, 255);}\
			.cat_header a:VISITED, a.iconusername:VISITED div.newIconDiv, td.alt1_ext table.maintable td.cat:first-child a:VISITED,\
			.tab a:VISITED {\
					color: rgb(255, 255, 255);}\
			.tab a:HOVER, a:HOVER{ \
					text-decoration: none !important;\
					color: #FFFFFF !important;\
					text-shadow: 2px 2px 7px #000000;}\
			.action-link{\
					color: ' + text_colour + '; }\
			#controls-journal #journals-list div span a.delete{\
					font-weight: bold;\
					color: rgb(255, 175, 175); }\
			#controls-journal #journals-list div span a.edit{\
					font-weight: bold;\
					color: rgb(173, 173, 255); }\
			div#keywords a, div#keywords a:link, div#keywords a:hover, div#keywords a:visited{\
            		font-weight: bold;}\
			.popup_date, div#messagecenter-other #messages-watches ul.message-stream div.info small span,\
			center.flow.userpage-first-submission span.popup_date, center.flow.userpage-first-favorite span.popup_date{\
					font-style: italic;\
					font-weight: bold;\
					color: ' + colour_grey + '; }\
			.footer .ads{\
					margin-left:0px;}\
			div.ads div.in{\
					width:auto;}\
			div.ads div.ad{\
					margin:0 10px;}\
			.ldot{\
					border-left:1px dotted rgb(175, 175, 175);}\
			.bdot{\
					border-bottom:1px dotted rgb(175, 175, 175);}\
			.tdot{\
					border-top:1px dotted rgb(175, 175, 175);}\
			form table.maintable_newpm td.alt1.addpad > table.maintable > tbody > tr > td.alt2{\
					border-top:1px dotted rgb(175, 175, 175);}\
			form > table table.maintable_newpm > tbody > tr > td.alt1.addpad > table.maintable{\
					border-bottom:1px dotted rgb(175, 175, 175);}\
			font.greyed_font, td.alt1.ldot{\
					color:' + colour_grey + ';}\
			td.user-contacts div.websites, td.user-contacts div.artsites, td.user-contacts div.instant-messanging, td.user-contacts div.gaming{\
    				float: left;\
    				width: 99%;\
					min-width:300px;\
    				margin: 2px 5px 2px 0;}\
			td.user-contacts div.instant-messanging td, td.user-contacts div.artsites td, td.user-contacts div.websites td, td.user-contacts div.gaming td,\
            td.user-contacts div.instant-messanging th, td.user-contacts div.artsites th, td.user-contacts div.websites th, td.user-contacts div.gaming th{\
					padding:2px;\
					vertical-align:middle;\
					display:table-cell;}\
			td.user-contacts div th img, td.user-contacts div th strong {\
            		vertical-align:middle;}\
			td.user-contacts div.instant-messanging th, td.user-contacts div.artsites th, td.user-contacts div.websites th, td.user-contacts div.gaming th {\
					width:95px;}\
			div#news{\
					width:85%;}\
			table#admin_notice_do_not_adblock{\
					width:70%;}\
			a.link_to_userpage {\
					margin-top:2px;}\
			a.link_to_browse {\
					margin-left:5px;}\
			td.header_bkg:first-child{\
					width:280px;\
					padding:3px;}\
			td.header_bkg{\
					width:auto;}\
			td.header_bkg.header_compact{\
					width:60px !important;}\
			table.table_submission td.alt1_ext object{\
					visibility: visible;\
					position: relative;\
					z-index: 5;}';
    
    //style += 'tbody > tr:first-child > td.cat_header > b{text-shadow: 0 0 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 0, 0, 0.3),0 0 10px rgba(0, 0, 0, 0.3),0 0 10px rgba(0, 0, 0, 0.3),0 0 10px rgba(0, 0, 0, 0.3);}';
    
    // icons and other stuff
    
    style += ".newBlock{\
					max-width:500px;\
					overflow:auto;}\
			.newBlockHidden{\
					max-width:500px;\
					overflow:hidden;}\
			td.alt1.user-info a.iconusername div.newIconDiv{\
					margin-top:6px;\
					margin-bottom:6px;}\
			a.iconusername_height div{\
					padding:10px;}\
			.newIconDiv{\
					text-align:start;\
					margin:2px;\
					padding:2px;\
					vertical-align:middle;\
					display:inline-block;\
					background-color: #383838;\
					box-shadow:2px 2px 2px #2e2e2e;\
					-moz-box-shadow:2px 2px 2px #2a2a2a;\
					-webkit-box-shadow:2px 2px 2px #2a2a2a;}\
			div.newIconDiv div{\
					display:inline-block;\
					vertical-align:middle;}\
			div.newIconDiv img{\
					border-radius:3px;\
					vertical-align:middle;\
					max-width:50px;\
					max-height:50px;}\
			.newIcon{\
					border:1px solid #333;\
					display:inline-block;\
					background-color: #383838;\
					box-shadow:2px 2px 2px #2e2e2e;\
					-moz-box-shadow:2px 2px 2px #2a2a2a;\
					-webkit-box-shadow:2px 2px 2px #2a2a2a;}\
			.newIcon img{\
					max-width: 110px;\
					max-height: 110px;\
					border-radius:3px;}\
			.newMap{\
					border:1px solid #333;\
					display:inline-block;\
					background-color: #383838;\
					box-shadow:2px 2px 2px #2e2e2e;\
					-moz-box-shadow:2px 2px 2px #2a2a2a;\
					-webkit-box-shadow:2px 2px 2px #2a2a2a;}\
			.newMap img{\
					border-radius:5px;}\
			.newAvatar{\
					border-radius:7px;\
					border:1px solid #333;\
					display:inline-block;\
					max-width: 150px;\
					max-height: 150px;\
					background-color: #2E3B41;\
					box-shadow:2px 2px 2px #2a2a2a;\
					-moz-box-shadow:2px 2px 2px #2a2a2a;\
					-webkit-box-shadow:2px 2px 2px #2a2a2a;}\
			.newAvatar img{\
					border-radius:7px;}\
			ul.avatarUl{\
					width:100px;}\
			ul.avatarUl li{\
					width:100px;\
					text-align:left;}\
			ul.avatarUl li a{\
					width:100px;}\
			ul.dropdown ul.avatarUl a, ul.dropdown ul li {\
					width: auto;}\
			ul.dropdown ul.avatarUl a:hover {\
					width: auto;}\
			table.shoutBlock {\
					min-height:140px;}";
    
    GM_addStyle( style );
    
}

function better_icons() {
	// new look for the icons
    
    var list = $( "a.iconusername" );
    var i;
    
    if( list ) {
    	for (i=0;i<list.length;i++) {
    		var icon = list.get(i);
    		icon.innerHTML = '<div class="newIconDiv">' + icon.innerHTML + '</div>';
        }
    }
}

function better_avatars() {
        
    var list = $("td.alt1.bpix.tpix.lpix.rpix.addpad");
    
    var i;
    var av_td;
    var av_a;
    
    
    if( list ) {
    	for(i=0;i<list.length;i++) {
	        av_td = list[i];
    	    av_a = av_td.childNodes[1];
        	av_a.className = "newAvatar";
            
            add_popup_to_avatar( av_a );
    	}
    }
    
    av_td = $("td.addpad.alt1");
    
    if (av_td) {
    	av_td = av_td.get(0);
    	av_a = av_td.childNodes[0];
    	av_a.className = "newAvatar";
    }
}

function add_popup_to_avatar( a_element ) {
    
    a_element.setAttribute("style","padding:0px;");
        
    var user_name = a_element.href;
    
    var gallery_link = user_name.replace(/user/,"gallery");
	//var scraps_link = user_name.replace(/user/,"scraps");
    //var favorites_link = user_name.replace(/user/,"favorites");
    var journals_link = user_name.replace(/user/,"journals");
    var sendnote_link = user_name.replace(/user/,"newpm");
    
    var outer_ul = document.createElement("ul");
    var outer_li = document.createElement("li");
    
    outer_ul.className = "dropdown";
    a_element.parentNode.insertBefore( outer_ul, a_element );
    outer_ul.appendChild( outer_li );
    outer_li.appendChild( a_element );
    
    var new_ul = document.createElement("ul");
    new_ul.className = "avatarUl";
    new_ul.setAttribute("style","width:102px;left:100%;top:0px;");
    
    outer_li.appendChild( new_ul );
    new_ul.innerHTML =  '<li><a href="' + user_name + '">User Page</a></li>';
    new_ul.innerHTML += '<li><a href="' + gallery_link + '">Gallery</a></li>';
    new_ul.innerHTML += '<li><a href="' + journals_link + '">Journals</a></li>';
    new_ul.innerHTML += '<li><hr></li>';
    new_ul.innerHTML += '<li><a href="' + sendnote_link + '">Send Note</a></li>';

}

function fix_overflow() {
    var div = $( "div.no_overflow.alt1" );
    
    if (div) {
    	div.addClass("newBlockHidden");
    }
}

function three_lines() {
    // threelines
    
    var list = $( "center.twolines" );
    for ( var i=0; i<list.length; i++) {
        list[i].setAttribute("style","max-height:500px;");
    }
}

function one_line() {
    // threelines
    
    var list = $( "center.twolines" );
    for ( var i=0; i<list.length; i++) {
        list[i].setAttribute("style","max-height:125px;");
    }
}

function fix_bottom_ads() {
    
    try{
    	var ads = $( "div.ads div.in" ).get( 1 );
    
    	ads.setAttribute("style","width:auto;height:auto;");
    	ads.parentNode.setAttribute("style","margin-left:0px;");
    }
    catch(e){
     	   console.log("Ads at the bottom of the page are missing?");
    }
}

function add_custom_background( current_user ) {
    
    var background_location = GM_getValue( "FAex_back_" + current_user, "none" );
    
    if ( background_location != "none" ) {
        
        var background_div = document.createElement("div");
        background_div.className = "custom_background_div";
        
        GM_addStyle( "div.custom_background_div{position:fixed; top:0px; left:0px; width:100%; height:100%; z-index:-10; background-image: url(" + background_location + "); background-position:center; }" );
        
        var body = $("body").get( 0 );
        body.appendChild( background_div );
        
    }
    
}

function save_custom_background( background_location, current_user ) {
    
    GM_setValue( "FAex_back_" + current_user, background_location );
    
}

function new_layout( user_name, my_userpage, current_user ) {
	// new layout
    
    var compact_mode = false;
    if ( $(window).width() < $(document).width() ) {
        compact_mode = true;
    }
    
    var array_index = 0;
    
    var td_element = $( "table.content.maintable td" );
    
    td_element = td_element[3];
    //console.warn("I got the td");
    
    if ( td_element.getAttribute("align") == null ) {
        td_element = $( "table.content.maintable td" ).get( 4 );
    }
    
    td_element.setAttribute("colspan",1);
    td_element.setAttribute("align","left");
    var table_old = $( "table.content.maintable table" ).get( 3 );
    //console.warn("I got the table");
    
    var table_old_container = table_old.parentNode;
    
    var nsfw = $("#sfw-toggle");
    if ( nsfw.length > 0 ) {
        nsfw = $("li.noblock.sfw-toggle.active");
        if ( nsfw.length > 0 ) {
            nsfw = false;
        } else {
        	nsfw = true;
        }
    } else {
        nsfw = false;
    }
    
    console.warn( "NSFW status = " + nsfw );
    
    var featured = $( "#featured-submission" );
    var featured_exist = true;
    var watched_by;
    var is_watching;
    
    if ( featured && featured.length > 0 ) {
        
    	watched_by = $( "table.content.maintable table.maintable" ).get( 6 );
    	is_watching = $( "table.content.maintable table.maintable" ).get( 7 );
        //console.warn("I got the watched/watching");
        
    } else {
        
        featured_exist = false;
    	watched_by = $( "table.content.maintable table.maintable" ).get( 5 );
    	is_watching = $( "table.content.maintable table.maintable" ).get( 6 );
        //console.warn("I got the watched/watching");
        
    }
    
    var watch_div = document.createElement("div");
    
    add_popup_class( is_watching );
    add_popup_class( watched_by );
    
    watch_div.appendChild(is_watching);
    watch_div.innerHTML+="</br>";
    watch_div.appendChild(watched_by);
    
    var table_journal;
    if ( featured_exist ) {
    	table_journal = $( "table.content.maintable table.maintable" ).get( 6 );
    } else {
        table_journal = $( "table.content.maintable table.maintable" ).get( 5 );
    }
    //console.warn("I got the journal");
    
    var journal_entry = false;
    
    if ( table_journal.innerHTML.indexOf("Posted") > 0 ) {
        journal_entry = true;
        table_journal.setAttribute("width","100%");
    }
    
    var about_user_title = new_block( "About " + user_name, "", "about_block" );
    var journal_title = new_block( "Journal", "", "journal_block" );
    var shouts_title_block = new_block( "Shouts", "", "shouts_block" );
    
    var user_profile_data = $( "table.content.maintable td.ldot" ).get( 0 );
    //console.warn("I got the user profile data");
    
    var data_start = user_profile_data.innerHTML.indexOf("<b>Artist Profile:");
    
    var user_profile = user_profile_data.innerHTML.slice(data_start);
    
    user_profile_data.innerHTML = user_profile_data.innerHTML.slice(0,data_start);
    
    data_start = user_profile.indexOf("</b>");
    user_profile = user_profile.slice( data_start+4 );
    user_profile = user_profile.replace(/[<]br[^>]*[>]/,"");
    
    //custom background
    
    var start_map = user_profile.indexOf(":background");
    if ( start_map >= 0 ) {
        var user_profile_before = user_profile.slice(0,start_map);
        var user_profile_after = user_profile.slice(start_map+1);
        
        var end_block = user_profile_after.indexOf("::");
        var end_anchor = user_profile_after.indexOf("</a>");
        
        var background_location = user_profile_after.slice(19,end_block);
        
        console.log( "Custom background at: " + background_location );
        
        save_custom_background( background_location, current_user );
        
        user_profile = user_profile_before + user_profile_after.slice(end_anchor+4);
        
    }
    
    //custom maps
    
    var start_map = user_profile.indexOf(":map[");
    while ( start_map >= 0 ) {
        var user_profile_before = user_profile.slice(0,start_map);
        var user_profile_after = user_profile.slice(start_map+1);
        
        var end_block = user_profile_after.indexOf("]::");
        
        var map_location = user_profile_after.slice(4,end_block);
        
        user_profile = user_profile_before + new_map(map_location) + user_profile_after.slice(end_block+3);
        
        start_map = user_profile.indexOf(":map[");
        
    }
    
    //custom icons
    
    var start_icon = user_profile.indexOf(":image[");
    while ( start_icon >= 0 ) {
        
        var user_profile_before = user_profile.slice(0,start_icon);
        var user_profile_after = user_profile.slice(start_icon+1);
        
        var end_block = user_profile_after.indexOf("::");
        
        var end_block_title = user_profile_after.indexOf("]"); // ]
        
        var icon_image = user_profile_after.slice(6,end_block_title); //6
        
        var aux_end;
        
        aux_end = icon_image.indexOf("<a href=");
        if (aux_end >= 0) {
            icon_image = icon_image.slice( aux_end+9 );
        }
        
        var icon_link = user_profile_after.slice(end_block_title+1,end_block);
        
        aux_end = user_profile_after.indexOf("</a>");
        if ( aux_end > end_block ) {
            end_block = aux_end;
        }
                
        user_profile = user_profile_before + new_icon(icon_image,icon_link) + user_profile_after.slice(end_block+4);
        
        start_icon = user_profile.indexOf(":icon[");
    }
    
    //custom blocks
    
    var block_array = [];
    var sfw_block = true;
    var start_block = user_profile.indexOf(":block[");
    if ( start_block < 0 ) {
        sfw_block = false;
        start_block = user_profile.indexOf(":nsfw_block[");
    }
    
    while ( start_block >= 0 ) {
        
        var user_profile_before = user_profile.slice(0,start_block);
        var user_profile_after = user_profile.slice(start_block+1);
        
        var end_block = user_profile_after.indexOf("::"); // :
        
        user_profile = user_profile_before + user_profile_after.slice(end_block+2);
        
        user_profile_after = user_profile_after.slice(0,end_block);
        
        var end_block_title = user_profile_after.indexOf("][");
        
        var position_block = "right";
        var user_profile_title;
        if ( end_block_title > 0 ) {
            
            start_block = end_block_title;
            
            if ( sfw_block ) {
            	user_profile_title = user_profile_after.slice(6,end_block_title);
            } else {
                user_profile_title = user_profile_after.slice(11,end_block_title);
            }
            
            user_profile_after = user_profile_after.slice(end_block_title+1);
            
            end_block_title = user_profile_after.indexOf("]");
            
            position_block = user_profile_after.slice(1,end_block_title);
            
            if ( position_block != "left" && position_block != "right" ) {
                position_block = "right";
            }
            
        } else {
            
            end_block_title = user_profile_after.indexOf("]");
            
            if ( sfw_block ) {
            	user_profile_title = user_profile_after.slice(6,end_block_title);
            } else {
                user_profile_title = user_profile_after.slice(11,end_block_title);
            }
        }
        
        var user_profile_block = user_profile_after.slice(end_block_title+1);
        
        user_profile_block = user_profile_block.replace(/[<]br[^>]*[>]/,"");
        
        console.log("Adding block: " + user_profile_title + " at position: " + position_block );
        
        block_array[array_index] = [ user_profile_title, user_profile_block, position_block, sfw_block ];
        
        array_index += 1;
        start_block = user_profile.indexOf(":block[");
        
        sfw_block = true;
        if ( start_block < 0 ) {
        	sfw_block = false;
        	start_block = user_profile.indexOf(":nsfw_block[");
    	}
    }
    
    user_profile = new_block( "User Profile", user_profile );
    
    var statistics_outside = $( "table.content.maintable td.bdot" ).get( 0 );
    statistics_outside = statistics_outside.parentNode;
    statistics_outside = statistics_outside.parentNode;
    
    //console.warn("I got the statistics");
    
    var stat_start = statistics_outside.innerHTML.indexOf("</tr>");
    
    var statistics = statistics_outside.innerHTML.slice(stat_start);
    
    var stat_start = statistics.indexOf("<b>");
    var stat_end = statistics.indexOf("</td>");
    
    statistics = statistics.slice(stat_start,stat_end);
    
    statistics = statistics.replace(/<b*>/g,"");
    
    statistics = new_block_wide( "Statistics", statistics );
    
    statistics_outside = statistics_outside.parentNode;
    statistics_outside = statistics_outside.parentNode;
    statistics_outside.parentNode.removeChild(statistics_outside);
   
    
    var profile_id = $( "#profilepic-submission" );
    if ( profile_id && profile_id.length > 0 ) {
        profile_id = profile_id[0];
    	profile_id = profile_id.parentNode;
    	profile_id = profile_id.parentNode;
    	profile_id = profile_id.parentNode;
        
        var profile_html = '<table cellpadding="3" cellspacing="0" border="0" width="99%" class="maintable">' + profile_id.innerHTML + '</table>';
        profile_id.parentNode.removeChild(profile_id);
        profile_id = profile_html;
        
    } else {
        //nothing
    }
    
    var art_block = $( "table.content.maintable center.userpage-first-submission");
    
    if (art_block && art_block.length > 0 ) {
        art_block = art_block.get( 0 );
    } else {
        art_block = $( "table.content.maintable center.userpage-favorites").get( 0 );
    }
    //console.warn("I got the submissions and favorites");
    
    art_block = art_block.parentNode;
    art_block = art_block.parentNode;
    art_block = art_block.parentNode;
    art_block = art_block.parentNode;
    art_block = art_block.parentNode;
    
    var user_info = $("table.content.maintable td.user-info").get(0);
    user_info = user_info.parentNode;
    user_info = user_info.parentNode;
    user_info = user_info.parentNode;
        
    var user_info_empty = false;
    var user_info_string = user_info.childNodes[1].childNodes[2].childNodes[1].innerHTML;
    if ( user_info_string.indexOf("a") < 0 && user_info_string.indexOf("e") < 0 ) {
        user_info_empty = true;
    }
    
    var table_right = user_info.parentNode;
    
    var user_contact = $("table.content.maintable td.user-contacts");
    if ( user_contact.length > 0 ) {
        user_contact = user_contact[0];
    	user_contact = user_contact.parentNode;
    	user_contact = user_contact.parentNode;
    	user_contact = user_contact.parentNode;
    } else {
        user_contact = false;
    }
    
    var shouts_title = $("table.content.maintable td.cat b:textEquals('Shouts')");
    if ( shouts_title.length > 0 ) {
        shouts_title = shouts_title[0];
    	shouts_title = shouts_title.parentNode;
        
        shouts_title.className = "cat_header";
        
        shouts_title = shouts_title.parentNode;
        shouts_title = shouts_title.parentNode;
        shouts_title = shouts_title.parentNode;
    } else {
        shouts_title = false;
    }
    
    if ( shouts_title ) {
        $( shouts_title ).nextAll( "table.maintable" ).addClass( "shoutBlock" );
    }
    
    if ( my_userpage > 0 ) {
        var shouts = $(".shoutBlock table.maintable td.lead.addpad b a" );
        for ( array_index=0; array_index<shouts.length; array_index++ ) { 
            var s = shouts[array_index];
            
            var href = s.href;
            href += "#new_shout"
            
            s = s.parentNode;
            s = s.parentNode;
            
            s.innerHTML += '&nbsp;.&nbsp;<a href="' + href + '"> reply </a>';
            
        }
    }
      
    table_old.setAttribute("width","99%");
    
    var new_td;
    if ( compact_mode ) {
        
        new_td = table_old_container;
        
    } else {
        
    	new_td = document.createElement("td");
    	td_element.parentNode.appendChild(new_td);
    	new_td.setAttribute("width","50%");
    	new_td.setAttribute("valign","top");
    	new_td.setAttribute("align","right");
    
    	table_old_container.setAttribute("width","50%");
    
    }
    
    //adds user profile to the right
    new_td.appendChild( new_element( user_profile ) );
    new_td.appendChild( new_br() );
    
    //adds custom blocks
    for( array_index=0; array_index<block_array.length; array_index++ ) {
        var title = block_array[array_index][0];
        var pos = block_array[array_index][2];
        sfw_block = block_array[array_index][3];
        if ( title != "hide" && ( sfw_block || nsfw ) ) {
        	var block = new_block( title, block_array[array_index][1] );
            if ( pos == "right" ) {
                
        		new_td.appendChild( new_element( block ) );
    			new_td.appendChild( new_br() );
                
            } else {
                
                table_old_container.appendChild( new_element( block ) );
                table_old_container.appendChild( new_br() );
                
            }
        }
    }
    
    //adds submissions and favorites blocks
    var art_block_list = art_block.childNodes;
    
    for (array_index=0; array_index<art_block_list.length; array_index++) {
        
        if ( art_block_list[array_index].outerHTML != undefined && art_block_list[array_index].outerHTML != "<br>") {
        	table_old_container.appendChild( art_block_list[array_index] );
            table_old_container.appendChild( new_br() );
        }
    }
    
    //adds journal to the right
    if ( journal_entry ) {
        new_td.appendChild( new_br() );
        
        new_td.appendChild( new_element( journal_title ) );
        
        var journal_block = $( ".journal_block" ).get(0);
        
        journal_block.appendChild( new_br() );
    	journal_block.appendChild(table_journal);
        journal_block.appendChild( new_br() );
    }
    
    new_td.appendChild( new_br() );
    
    new_td.appendChild( new_element( about_user_title ) );
    
    var about_user_block = $( ".about_block" ).get(0);
    
    about_user_block.appendChild( new_br() );
    
    // adds general user informations if not empty
    if ( user_info_empty ) {
        
        user_info.parentNode.removeChild(user_info);
    
    } else {
        
        user_info.setAttribute("width","100%");
    	about_user_block.appendChild( user_info );
    	about_user_block.appendChild( new_br() );
        
    }
       
   	//adds user contact informations
    if ( user_contact ) {
        user_contact.setAttribute("width","100%");
        about_user_block.appendChild( user_contact );
        about_user_block.appendChild( new_br() );
    }
    
    // adds the statistics block
    about_user_block.appendChild( new_element( statistics ) );
    about_user_block.appendChild( new_br() );
    new_td.appendChild( new_br() );
    
    //add shouts
    if ( shouts_title ) {
        
        shouts_title.parentNode.removeChild(shouts_title);
        
        new_td.appendChild( new_br() );
    	new_td.appendChild( new_element(shouts_title_block) );
        
        var user_shouts_block = $( ".shouts_block" ).get(0);
        //console.log("I got the block!");
        
        user_shouts_block.appendChild( new_br() );
        
        var shouts = $(".shoutBlock" );
        for (array_index=0; array_index<shouts.length; array_index++) {
            
            if (array_index == shouts.length-1) {
                new_td.appendChild( new_br() );
                new_td.appendChild( new_anchor("new_shout") );
                new_td.appendChild( shouts[array_index] );
        		new_td.appendChild( new_br() );
                
            } else {
            
                shouts[array_index].setAttribute("width","100%");
            	user_shouts_block.appendChild( shouts[array_index] );
        		user_shouts_block.appendChild( new_br() );
            }
        }
    }
    new_td.appendChild( new_br() );
    
    // adds watching and watched by blocks
    table_old_container.appendChild( new_br() );
    table_old_container.appendChild(watch_div);
    
    // remove old table row
    table_right = table_right.parentNode;
    table_right.parentNode.removeChild(table_right);
}