$(function(){

    $(".vertMenu").buildMenu(
    {
        template:"menuVoices.html",
        menuWidth:200,
        openOnRight:true,
        menuSelector: ".menuContainer",
        iconPath:"../images/",
        hasImages:true,
        fadeInTime:200,
        fadeOutTime:200,
        adjustLeft:0,
        adjustTop:0,
        opacity:.95,
        openOnClick:false,
        minZindex:200,
        shadow:true,
        hoverIntent:100,
        submenuHoverIntent:100,
        closeOnMouseOut:true
        
    });
/*
    $(document).buildContextualMenu(
    {
        template:"menuVoices.html",
        menuWidth:230,        
        overflow:2,
        menuSelector: ".menuContainer",
        iconPath:"../images/",
        hasImages:false,
        fadeInTime:100,
        fadeOutTime:100,
        adjustLeft:0,
        adjustTop:0,
        opacity:.99,
        closeOnMouseOut:false,
        onContextualMenu:function(){}, //params: o,e
        shadow:true   
    });

    $("#myScroll").mbScrollable({
        width:400,
        elementsInPage:1,
        elementMargin:2,
        shadow:"#999 2px 2px 2px",
        height:300,
        controls:"#controls",
        slideTimer:600,
        autoscroll:true,
        scrollTimer:4000
    });
*/
}
);

function abreComent() {
    obj = document.getElementById("coments");
    obj.style.display = "block";
}
function fechaComent() {
    obj = document.getElementById("coments");
    obj.style.display = "none";
}
function showLang() {
    obj = document.getElementById("languagesSelect");
    obj.style.display = "block";
    
}
function hideLang() {
    obj = document.getElementById("languagesSelect");
    obj.style.display = "none";
}



function abreAjuda() {
    obj = document.getElementById('helpBox');
    obj.style.display = "block";
}
function fechaAjuda() {
    obj = document.getElementById('helpBox');
    obj.style.display = "none";
}

function openWindow(url,width,height,options,name) {
	width = width ? width : 800;
	height = height ? height : 600;
	options = options ? options : 'resizable=yes';
	name = name ? name : 'openWindow';
	window.open(
		url,
		name,
		'screenX='+(screen.width-width)/2+',screenY='+(screen.height-height)/2+',width='+width+',height='+height+','+options
	)
}

function openChat() {
	
	$('#chat').AeroWindow({
            WindowTitle:          '',
            WindowPositionTop:    0,
            WindowPositionLeft:   'center',
            WindowWidth:          880,
            WindowHeight:         545,
            WindowAnimationSpeed: 1000,
            WindowAnimation:      'easeOutCubic'           
          });
}
	