var isIE6 = ( navigator.userAgent.indexOf('IE 6') > 0 || navigator.userAgent.indexOf('IE 7') > 0 ? 1 : 0 );

//
// programação para o menu
//
menudelayin = 100; menudelayout = 4000;
menuobj = new Array(); menutimer = 0;
overmenu = function()
{
	var lis = document.getElementById("meiomenu").getElementsByTagName("span");
	for( var i=0, l=lis.length; i<l; i++ )
	{
		lis[i].onmouseover = function() { this.className+=" hover"; };
		lis[i].onmouseout = function() { this.className=(" "+this.className).replace(/ hover/g, ""); };
	}
}
hidemenu = function()
{
	var lis = menuobj;
	for( var i=0, l=lis.length; i<l; i++ )
	{
		if( lis[i].hover < 0 ) {
			lis[i].className=lis[i].className.replace(/ hover/g, "");
			lis[i].hover = 0;
		} else if( lis[i].hover > 1 ) {
			lis[i].className += " hover";
			lis[i].hover = 1;
		}
	}
}

//
// carregar algumas funções onload
//
if( window.addEventListener )
{
	window.addEventListener('load', overmenu, false);
	document.addEventListener('click', hidemenu, false );
} else {
	window.attachEvent('onload', overmenu );
	document.attachEvent('onclick', hidemenu );
}

function conteudo(id)
{
	top.location = './?id='+id;
}

function ibanking()
{
	var isFF = ( navigator.userAgent.indexOf('Firefox') > 0 ? 1 : 0 );
	var isIE6 = ( navigator.userAgent.indexOf('IE 6') > 0 ? 1 : 0 );
	var isIE7 = ( navigator.userAgent.indexOf('IE 7') > 0 ? 1 : 0 );
	var isIE8 = ( navigator.userAgent.indexOf('IE 8') > 0 ? 1 : 0 );
	// alert( "Prezado Cooperado,\n\nPara melhor atendê-lo, informamos que nossos sistemas estão\nem manutenção, em breve o serviço retornará ao normal.\n\nAgradecemos a compreensão.\n\nUnicred Litoral Paulista" );
	// alert( "Prezado Cooperado,\n\nUnicredNet está mudando para melhor atendê-lo, caso não consiga, tente mais tarde.\n\nAgradecemos a compreensão.\n\nUnicred Litoral Paulista" );
	if( isIE6 || isIE7 || isIE8 || isFF )
	{
		document.getElementById("ibform").submit();
	} else {
		conteudo(100);
	}
}

function pub_flash( swf, w, h, trans ) {
	if( trans == null || trans == undefined ) trans = 0;
	document.write( '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'">'+"\n" );
	document.write( '<param name="movie" value="'+swf+'" />'+"\n" );
	document.write( '<param name="quality" value="high" />'+"\n" );
	if( trans != 0 ) document.write( '<param name="wmode" value="transparent"></param>'+"\n" );
	document.write( '<param name="menu" value="false" />'+"\n" );
	document.write( '<embed src="'+swf+'" menu="false" quality="high"'+(trans!=0?' wmode="transparent"':'')+' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed>'+"\n" );
	document.write( '</object>'+"\n" );
}