 $(document).ready(function(){
 /* start function*/
 

	
	/*hover results*/
	jQuery('ul.results li').hover(function() {
	jQuery(this).addClass('pretty-hover');
	}, function() {
	jQuery(this).removeClass('pretty-hover');
	});
	
	jQuery('ul.inboxList li').hover(function() {
	jQuery(this).addClass('pretty-hover');
	}, function() {
	jQuery(this).removeClass('pretty-hover');
	});
	
	jQuery('#secondaryNavigation').hover(function() {
	jQuery(this).addClass('pretty-hover');
	}, function() {
	jQuery(this).removeClass('pretty-hover');
	});
	
	/*hover the tag cloud*/
	jQuery('.tagCloud').hover(function() {
	jQuery(this).addClass('pretty-hover');
	}, function() {
	jQuery(this).removeClass('pretty-hover');
	});
	
	/*primary navigation suckerfish replacement*/
	jQuery('#primaryNavigation li').hover(function() {
	jQuery(this).addClass('sfhover');
	}, function() {
	jQuery(this).removeClass('sfhover');
	});
	
	/*hover the A - Z results cloud*/
	jQuery('#AtoZResults li').hover(function() {
	jQuery(this).addClass('pretty-hover');
	}, function() {
	jQuery(this).removeClass('pretty-hover');
	});
	
	/*on the home page ensure that the two main columns are the same height by comparing and 
	making the greater height applied to both
	
	var theHeightOfPlaces = jQuery('body#pageDefault .places .boxContent').height();
	var theHeightOfFaces = jQuery('body#pageDefault .faces .boxContent').height();
	
	if(theHeightOfPlaces > theHeightOfFaces){
		jQuery('body#pageDefault .faces .boxContent').css({height:""+theHeightOfPlaces+"px"})
		}
	else{
		jQuery('body#pageDefault .places .boxContent').css({height:""+theHeightOfFaces+"px"})
		}*/

	
	/*PNG fix for IE*/
//    $(document).pngFix(); 
//  
/* end function*/
 });
 
function init(){

    // quit if this function has already been called
    if (arguments.callee.done) return;

    // flag this function so we don't do the same thing twice
    arguments.callee.done = true;

    // kill the timer
    if (_timer) clearInterval(_timer);
    
    var placesBox = jQuery('body#pageDefault .places .boxContent');
    var facesBox =  jQuery('body#pageDefault .faces .boxContent');
    
    var pH = placesBox.height();
    var fH = facesBox.height();
    
    var height = pH > fH ? pH : fH;

    placesBox.css({height:"" + height + "px"});
    facesBox.css({height:"" + height + "px"});
 };
