function centraliza(largura,altura){
	window.moveTo((window.screen.width-largura)/2,(window.screen.height-altura)/2);
}
function abreJanela(arquivo,nome,barra,largura,altura) {
	window.open(arquivo,nome,"resizable=no,toolbar=no,status=no,menubar=no,scrollbars="+barra+",width="+largura+",height="+altura);
}
function montaSWF(arquivo,largura,altura,action){
	var now = new Date();	
	var dia = now.getDay();
	var mes = now.getMonth();
	var ano = now.getFullYear();
	var hora = now.getHours();
	var mintuto = now.getMinutes();
	var segundo = now.getSeconds();
	var data = ano+""+mes+""+dia+""+hora;
	
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + largura + '" height="' + altura + '">');
	document.write('<param name="movie" value="swf/'+ arquivo +'.swf?ieSux='+ data +'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="allowFullScreen" value="true" />');
	document.write('<param name="scale" value="noscale" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="FlashVars" value="'+ action +'&clearCache='+ data +'" />');
	document.write('<embed scale="noscale" allowFullScreen="true" FlashVars="'+ action +'&clearCache='+ data +'" wmode="transparent" menu="false" src="swf/'+ arquivo +'.swf?ieSux='+ data +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + largura + '" height="' + altura + '"></embed>');
	document.write('</object>');
}
function montaSWFEng(arquivo,largura,altura,action){
	var now = new Date();	
	var dia = now.getDay();
	var mes = now.getMonth();
	var ano = now.getFullYear();
	var hora = now.getHours();
	var mintuto = now.getMinutes();
	var segundo = now.getSeconds();
	var data = ano+""+mes+""+dia+""+hora;
	
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + largura + '" height="' + altura + '">');
	document.write('<param name="movie" value="swf/'+ arquivo +'Eng.swf?ieSux='+ data +'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="allowFullScreen" value="true" />');
	document.write('<param name="scale" value="noscale" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="FlashVars" value="'+ action +'&clearCache='+ data +'" />');
	document.write('<embed scale="noscale" allowFullScreen="true" FlashVars="'+ action +'&clearCache='+ data +'" wmode="transparent" menu="false" src="swf/'+ arquivo +'Eng.swf?ieSux='+ data +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + largura + '" height="' + altura + '"></embed>');
	document.write('</object>');
}

function montaSWFCases(arquivo,idcase,largura,altura,action){
	var now = new Date();	
	var dia = now.getDay();
	var mes = now.getMonth();
	var ano = now.getFullYear();
	var hora = now.getHours();
	var mintuto = now.getMinutes();
	var segundo = now.getSeconds();
	var data = ano+""+mes+""+dia+""+hora;

	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + largura + '" height="' + altura + '">');
	document.write('<param name="movie" value="/Arquivos/cases/swf/'+ idcase +"/" +arquivo +'?ieSux='+ data +'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="allowFullScreen" value="true" />');
	document.write('<param name="scale" value="noscale" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="FlashVars" value="'+ action +'&clearCache='+ data +'" />');
	document.write('<embed scale="noscale" allowFullScreen="true" FlashVars="'+ action +'&clearCache='+ data +'" wmode="transparent" menu="false" src="/Arquivo/cases/swf/'+ idcase +"/"+ arquivo +'.swf?ieSux='+ data +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + largura + '" height="' + altura + '"></embed>');
	document.write('</object>');
}

function thumb(id,n,id2) {
    switch(id) {
        
        case 1: // NA BAGAGEM
            document.getElementById("imgTrabalho").style.display = 'none';
            document.getElementById("div_wait").style.display = '';
            document.getElementById("imgTrabalho").src = "http://www.ozdesign.com.br/Arquivos/trabalhoimagem/imagem/"+id2+"/"+ n;
            break;
        case 2: // EQUIPE
            document.getElementById("imgEquipe").style.display = 'none';
            document.getElementById("div_wait").style.display = '';
            document.getElementById("imgEquipe").src = "http://www.ozdesign.com.br/img/equipe/" + n;
            break;
        case 3: // NA BAGAGEM IMAGEM PRINCIPAL
        document.getElementById("imgTrabalho").style.display = 'none';
        document.getElementById("div_wait").style.display = '';
        document.getElementById("imgTrabalho").src = "http://www.ozdesign.com.br/Arquivos/nabagagem/imagem/"+id2+"_"+ n;
        break;
    }
}
function load_complete(id) {
    switch(id) {
        case 1:
            document.getElementById("div_wait").style.display = 'none';
            document.getElementById("imgTrabalho").style.display = '';
            break;
        case 2:
            document.getElementById("div_wait").style.display = 'none';
            document.getElementById("imgEquipe").style.display = '';
            break;
    }
}

function redimenciona(){

	if (parseInt(navigator.appVersion)>3) 
	{
		if (navigator.appName=="Netscape") 
		{
			var diffY = window.pageYOffset; 
			var diffX = window.pageXOffset;
			
			var winW = window.innerWidth;
			var winH = window.innerHeight;
			
			if (winW < 1000){
				window.resizeTo(1000, 599);
			}
			
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) 
		{
			var diffY = document.body.scrollTop; 
			var diffX = document.body.scrollLeft;		
			
			var winW = document.body.offsetWidth;
			var winH = document.body.offsetHeight;
			
			if (winW < 1000){
				window.resizeTo(1000, 599);
			}
		}
	}

	
	
}





