﻿
$(document).ready(function(){


if(typeof page_node != 'undefined' && !page_node.match('resources')){
$("p a").addClass("readmore");

$("p a").css("background-image","url(/images/readmore_bg.gif)");
$("p a").mouseover(function(){
   this.style.backgroundImage = 'url(/images/readmore_dot_bg.gif)'
});
$("p a").mouseout(function(){
   this.style.backgroundImage = 'url(/images/readmore_bg.gif)'
});

 }
 
 
 function setTarget()
{
var a = $('a');
var alength = $('a').length;
for(var j=0;j<alength;j++)
{
	if(a[j].href.match('http://') && !a[j].href.match('brucekayefoundation.org') && !a[j].href.match('netsolhost.com') && !a[j].getAttribute('target'))
	{
		a[j].setAttribute('target','_blank');
	}
}
}
setTarget()
 
 
 
 
 
 
  $('#topnav .nav').hover(
      function () {
			$(this).children().css('color','#307AD2');
      }, 
      function () {
		  if($(this).children('a').hasClass('help'))
		  {
				$(this).children().css('color','#BE0D14')
		  }
		  else {
       			$(this).children().css('color','#666666');
		  }
      }
    );
  
  $('#topnav .nav').click(function () { 
     var url = $(this).children().attr('href');
	 	document.location.href = 'http://02b250e.netsolhost.com'+url+'';
    });


 });






function navDrop(b)
{
	document.getElementById(b + '-drop').style.visibility = 'visible';
}

function navDropOff(b)
{	
	document.getElementById(b + '-drop').style.visibility = 'hidden';
}

function navList(c)
{
	c.style.backgroundColor = '#eee';
}

function navListOff(c)
{
	c.style.backgroundColor = 'transparent';
}




