
if( top.frames.length == 0 )
	location.href = "../index.htm";

 function toCbe( str ){
	return cbeGetElementById(str).cbe;
 }
 var nMenuOn = -1;
 var aTextos = new Array( "La diseñadora", "Nuestras novias", "Notas de prensa", "Galería de fotos", "Complementos", "Contactar" );

 function menuOver( i ){
	if( nMenuOn != i )
		cbeSetImage( "idMenu" + i, "imgMenu" + i + "On" );
	window.status = aTextos[ i - 1 ];		
 }

 function menuOut( i ){
	if( nMenuOn != i )
		cbeSetImage( "idMenu" + i, "imgMenu" + i + "Off" );
	window.status = aTextos[ i - 1 ];		
 }

 function menuClick( i ){
	window.focus();
	window.status = aTextos[ i - 1 ];		
	if( nMenuOn != -1 ){
		cbeSetImage( "idMenu" + nMenuOn, "imgMenu" + nMenuOn + "Off" );
		toCbe( "divText" + nMenuOn ).visibility( false );
	}
	cbeSetImage( "idMenu" + i, "imgMenu" + i + "On" );
	nMenuOn = i;
	var aPos
	switch( i ){
		case 1:
			aPos = new Array( 15, 245, 350, 455, 560, 665 );
			break;
		case 2:  
  			aPos = new Array( 15, 110, 350, 455, 560, 665 );
			break;
		case 3:  
			aPos = new Array( 15, 110, 205, 455, 560, 665 );
			break;
		case 4:  
			aPos = new Array( 15, 110, 205, 300, 560, 665 );
			break;
		case 5:  
  			aPos = new Array( 15, 110, 205, 300, 400, 665 );
			break;
		case 6:  
			aPos = new Array( 15, 110, 205, 300, 400, 505 );
			break;
	}
	for ( var n=1; n<=6; n++ ){
		if( n == 6 ){
//			if ( i != 2 && i != 5 )
				toCbe( 'divMenu' + n ).slideTo( aPos[ n - 1 ], 10, 500, 'transicion( "divText' + i + '", 12 );parent.frames[ "IsabelL_principal" ].location.href="seccion' + i + '/index.htm"' );
//			else
//				toCbe( 'divMenu' + n ).slideTo( aPos[ n - 1 ], 10, 500, 'transicion( "divText' + i + '", 12 );' );
		} else{
			toCbe( 'divMenu' + n ).slideTo( aPos[ n - 1 ], 10, 500 );
		}

	}


 }

function transicion( strCapa, ntrans ){
	if( is.ie ){
		var o = document.all( strCapa );
		o.filters[ 0 ].Apply();
		o.filters.revealTrans.transition=ntrans;
		o.filters.revealTrans.duration=0.5;
		o.style.visibility = "visible";
		o.filters[ 0 ].Play();
	} else {
		var o = toCbe( strCapa );
		o.visibility( true );
	}
}

var tmrScroll;

function m_scrollStop(){
	if ( tmrScroll != null ) 
		clearInterval( tmrScroll );
}

function m_scrollUp(){
	if ( tmrScroll != null ) 
		clearInterval( tmrScroll );
	var o = toCbe( "scrollDiv" );
	if ( o.clipTop() > 0 ){
		o.moveBy( 0, 4 );
		o.clipBy( -4, 0, -4, 0 );
		tmrScroll = setTimeout( 'm_scrollUp()', 6 );
	}
}
function m_scrollDown(){
	if ( tmrScroll != null ) 
		clearInterval( tmrScroll );
	var o = toCbe( "scrollDiv" );
	if ( o.clipBottom() < o.height() ){
		o.moveBy( 0, -4 );
		o.clipBy( 4, 0, 4, 0 );
		tmrScroll = setTimeout( 'm_scrollDown()', 6 );
	}
}

function m_scrollLeft(){
	if ( tmrScroll != null ) 
		clearInterval( tmrScroll );
	var o = toCbe( "scrollDiv" );
	if ( o.clipLeft() > 0 ){
		o.moveBy( 10, 0 );
		o.clipBy( 0, -10, 0, -10 );
		tmrScroll = setTimeout( 'm_scrollLeft()', 3 );
	}
}

function m_scrollRight(){
	if ( tmrScroll != null ) 
		clearInterval( tmrScroll );
	var o = toCbe( "scrollDiv" );
	if ( o.clipRight() < o.width() ){
		o.moveBy( -10, 0 );
		o.clipBy( 0, 10, 0, 10 );
		tmrScroll = setTimeout( 'm_scrollRight()', 3 );
	}
}


