<!--
function link_cidade(cidade, servico)
{
  if(cidade == '0')	
  {
  	alert("Para acessar o serviço você precisa selecionar um município.");
  } else {
		     if(servico == 'meuiptu')
			 {	
			 
			    if(cidade == 'areado')
				{
				   if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://areado.no-ip.info/meuiptu/index.php?cidade=areado";
				};  
			 
			    if(cidade == 'barcarena')
				{
				   if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://barcarena.no-ip.info/meuiptu/index.php?cidade=barcarena";
				};  
			 
			    if(cidade == 'boquim')
				{
				   if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://boquim.no-ip.info:8080/meuiptu/index.php?cidade=boquim";
				};  
			 
			    if(cidade == 'redencao')
				{
				   if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://redencaopref.no-ip.info/meuiptu/index.php?cidade=redencao";
				};  
			 
			    if(cidade == 'arroio')
				{
				   if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://arroio.no-ip.info:8081/meuiptu/index.php?cidade=arroio";
				};  
				 
			    if(cidade == 'capivari')
				{
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://201.24.79.29/index.php?cidade=capivari";
				};  					
					
			    if(cidade == 'forquilhinha')
				{
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://link1.forquilhinha.sc.gov.br:8080/meuiptu/index.php?cidade=forquilhinha";
				};  					
					
			    if(cidade == 'celsoramos')
				{
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://celsoramos.no-ip.info:85/meuiptu/index.php?cidade=celsoramos";
				};  					
					
			    if(cidade == 'icara')
				{
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://icarapref.no-ip.info:80/meuiptu/index.php?cidade=icara";
				};  					
					
			    if(cidade == 'Jaguaruna')
				{
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://jaguaruna.no-ip.info:80/meuiptu/index.php?cidade=Jaguaruna";
				};  					
					
			    if(cidade == 'lauromuller')
				{
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://lmuller.no-ip.info/meuiptu/index.php?cidade=lauromuller";
				};  					
					
			    if(cidade == 'meleiro')
				{
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://187.5.185.73/meuiptu/index.php?cidade=meleiro";
				};  					
					
			    if(cidade == 'Salinopolis')
				{
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://www.meuiptu.com.br/meuiptu_05/indexacesso.php?link=Salinopolis";
				};  					
					
			    if(cidade == 'Pedro')
				{
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://www.meuiptu.com.br/meuiptu_05/indexacesso.php?link=Pedro";
				};  					
					
			    if(cidade == 'tubarao')
				{
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://tubarao.no-ip.info:8080/meuiptu/index.php?cidade=tubarao";	
				};  
				
			    if(cidade == 'muriae')
				{
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://muriae.no-ip.info:8080/meuiptu/index.php?cidade=muriae";	
				};  		
				
			    if(cidade == 'irati')
				{
					if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://irati.no-ip.info:8080/meuiptu/index.php?cidade=irati";	
				};  	
				
						if(cidade == 'ararangua')
						{
						   if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://ararangua.no-ip.info:8080/meuiptu/index.php?cidade=ararangua";
						};  
			 
			 } else if(servico == 'meuiss')
			 		{		
					
						if(cidade == 'areado')
						{
							   if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://areado.no-ip.info/meuiss_new/index.php?cidade=areado";
						}; 
					
						if(cidade == 'barcarena')
						{
							   if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://barcarena.no-ip.info/meuiss_new/index.php?cidade=barcarena";
						}; 
					
						if(cidade == 'boquim')
						{
							   if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://boquim.no-ip.info:8080/meuiss_new/index.php?cidade=boquim";
						}; 
						
						if(cidade == 'redencao')
						{
							   if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://redencaopref.no-ip.info/meuiss_new/index.php?cidade=redencao";
						}; 
						
						if(cidade == 'ararangua')
						{
						   if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://ararangua.no-ip.info:8080/meuiss_new/index.php?cidade=ararangua";
						};  
						 
					
						if(cidade == 'arroio')
						{
						   if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://arroio.no-ip.info:8081/meuiss_new/index.php?cidade=arroio";
						};  
						 
						if(cidade == 'capivari')
						{
							if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://www.iss.capivaridebaixo.sc.gov.br/";
						};  					
							
						if(cidade == 'forquilhinha')
						{
							if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://link1.forquilhinha.sc.gov.br:8080/meuiss_new/index.php?cidade=forquilhinha";
						};  					
							
						if(cidade == 'celsoramos')
						{
							if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://celsoramos.no-ip.info:85/meuiss_new/index.php?cidade=celsoramos";
						};  					
							
						if(cidade == 'icara')
						{
							if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://icarapref.no-ip.info:80/meuiss_new/index.php?cidade=icara";
						};  					
							
						if(cidade == 'Jaguaruna')
						{
							if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://jaguaruna.no-ip.info/meuiss_new/index.php?cidade=Jaguaruna";
						};  					
							
						if(cidade == 'lauromuller')
						{
							if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://lmuller.no-ip.info/meuiss_new/index.php?cidade=lauromuller";
						};  					
							
						if(cidade == 'meleiro')
						{
							if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://187.5.185.73/meuiss_new/index.php?cidade=meleiro";
						};  					
							
						if(cidade == 'Salinopolis')
						{
							 alert("O município selecionado não utiliza este módulo.");
						};  					
							
						if(cidade == 'Pedro')
						{
							if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://www.meuiss.com.br/index.php?muni=Pedro";
						};  					
							
						if(cidade == 'tubarao')
						{
							if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://tubarao.no-ip.info:8080/meuiss_new/index.php?cidade=tubarao";	
						};  
						
						if(cidade == 'muriae')
						{
							if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://muriae.no-ip.info:8080/meuiss_new/index.php?cidade=muriae";	
						};  
						
						if(cidade == 'saogoncalo')
						{
							if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://saogoncalosapucai.no-ip.info:8081/meuiss_new/index.php?cidade=saogoncalo";	
						};  	
					
					
						if(cidade == 'irati')
						{
							alert("O município selecionado não utiliza este módulo.");
						};  
					
					} else if(servico == 'nfse')
							{
								
								if(cidade == 'barcarena')
								{
									if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://barcarena.no-ip.info/meuiss_new/nfe/index.php?cidade=barcarena";	
								}; 
								
								if(cidade == 'redencao')
								{
									if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://redencaopref.no-ip.info/meuiss_new/nfe/index.php?cidade=redencao";	
								}; 
								
								if(cidade == 'icara')
								{
									 if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://icarapref.no-ip.info:80/meuiss_new/nfe/index.php?cidade=icara";
								} ;
								
								if(cidade == 'ararangua')
								{
									 if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://ararangua.no-ip.info:8080/meuiss_new/nfe/index.php?cidade=ararangua";
								} ;				
								
								if(cidade == 'tubarao')
								{
									 if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://tubarao.no-ip.info:8080/meuiss_new/nfe/index.php?cidade=tubarao";
								} ;		
								
								if(cidade == 'forquilhinha')
								{
									 if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://link1.forquilhinha.sc.gov.br:8080/meuiss_new/nfe/index.php?cidade=forquilhinha";
								} ;		
								
								if(cidade == 'saogoncalo')
								{
									 if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://saogoncalosapucai.no-ip.info:8081/meuiss_new/nfe/index.php?cidade=saogoncalo";
								} ;		
									   
							} else if(servico == 'itbi')
							        {
										if(cidade == 'muriae')
										{
											if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://muriae.no-ip.info:8080/meuiptu/itbi/index.php?cidade=muriae";	
										} else { alert("O município selecionado não utiliza este módulo."); }
										
										if(cidade == 'tubarao')
										{
											if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://tubarao.no-ip.info:8080/meuiptu/itbi/index.php?cidade=tubarao";	
										} else { alert("O município selecionado não utiliza este módulo."); }
										
										
									} else if(servico == 'protocolo')
											{
												
												if(cidade == 'barcarena')
												{
													if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://barcarena.no-ip.info/meuiptu/protocoloweb/index.php?cidade=barcarena";	
												};
												
												if(cidade == 'tubarao')
												{
													if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://tubarao.no-ip.info:8080/meuiptu/protocoloweb/index.php?cidade=tubarao";	
												};
												
												if(cidade == 'ararangua')
												{
													if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://ararangua.no-ip.info:8080/meuiptu/protocoloweb/index.php?cidade=ararangua";	
												};
												
												if(cidade == 'icara')
												{
													if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://icarapref.no-ip.info/meuiptu/protocoloweb/index.php?cidade=icara";	
												};
												
										   } else if(servico == 'thanatus')
													{
														if(cidade == 'tubarao')
														{
															if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ window.event.returnValue = false; }; document.location.href="http://tubarao.no-ip.info:8080/meuiptu/thanatus/index.php?cidade=tubarao";	
														} else { alert("O município selecionado não utiliza este módulo."); }
												   };
		 }	
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
