// JavaScript Document
window.addEvent('domready', function () {
					  
    if (document.getElementById('Secondarynav')!=null) {
        lists = $('Secondarynav').getFirst('ul').getElements('li');
        lists.each(function (item, index) {
            var list = item;
            item.addEvent('focus', function () {
                list.addClass('sfhover');
            }.bind(this));
            item.addEvent('blur', function () {
                list.removeClass('sfhover');
            }.bind(this));
            item.getElements('a').each(
            function (item, index) {
                item.addEvent('focus', function () {
                    list.addClass('sfhover');
                }.bind(this));
                item.addEvent('blur', function () {
                    list.removeClass('sfhover');
                }.bind(this));
            }, this);
        });
    }
	
	var FAQs=$$('a[rel=faqs]');
	FAQs.each(function(item){
					   new popup(item, {'name':'eKnowledge'});
					   
					   });
	
	
	
});


popup = new Class({
				   Implements:[Options,Events], 
				   options:{
					      winHeight:460,
						  winWidth:640,
						  name:'newWindow',
                          winTop: (screen.height/2),
                          winLeft: (screen.width/2)
					   
					   },
				   
				   initialize: function(el,options){
					   this.setOptions(options);
					    this.options.winTop= (screen.height/2) - (this.options.winHeight/2),
                        this.options.winLeft= (screen.width/2) - (this.options.winWidth/2)
					   this.el=el;
					   this.url=this.el.get('href');
					   
					   this.features= 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,height=' + this.options.winHeight + ',width=' + this.options.winWidth + ',top=' + this.options.winTop+',left=' + this.options.winLeft; 
 
                               this.el.addEvent('click', function(){
																  
														this.window=window.open( this.url, this.options.name, this.features);
														return false;
																  }.bind(this));
                                                             
                                    
                        }
				   });
