﻿/* CSS Browser Selector v0.3.1 */
function css_browser_selector(u) { var ua = u.toLowerCase(), is = function(t) { return ua.indexOf(t) > -1; }, g = 'gecko', w = 'webkit', s = 'safari', h = document.getElementsByTagName('html')[0], b = [(!(/opera|webtv/i.test(ua)) && /msie\s(\d)/.test(ua)) ? ('ie ie' + RegExp.$1) : is('firefox/2') ? g + ' ff2' : is('firefox/3') ? g + ' ff3' : is('gecko/') ? g : /opera(\s|\/)(\d+)/.test(ua) ? 'opera opera' + RegExp.$2 : is('konqueror') ? 'konqueror' : is('chrome') ? w + ' ' + s + ' chrome' : is('applewebkit/') ? w + ' ' + s + (/version\/(\d+)/.test(ua) ? ' ' + s + RegExp.$1 : '') : is('mozilla/') ? g : '', is('j2me') ? 'mobile' : is('iphone') ? 'iphone' : is('ipod') ? 'ipod' : is('mac') ? 'mac' : is('darwin') ? 'mac' : is('webtv') ? 'webtv' : is('win') ? 'win' : is('freebsd') ? 'freebsd' : (is('x11') || is('linux')) ? 'linux' : '', 'js']; c = b.join(' '); h.className += ' ' + c; return c; }; css_browser_selector(navigator.userAgent);

/* Resize Wall */
function resize() {
    var css_browser_selector = function() { var ua = navigator.userAgent.toLowerCase(), is = function(t) { return ua.indexOf(t) != -1; }, h = document.getElementsByTagName('html')[0], b = (!(/opera|webtv/i.test(ua)) && /msie\s(\d)/.test(ua)) ? ('ie ie' + RegExp.$1) : is('firefox/2') ? 'gecko ff2' : is('firefox/3') ? 'gecko ff3' : is('gecko/') ? 'gecko' : is('opera/9') ? 'opera opera9' : /opera\s(\d)/.test(ua) ? 'opera opera' + RegExp.$1 : is('konqueror') ? 'konqueror' : is('chrome') ? 'chrome webkit safari' : is('applewebkit/') ? 'webkit safari' : is('mozilla/') ? 'gecko' : '', os = (is('x11') || is('linux')) ? ' linux' : is('mac') ? ' mac' : is('win') ? ' win' : ''; var c = b + os + ' js'; h.className += h.className ? ' ' + c : c; } ();
    if (css_browser_selector == "ie ie6") {
        var frame = document.getElementById("LoginModule1_Wall");
        var htmlheight = document.body.parentNode.scrollHeight;
        var windowheight = window.innerHeight;
        if (htmlheight < windowheight) { document.body.style.height = windowheight + "px"; frame.style.height = windowheight + "px"; } else { document.body.style.height = htmlheight + "px"; frame.style.height = htmlheight + "px"; }
    }
}

/* Webpart Attribute Value Listing Table*/
function showAVTable(pnlListingID, imgArrowID) {
    document.getElementById(pnlListingID).style.visibility = "visible";
    document.getElementById(imgArrowID).style.visibility = "visible";
    return false;
}
function hideAVTable(pnlListingID, imgArrowID) {
    document.getElementById(pnlListingID).style.visibility = "hidden";
    document.getElementById(imgArrowID).style.visibility = "hidden";
    return false;
}