var browserName = '';
var browserNew = '';
function getIdProperty(id,property) {
        var styleObject = document.getElementById( id );
        if (styleObject != null) {
            styleObject = styleObject.style;
                if (styleObject[property]) {
                    return styleObject[ property ];
                }
            }
        return (styleObject != null) ?
        styleObject[property] :
        null;
    }
function setIdProperty(id,property,value) {
        var styleObject = document.getElementById( id );
        if (styleObject != null) {
            styleObject = styleObject.style;
            styleObject[ property ] = value;
        }
    }
function getDisplay(id) {
        if (browserNew) {
            return getIdProperty(id,"display");
        }
        else {
            if (browserName == "NS") {
                return document.layers[id].display;
            }
            else {
                return document.all[id].style.display;
            }
        }
    }
function switchDisplay(id,value) {
        if (browserNew) {
            setIdProperty(id,"display",value);
        }
        else {
            if (browserName == "NS") {
                document.layers[id].display = value;
            }
            else {
                document.all[id].style.display = value;
            }
        }
    }
function expandContent(id, param){
	
    /*if (getDisplay('t' + id) == 'none') {
        switchDisplay('t'+id,'block');
        setIdProperty('a'+id, 'color', '#000000')

    } else {
        switchDisplay('t'+id,'none');                          
        setIdProperty('a'+id, 'color', '#444444')
    }*/    
}

$(document).ready(function() {
                
		$(".menu_1_txt").click(function(){	
				var id = $(this).attr("id");							
				var sel = "#t"+id+"";									
				$(sel).toggle(400);										    
		});

                $(".consult-on").click(function(){
                                
                                $('.consult-on').css('width', '0px');
                                $('.consult-on').css('height', '0px');
                                $('.hide-on').css('width', '27px');
                                $('.hide-on').css('height', '66px');
                                $('.info-on').css('display', 'block');
                                $('#consult-info').animate({width: "184px" }, 300);
                                
		});

                $(".hide-on").click(function(){
                                $('#consult-info').animate({width: "0px" }, 300);
                                $('.hide-on').css('width', '0px');
                                $('.hide-on').css('height', '0px');
                                $('.consult-on').css('width', '27px');
                                $('.consult-on').css('height', '66px');                                                               
                                $('.info-on').css('display', 'none');
		});

                 $(".consult-off").click(function(){
                                $('.consult-off').css('width', '0px');
                                $('.consult-off').css('height', '0px');
                                $('.hide-off').css('width', '27px');
                                $('.hide-off').css('height', '66px');
                                $('.info-off').css('display', 'block');                                
                                $('#consult-info').animate({width: "184px" }, 300);
		});

                $(".hide-off").click(function(){
                                $('#consult-info').animate({width: "0px" }, 300);
                                $('.hide-off').css('width', '0px');
                                $('.hide-off').css('height', '0px');
                                $('.consult-off').css('width', '27px');
                                $('.consult-off').css('height', '66px');
                                $('.info-off').css('display', 'none');
		});
		
});	
