/****************************************
GLOBAL.JS
- This file is used to store functions that are called on everypage
****************************************/


/****************************************
$().ready()
- this function is triggered when all page elements have been loaded
and are ready to be manipulated. just like onload="init()"
****************************************/
$().ready(function(){


	var $top = 0;
	if ($.browser.msie){
		$top = -80;
	}
	else{
		$top = -280;
	}

	$('a.library').cluetip({local:true,
						    hoverIntent: false,
							dropShadow: false, 
							showTitle: false,
							 positionBy:       'fixed',
     						sticky: true,
							topOffset:       $top, 
							leftOffset:       -35,
							waitImage:        false,
							closeText:        '',
							activation:       'click',
      						mouseOutClose: false, cursor: 'pointer'});
	
	$('a.library-right').cluetip({local:true,
						    hoverIntent: false,
							dropShadow: false, 
							showTitle: false,
							 positionBy:       'fixed',
     						sticky: true,
							topOffset:        $top, 
							leftOffset:       -415,
							waitImage:        false,
							closeText:        '',
							activation:       'click',
      						mouseOutClose: false, cursor: 'pointer'});
      						
		$(".see-details").click(function() {							 
	   $(this).parent().find('a:first').click();
	}); 
	
	$(".closePopup").click(function() {
		$("#cluetip-close").click();
	}); 



});

