﻿var tanimlarId;
var menuInterval;
/*window.onresize=setMainSize;

function setMainSize()
{
    var ifr = document.getElementById("ifrmMain");
    
    var docH = document.documentElement.clientHeight;
    var ifrH = docH - 10 -(412);
    // *****
    ifr.style.height=ifrH+"px";
    // ******
}
*/
function goHref(link)
{
document.href=link;
}

function goLink(link)
            {
                var ifrM = document.frames[0];
                ifrM.frameElement.src = link;
                //showLoad();
                //ifrM.frameElement.style.visibility = "hidden";
            }
            
            function showLoad()
            {
                 // SetModalProxy_SetModal1.show();
                var load = document.getElementById("divLoading");
                load.style.left = (document.documentElement.clientWidth / 2)-10 + "px";
                load.style.top = (document.documentElement.clientHeight / 2) + "px";
                load.style.display = "inline";
            }
			

//**************************************
function setTanimlarId(elm)
            {
                tanimlarId = elm.id;
            }
            function getElm(id)
            {
                return document.getElementById(id);
            }

            function findPos(coord, obj)
            {
              var curleft = 0;
              if (obj.offsetParent){
                while (obj.offsetParent){
                  if (coord == 'x') {curleft += obj.offsetLeft;}
                  else {curleft += obj.offsetTop}
                  obj = obj.offsetParent;
                }
              }
              else if (obj.coord)
                curleft += obj.coord;
                
	            return curleft;
            }

            function showMenu(elm){
                if(elm != null) tanimlarId = elm.id;
                clearInterval(menuInterval);
                
                if(getElm(tanimlarId+"_1").style.display != 'inline'){
                    getElm(tanimlarId+"_1").style.left = findPos('x', getElm(tanimlarId)) - 5 + "px";
                    getElm(tanimlarId+"_1").style.top = findPos('y', getElm(tanimlarId)) + 37 + "px";
                
                    getElm(tanimlarId+"_1").style.display = 'inline';
                }
                closeMenu2(tanimlarId);
                
                
                
                
                
                
            }

            function closeMenu(){
                menuInterval = setInterval("closeMenuX()", 1);
            }
            

            function closeMenuX()
            {
                if(getElm("sound_1").style.display != 'none')
                    getElm("sound_1").style.display = 'none';
                    
                    if(getElm("light_1").style.display != 'none')
                    getElm("light_1").style.display = 'none';
                    
                    if(getElm("stage_1").style.display != 'none')
                    getElm("stage_1").style.display = 'none';
                    
                    if(getElm("location_1").style.display != 'none')
                    getElm("location_1").style.display = 'none';
                    
                    if(getElm("event_1").style.display != 'none')
                    getElm("event_1").style.display = 'none';
                    
                    if(getElm("visual_1").style.display != 'none')
                    getElm("visual_1").style.display = 'none';
                    
                    if(getElm("client_1").style.display != 'none')
                    getElm("client_1").style.display = 'none';
                                 
            }
            
           
            function closeMenu2(mn)
            {
                if(mn!="sound")
                {
                if(getElm("sound_1").style.display != 'none')
                    getElm("sound_1").style.display = 'none';
                    }
                    
                 if(mn!="light")
                {
                    if(getElm("light_1").style.display != 'none')
                    getElm("light_1").style.display = 'none';
                   }
                    
                    
                     if(mn!="stage")
                {
                    if(getElm("stage_1").style.display != 'none')
                    getElm("stage_1").style.display = 'none';
                    }
                    
                     if(mn!="location")
                {
                    if(getElm("location_1").style.display != 'none')
                    getElm("location_1").style.display = 'none';
                    }
                    
                     if(mn!="event")
                {
                    if(getElm("event_1").style.display != 'none')
                    getElm("event_1").style.display = 'none';
                    }
                    
                    if(mn!="visual")
                {
                    if(getElm("visual_1").style.display != 'none')
                    getElm("visual_1").style.display = 'none';
                    }
                    
                    if(mn!="client")
                {
                    if(getElm("client_1").style.display != 'none')
                    getElm("client_1").style.display = 'none';
                    }             
            }

            
            
            
                
                
//**************************************