// <![CDATA[
	var myMenu;
	function menu() {
		myMenu = new SDMenu("my_menu");
		myMenu.init();
	};
	// ]]>

function open1()
{
	window.open("http://www.credivisionperu.com:8080/credivision/","Ventana1","width=790, height=540, left=1, top=0, scrollbars=yes, toolbar=no,Resizable=yes");
}
function open2()
{
	window.open("docs/Ejemplo_explic.pdf");
}
function open3(){
	window.open("http://www.credivisionperu.com:8080/simuladorCuotas/",".::Simulador de Creditos::.","width=790, height=540, left=1, top=0, scrollbars=yes, toolbar=no,Resizable=yes");
}
function open4()
{
	window.open("docs/CONTRATO DE  PAGO DIARIO.pdf");
 //window.open("docs/CONTRATO DE  PAGO DIARIO LIMA.pdf");
// window.open("docs/CONTRATO DE  PAGO DIARIO CUSCO.pdf");
}
function open5()
{
	window.open("docs/CONTRATO DE CREDITO PAGO SEMANAL.pdf");
 //window.open("docs/CONTRATO DE CREDITO PAGO SEMANAL LIMA.pdf");
// window.open("docs/CONTRATO DE CREDITO PAGO SEMANAL CUSCO.pdf");
}
function open6()
{
   window.open("docs/Contrato de Credito Mensual.pdf");
 //window.open("docs/Contrato de Credito Titular - Fianza Lima.pdf");
// window.open("docs/Contrato de Credito Titular - Fianza Cusco.pdf");
}
function open7()
{
	window.open("docs/CONTRATO DE CREDITO TAMBOS COMUNALES.pdf");
// window.open("docs/CONTRATO DE CREDITO TAMBOS COMUNALES LIMA.pdf");
// window.open("docs/CONTRATO DE CREDITO TAMBOS COMUNALES CUSCO.pdf");
}
function open8()
{
 window.open("docs/LeyN28683.pdf");
 window.open("docs/LeyN27408.pdf");
}

function openTesti(pagina){
	window.open(pagina,"Testimonio","width=550, height=550, left=1, top=0, scrollbars=yes, toolbar=no,Resizable=NO");
}
function openpropaganda(){
	window.open('/fla/slide1.html',"Testimonio","width=471, height=420, left=0, top=0, scrollbars=no, toolbar=no,Resizable=NO");
}
function irA(pagina){
location.href=pagina;
}

function request(pagina,tab,contenedor){
			pagina+="?tab="+tab+"&contenedor="+contenedor;
			location.href=pagina;
}
		function cambiarcolor(a){
		
		document.getElementById(a).style.color="#FF9933";
			
		}
function click(){
if(event.button==2){
alert('©Copyrigth Edpyme Credivision S.A.');
}
}
document.onmousedown=click
function tecla(e) {
    evt = e ? e : event;
    tcl = (window.Event) ? evt.which : evt.keyCode;
    if (tcl == 93)
    {
        alert('©Copyrigth Edpyme Credivision S.A.');
        return true ;
    }
    return false;
}


function Mostrar(TabName)
{
    for (i = 0; i < _TabsArray.length; i++)
    {
        if (_TabsArray[i] != TabName)
            document.getElementById(_TabsArray[i]).style.display = "none";
    }
    document.getElementById(TabName).style.display = "";
}

function activeTab(tab){   
	for(c=0;c<_TabsTitle.length;c++){
		document.getElementById(_TabsTitle[c]).className = "";
		}
		
		document.getElementById("tab"+tab).className = "active";
}
	
	var valores= new Array(2);
	var tab;
	var contenedor;
	
function response(){
		url = location.href;
		val = url.indexOf("?"); 
		val = url.substring(val+1,url.length); 
		datos = new Array(); 
		datos = val.split("&") ;
		
				for (x=0;x<datos.length;x++){ 
					tem=new Array();
					tem=datos[x].split("=")
					valores[x]=tem[1]; 
				}
						tab=""+valores[0];
						contenedor=""+valores[1];
					for(z=0;z<_TabsArray.length;z++){
					if(_TabsArray[z]==contenedor){
						
						Mostrar(contenedor);
					}
					}
					for(y=0;y<_TabsTitle.length;y++){
						condicion="tab"+tab;
						if(_TabsTitle[y]==condicion){
							
						activeTab(tab);
						}
					}
				
			
	}
