/*================================================
-Main.js Document;
================================================*/
//----------------------------------------------- Cufon
	Cufon.replace('h1, h2, h3, h4, h5, h6, .content-inside h5', {hover: true, fontFamily: 'Helvetica Neue LT Std Bold' });
	Cufon.replace('#nav:has(ul) > li a', { fontFamily: 'Helvetica Neue LT Std Roman', 'color':'#fff' });
	Cufon.replace('#nav:has(ul) > li.current_menu_item a, #nav li.nav-child a', { fontFamily: 'Helvetica Neue LT Std Roman', 'color':'#000' });
	//selects only 1st level links
	Cufon.replace('#container p, #container a, .row label, .container-list ul li, #tabs-container ul.tabs li a, .popup-content', { hover: true, fontFamily: 'Helvetica Neue LT Std Roman'});
	//selects only 2nd level links
	Cufon.replace('#container p:not(:has(p)) span, .address li:not(:has(li)) span', { hover: true, fontFamily: 'Helvetica Neue LT Std Bold'});
//----------------------------------------------- $(document).ready start
	$(document).ready(function(){

//----------------------------------------------- $cufon-replace start
	 $('#nav:has(ul) > li').hover(
	  function(){
	   $(this).attr('id' , 'cufonStyleThis');
	   Cufon.replace('#cufonStyleThis',{
	   'fontFamily' : 'Helvetica Neue LT Std Roman',
	   'color' : '#000'
	  });
	  },
	  function(){
	   if($('#cufonStyleThis').parent().hasClass('active')){
		
	   }else {
	   Cufon.replace('#cufonStyleThis',{
	   'fontFamily' : 'Helvetica Neue LT Std Roman',
	   'color' : '#fff'
	   });
	   }
	  $(this).removeAttr('id');
	  }
	 );
	 
	 
	 $('#nav:has(ul) > li.current_menu_item').hover(
	  function(){
	   $(this).attr('id' , 'cufonStyleThis2');
	   Cufon.replace('#cufonStyleThis2',{
	   'fontFamily' : 'Helvetica Neue LT Std Roman',
	   'color' : '#000'
	  });
	  },
	  function(){
	   if($('#cufonStyleThis2').parent().hasClass('active')){
		
	   }else {
	   Cufon.replace('#cufonStyleThis2',{
	   'fontFamily' : 'Helvetica Neue LT Std Roman',
	   'color' : '#000'
	   });
	   }
	  $(this).removeAttr('id');
	  }
	 );
	 

	
	 
});


