﻿// JScript File

	function abreJanela(local,alvo,largura,altura)	{
		window.open (local,alvo,'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=' + largura + ',height=' + altura);
	}
	
	function MC_Sessao(strSessao) {
		    var mTmp_MC_Sessao = strSessao.split("|")
			    this.id						=mTmp_MC_Sessao[0]
			    this.grupo				=mTmp_MC_Sessao[1]
			    this.nome					=mTmp_MC_Sessao[2]
			    this.inicio					=mTmp_MC_Sessao[3]
			    this.fim						=mTmp_MC_Sessao[4]
			    this.duracao			=mTmp_MC_Sessao[5]
			    this.equipa				=mTmp_MC_Sessao[6]
			    this.espaco				=mTmp_MC_Sessao[7]
			    this.modalidade		=mTmp_MC_Sessao[8]
			    this.codigo           		=mTmp_MC_Sessao[9]
			    this.espacoID           		=mTmp_MC_Sessao[10]
			    this.nivel           		=mTmp_MC_Sessao[11]
	}
	
	function MC_Espaco(strEspaco) {
		    var mTmp_MC_Espaco = strEspaco.split("|")
			    this.nome					=mTmp_MC_Espaco[0]
			    this.funcao				=mTmp_MC_Espaco[1]
			    this.piso					=mTmp_MC_Espaco[2]
			    this.inicio					=mTmp_MC_Espaco[3]
			    this.fim						=mTmp_MC_Espaco[4]
			    this.obs						=mTmp_MC_Espaco[5]
			    this.url						=mTmp_MC_Espaco[6]
	}

	function MC_Imagem(strImagem) {
		    var mTmp_MC_Imagem = strImagem.split("|")
			    this.idBD					=mTmp_MC_Imagem[0]
			    this.nome				    =mTmp_MC_Imagem[1]
			    this.ficheiro				    =mTmp_MC_Imagem[2]
			    this.espaco					=mTmp_MC_Imagem[3]
			    this.tipo						=mTmp_MC_Imagem[4]
	}

	function MC_ImagemServico(strImagem) {
		    var mTmp_MC_Imagem = strImagem.split("|")
			    this.nome				    =mTmp_MC_Imagem[0]
			    this.ficheiro				    =mTmp_MC_Imagem[1]
			    this.grupo					=mTmp_MC_Imagem[2]
			    this.modalidade			=mTmp_MC_Imagem[3]
			    this.servico         		=mTmp_MC_Imagem[4]
			    this.tipo			            =mTmp_MC_Imagem[5]
	}

	function MC_Modalidade(strModalidade) {
		    var mTmp_MC_Modalidade = strModalidade.split("|")
			    this.grupo					=mTmp_MC_Modalidade[0]
			    this.nome				    =mTmp_MC_Modalidade[1]
			    this.servicoBase				    =mTmp_MC_Modalidade[2]
	}

	function MC_Servico(strServico) {
		    var mTmp_MC_Servico = strServico.split("|")
			    this.grupo					=mTmp_MC_Servico[0]
			    this.modalidade           =mTmp_MC_Servico[1]
			    this.nome			        =mTmp_MC_Servico[2]
			    this.obs			            =mTmp_MC_Servico[3]
			    this.nivel		            =mTmp_MC_Servico[4]
			    this.seccao		            =mTmp_MC_Servico[5]
	}

    function MC_Equipa(strEquipa)  {
		    var mTmp_MC_Equipa = strEquipa.split("|")
			    this.grupo					=mTmp_MC_Equipa[0]
			    this.modalidade		    =mTmp_MC_Equipa[1]
			    this.nome		                =mTmp_MC_Equipa[2]
			    this.funcao                 =mTmp_MC_Equipa[3]
			    this.email                   =mTmp_MC_Equipa[4]
			    this.foto                     =mTmp_MC_Equipa[5]
			    this.areaID                 =mTmp_MC_Equipa[6]
			    this.area                     =mTmp_MC_Equipa[7]
			    this.id                          =mTmp_MC_Equipa[8]
			    this.obs                          =mTmp_MC_Equipa[9]
    }

    function MC_Campanha(strCampanha)  {
		    var mTmp_MC_Campanha = strCampanha.split("|")
			    this.idBD					=mTmp_MC_Campanha[0]
			    this.nome		            =mTmp_MC_Campanha[1]
			    this.sintese		        =mTmp_MC_Campanha[2]
			    this.inicio                 =mTmp_MC_Campanha[3]
			    this.fim                    =mTmp_MC_Campanha[4]
			    this.link                    =mTmp_MC_Campanha[5]
			    this.descricao          =mTmp_MC_Campanha[6]
			    this.imagem          =mTmp_MC_Campanha[7]
    }
    
    function MC_Area(strArea)  {
		    var mTmp_MC_Area = strArea.split("|")
			    this.idBD					=mTmp_MC_Area[0]
			    this.nome		            =mTmp_MC_Area[1]
			    this.desc		                =mTmp_MC_Area[2]
    }
    
    function MC_Plano(strPlano)  {
		    var mTmp_MC_Plano = strPlano.split("|")
			    this.id					=mTmp_MC_Plano[0]
			    this.nome		            =mTmp_MC_Plano[1]
			    this.obs		                =mTmp_MC_Plano[2]
			    this.servicos		                =mTmp_MC_Plano[3]
    }

    function MC_Vertentes(strVertentes)  {
		    var mTmp_MC_Vertentes = strVertentes.split("|")
			    this.plano                      =mTmp_MC_Vertentes[0]
			    this.horario					    =mTmp_MC_Vertentes[1]
			    this.frequencia		            =mTmp_MC_Vertentes[2]
    }

    function MC_me_documento(strMEDocs)  {
		    var mTmp_MC_me_documento = strMEDocs.split("|")
			    this.tipo                       =mTmp_MC_me_documento[0]
			    this.data					    =mTmp_MC_me_documento[1]
			    this.titulo		                =mTmp_MC_me_documento[2]
			    this.sintese		            =mTmp_MC_me_documento[3]
			    this.autor		                =mTmp_MC_me_documento[4]
			    this.ficheiro		            =mTmp_MC_me_documento[5]
			    this.ref		                    =mTmp_MC_me_documento[6]
    }


    function MC_ComingSoon(strComingSoon)  {
		    var mTmp_MC_ComingSoon = strComingSoon.split("|")
			    this.codigo					=mTmp_MC_ComingSoon[0]
			    this.titulo		            =mTmp_MC_ComingSoon[1]
			    this.sintese		        =mTmp_MC_ComingSoon[2]
			    this.texto                 =mTmp_MC_ComingSoon[3]
			    this.link                    =mTmp_MC_ComingSoon[4]
			    this.imagem          =mTmp_MC_ComingSoon[5]
                //tmpVariavel = rsS("comingsoon_titulo") & "|" & rsS("comingsoon_sintese") & "|" & rsS("comingsoon_texto") & "|" & rsS("comingsoon_link") & "|" & rsS("comingsoon_ilustracao") 

    }
