var popUp = function( dir )
{
  if ( newwindow  == undefined)
    var newwindow = window.open( dir ,'vnt','height=512,width=640');
}
window.addEvent('domready', function() {
	var activo;
  window.addEvent('resize', function() {
    var www = window.getSize().x - 480, kkr	= 10, kkl	= 0;
    $('main').setStyle('margin', "0 260px")	
    if( www >= 600 )
    {
      if(www > 600)
      {
        www = 600;
        $('main').setStyle('margin', "0 auto")	
      }
      kkr = 10 + "px";
      kkl = '';
    }
    else
    {
      www = 600;
      kkl =   www + 280 + "px";
      kkr = ''
    }
    $('main').setStyle('width', www + "px")	
    $('laterald').setStyle('left', kkl )	
    $('laterald').setStyle('right', kkr )	
  });
	act = $$('div.menu.'+act)
	var myAccordion = new Accordion($('menu'), 'div.menu', 'div.submenu', {
    opacity: !(Browser.Engine.trident) ,
		onActive: function(toggler, element){
        activo = toggler;
        toggler.setStyle('backgroundPosition', '-86px -' + toggler.getAttribute('ref') + 'px')
      if( element != undefined )
        element.removeClass('nactivo')
		},
		onBackground: function(toggler, element){
		toggler.removeClass('activo')
		if( element != undefined )
			element.addClass('nactivo')
			toggler.setStyle('backgroundPosition', 'left -' + toggler.getAttribute('ref') + 'px')
		}
	});
	$$('div.menu').addEvents({
		'mouseover': function(e){
     //  this.addClass('activo')
			this.setStyle('backgroundPosition', '-86px -' + this.getAttribute('ref') + 'px')
		},
		'mouseout': function(e){
			if( this != activo )
				this.setStyle('backgroundPosition', 'left -' + this.getAttribute('ref') + 'px')
        //this.removeClass('activo')
		}
	});
  window.fireEvent('resize');
	if( act != undefined && act) 
  {
    myAccordion.fireEvent('background',activo)
    myAccordion.fireEvent('active',act)
    act.fireEvent('click');
  }
  $('body').setStyle('visibility','visible');  
});

var MyriadPro = { src: Base + 'font/MyriadPro.swf' };
var GS3Alwyn = { src: Base + 'font/GS3Alwyn.swf' };
sIFR.activate(MyriadPro);
sIFR.activate(GS3Alwyn);
sIFR.replace(MyriadPro, {
	selector: '#footer p',
	transparent : true,
	css: ['.sIFR-root { color: #FFFFFF; font-size:14pt; text-align:center }','.sIFR-root a { color: #FFFFFF; text-decoration:none  }', '.sIFR-root a:hover { color: #FFFFFF }']
});
sIFR.replace(MyriadPro, {
	selector: '#footer div',
	transparent : true,
	css: ['.sIFR-root a{ color: #FFFFFF; font-size:12pt; text-align:center; text-decoration:none }', '.sIFR-root a:hover{ color: #FFFFFF; font-size:12pt; text-align:center }']
});
sIFR.replace(GS3Alwyn, {
	selector: 'div.logo',
	transparent : true,
	css: ['.sIFR-root h1 { font-size:70px; leading: -12; font-style: italic; font-weight:bold; color: #FFFFFF }',
	'.sIFR-root h2 { font-size:16.2pt; color: #FFFFFF }']
});
sIFR.replace(GS3Alwyn, {
	selector: 'div.submenu div div.activo',
	transparent : true,
	css: ['.sIFR-root a { font-size:14pt; color: #333333; text-decoration:none  }', '.sIFR-root a:hover { font-size:14pt; color: #333333 }']
});
sIFR.replace(GS3Alwyn, {
	selector: 'div.submenu div div',
	transparent : true,
	css: ['.sIFR-root a {font-size:14pt; color: #FFFFFF; text-decoration:none }', '.sIFR-root a.activo { font-size:14pt; color: #333333 }', '.sIFR-root a:hover { font-size:14pt; color: #333333 }']
});
sIFR.replace(MyriadPro, {
	selector: 'div#main div.fl',
	transparent : true,
	css: ['.sIFR-root h1 {font-size:18pt; color: #FFFFFF; font-weight:bold }',
	'.sIFR-root h2 { font-size:14pt; color: #333333; font-weight:bold}','.sIFR-root p { font-size:12pt; color: #333333; text-align:justify; leading:2 }']
});
sIFR.replace(GS3Alwyn, {
	selector: 'div.elsup h4.nor',
	transparent : true,
	css: ['.sIFR-root { font-size:15px; color: #FFFFFF; text-align:center }']
});	
sIFR.replace(MyriadPro, {
	selector: 'div.elsup h4.esp',
	transparent : true,
	css: ['.sIFR-root { font-size:11px; color: #FFFFFF; text-align:center }']
});
sIFR.replace(MyriadPro, {
	selector: 'div.elsupb h4.esp',
	transparent : true,
	css: ['.sIFR-root { font-size:11px; font-weight:bold; color: #8EADD6; text-align:center }']
});
sIFR.replace(GS3Alwyn, {
	selector: 'div.elform h3',
	transparent : true,
	css: ['.sIFR-root { font-size:15px; color: #FFFFFF; text-align:center }']
});
sIFR.replace(MyriadPro, {
	selector: 'div.elform h2',
	transparent : true,
	css: ['.sIFR-root { font-size:25px; color: #FFFFFF; text-align:center }']
});
sIFR.replace(MyriadPro, {
	selector: 'div.elform form p',
	transparent : true,
	css: ['.sIFR-root { font-size:14px; color: #FFFFFF; }']
});
sIFR.replace(MyriadPro, {
	selector: 'div.cconocer div.el',
	transparent : true,
	css: ['.sIFR-root p { leading:-10; font-size:20px; color: #FFFFFF; text-align:center }',
	'.sIFR-root p.h3 strong { font-size:19px }', 
	'.sIFR-root p.h4 a { font-size:14px; color: #FFFFFF; text-decoration:none; text-align:center }',
	'.sIFR-root p.h4 a:hover { font-size:14px; color: #FFFFFF; text-align:center }']
});
sIFR.replace(MyriadPro, {
	selector: 'div.cultima div.el',
	transparent : true,
	css: ['.sIFR-root p {color: #FFFFFF; text-align:center; }',
	'.sIFR-root .h3 { font-size:18px; }',
	'.sIFR-root .h4 { font-size:30px; }']
});
