/**
 * Biblioteca de classes javascript para utilização nas camadas do site
 * Essa biblioteca foi programada com a utilização do framework jquery (www.jquery.com)
 * 
 * @author Caio Teixeira FiveCom 2008
 * 
 */


/**
 * Constantes para uso utilização global
 * 
 */

Constantes = {
	URL: 'http://redegazeta.gazetaonline.projeto.fivecom.com.br:9080',	
	URL_INCLUDE: 'http://redegazeta.gazetaonline.projeto.fivecom.com.br:9080/includes',
	URL_PAGINAS: 'http://redegazeta.gazetaonline.projeto.fivecom.com.br:9080/includes/paginas',
	URL_ACAO: 'http://redegazeta.gazetaonline.projeto.fivecom.com.br:9080/includes/paginas/acoes.php',
	URL_XML: 'http://redegazeta.gazetaonline.projeto.fivecom.com.br:9080/includes/xml'
	
	
};

/**
 * Chamada para lightbox imagem / Vídeo
 */

LightBox = {
	getImagem:
		function(imagem) {

			var classe = "abc";
			var num;
			var cd_matia;
			
			var imgZoom = document.createElement('img');
			
			imgZoom.id = 'img_' +  classe;
			imgZoom.className = classe;
			imgZoom.src = imagem.url;
			imgZoom.alt = imagem.descricao;
			//alert(imagem.num);
			
			openZoom(imgZoom,imagem.fonte,imagem.descricao,imagem.num,imagem.cd_matia);
		},
	
	getVideo:
		function(video) {
			
			//embedZoom = RCPlayer('wm','320','200','wmfile9','http://wm.globo.com/webmedia/windows.asx?usuario=gazetaes&tipo=ondemand&path=/tvgazeta/tvgazeta_080131_06_wmbl.wmv&ext.asx', 'uimode:none');
			
			var _width,_height;
			
			_width  = 425;
			_height = 355;
			

			var embedZoom = document.createElement('embed');
			embedZoom.setAttribute("id","fivecomlv");
			embedZoom.setAttribute("name","fivecomlv");
			embedZoom.setAttribute("src", "http://wm.globo.com/webmedia/windows.asx?usuario=gazetaes&tipo=ondemand&path=/tvgazeta/tvgazeta_080131_06_wmbl.wmv&ext.asx");
			embedZoom.setAttribute("uimode", "none");
			embedZoom.setAttribute("width", _width);
			embedZoom.setAttribute("height", _height);
			
		//document.body.appendChild(embedZoom);
			openZoom(embedZoom, video.fonte, video.descricao);
	}
};
