// JavaScript Document
$(document).ready(function(){
//home page stuff 
	$(".readmore").click(function() { 
location = ($(this).children("a").attr("href"));
})
	
// TABS
$('.theTabs').hover(function() {$(this).addClass('hover');$(this).children("a").removeClass('tablink');$(this).children("a").addClass('hoverend');$(this).children("a").css('color','#000');
},  function() { $(this).removeClass('hover');$(this).children("a").removeClass('hoverend');
$(this).children("a").addClass('tablink'); $(this).children("a").css('color','#fff');});  
// for left navs 
var bindBehaviors = function(scope) {
		$('a.hassubs', scope).click(function() {
			 if($(this).parents('li').is(".arrowup") ) {
 				$(this).parents('li').removeClass().addClass('hassubs');	  
				 } else {
				 $(this).parents('li').removeClass().addClass('arrowup');	
				 }
			$(this).next('ul').toggle('slow',function() {
			}); 
			return false;
      	});
		}
	bindBehaviors(this); 
	$("a.all").click(function(){
   		$("ul.hiddenlinks").slideDown("slow");
       	return false;
     								});
	$("a.nothing").click(function(){
   		$("ul.hiddenlinks").slideUp("fast");
       	return false;
		
		
});  $('.tops').corners("10px top-left top-right");
	 $('.bottoms').corners("10px bottom-left bottom-right");
	  $('.rounded').corners("7px");
	  $('.round').corners("10px");
	  $('.lefties').corners("10px top-left bottom-left ");
});
/************ TO DO - get rid of this **********************/
function OpenWin(sURL,swinName,features) {  
  window.open(sURL,swinName,features);
}
