
		// Allows you to find elements by id in both ie and netscape
		if(document.all && !document.getElementById) {
			document.getElementById = function(id) {
				return document.all[id];
			}
		}
		
		
function PopUp(page) {
 
  plain_window = 

    window.open(page,"plain","width=550,height=500,scrollbars");


}



/* Right bar show/hide */




function setCookie(c_name, value, expiredays) {
    var exdate = new Date();
    exdate.setDate(exdate.getDate() + expiredays);
    document.cookie = c_name + "=" + escape(value) +
  ((expiredays == null) ? "" : "; path=/;expires=" + exdate.toGMTString());
}

function getCookie(c_name) {
    if (document.cookie.length > 0) {
        c_start = document.cookie.indexOf(c_name + "=");
        if (c_start != -1) {
            c_start = c_start + c_name.length + 1;
            c_end = document.cookie.indexOf(";", c_start);
            if (c_end == -1) c_end = document.cookie.length;
            return unescape(document.cookie.substring(c_start, c_end));
        }
    }
    return "";
}



function ExpandOrCollapse() {

    if (($('#rightColumnWrapper').css('display') == 'block') || ($('#rightColumnWrapper').css('display') == undefined))
        DoExpandOfCollapse(false);
    else
        DoExpandOfCollapse(true);
}

function DoExpandOfCollapse(vis) {

    

    if (!vis) {

        $('#rightColumnWrapper').css('display', 'none');
        $('#leftColumnWrapper').css('width', '100%');
        $('.LeftBarMaster_LeftColumnWrapper').css('width', '20%');
        $('.LeftBarMaster_RightColumnWrapper').css('width', '80%');
        $('#expandArrow').attr('src', '/images/MyLCN/rightsmall.gif');

        setCookie('RightBarDisplay', 'false', 100);

    }
    else {

        $('#rightColumnWrapper').css('display', '');
        $('#leftColumnWrapper').css('width', '80%');
        $('.LeftBarMaster_LeftColumnWrapper').css('width', '25%');
        $('.LeftBarMaster_RightColumnWrapper').css('width', '75%');
        $('#expandArrow').attr('src', '/images/MyLCN/downsmall.gif');

        setCookie('RightBarDisplay', 'true', 100);
    }
}

$(document).ready(function() {

    if (getCookie('RightBarDisplay') == 'false')
        DoExpandOfCollapse(false);
    else
        DoExpandOfCollapse(true);

});
