$(document).ready(function()
 {
	// add a "rel" attrib if Opera 7+
	if(window.opera) 
	 {
		if ($("a#bm").attr("rel") != ""){
			$("a#bm").attr("rel","sidebar");
                
		} 
	 }
	$("a#bm").click(function(event){
		event.preventDefault();
		var url = this.href;
		var title = this.title;
		
		if (window.sidebar) { // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
		} else if( window.external ) { // IE Favorite
			window.external.AddFavorite( url, title);
		} else if(window.opera) { // Opera 7+
			return false; // do nothing
		} else { 
			 alert('Unfortunately, this browser does not support the requested action,'
			 + ' Press "Ctrl + D" or "CMD + D" for MAC, to add this page to your bookmarks.');
		}
	
	});
	$("#reference").click(function(event)
	 {
		 $("#quick-reference").show("slow");
		 $("#signin-dialog").hide("slow");
	 });
	
	$(".sign-in").click(function(event)
	 {
		 $("#signin-dialog").show("slow");
		 $("#quick-reference").hide("slow");
	 });
	
	$("#exit-guide").click(function(event)
	 {
		 $("#quick-reference").hide("slow");
	 });
	
    $("#Close-Authentication").click(function(event)
	 {
		 $("#signin-dialog").hide("slow");
	 });	
	
});

function NewWindow(Address)
  {
     window.open(Address, '', '');
  }
