		
		$(document).ready(function() {
					
			// Clear the searchfield on focus
			$('#q').click(function() {
				$(this).val('');
			});
			
			// Clear the keyword on focus
			$('#keyword').click(function() {
				$(this).val('');
			});

			$.preloadImages(baseURL+"_abase/images/shared/qlink-tab-on.jpg", baseURL+"_abase/images/shared/qlink-tab-on.jpg");

			// If javascript is available void the href for the q link
			$('a#quicklink').removeAttr('href');
			
			// Cursor change
			$('a#quicklink').hover(function() {
				$(this).css('cursor', 'pointer');
			}, function() { 
				$(this).css('cursor', 'default');
			});
			
			
			// On click show hide the navbar
			var qlink = $('#qlink-list').hide();
			$('a#quicklink').click(function(){
			   var vis = qlink.is(':visible');
			   qlink[ vis ? 'hide' : 'show' ]();
			   if (vis)
			   {
			   		$("img#ql").attr("src", baseURL+"_abase/images/shared/qlink-tab-off.jpg");
			   }
			   else
			   {
			   		$("img#ql").attr("src", baseURL+"_abase/images/shared/qlink-tab-on.jpg");
			   }
			
			}); 
			
			$('.popup').popupWindow({ 
				height:800, 
				width:800, 
				top:160, 
				left:200, 
				resizable:true
			}); 

		});
		
		
/*
		var popUpWin=0;
		function popUpWindow(URLStr, left, top, width, height)
		{
		  if(popUpWin)
		  {
			if(!popUpWin.closed) popUpWin.close();
		  }
		  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		}
*/