// Domains Aid v.01  
//	first alpha draft by KaiChanVong.com (22-03-09).
//   Under the Creative Commons License.  Share & Share alike.   


// write the doc's URL + Title & add jQuery from Goog's AJAX libs
  var daURL = document.URL;
  var daTitle = document.title;
 // var jVa = ('<scr'+'ipt type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"><\/scr'+'ipt>');	

// gogogo SUper Resig script!  I've commented this out for now.. as it loads after the DOM which is only useful for jQ diagnostics and not if jQuery isn't present 
//  document.write(jVa) 
  
  // title is case sens... so if ur n00b and using <TITLE!!!!11 RAH> it wont work.  Well DUH.
  document.write('<span id="doc-write">' + daTitle + ' @ <em>' + daURL + '</em></span>');
	
	
$(document).ready(function(){

// I'm putting on the party clothes for the doc-writes then adding the hide on click
  $('body').css('padding-top','20px');
  $('#doc-write').css('position','fixed').css('top','0').css('font-size','22px').css('background','#f9f9f9').css('cursor','pointer').css('width','100%').css('color','#666').css('padding','10px 12px 10px 80px').click(function(){  
	  $(this).hide();							 
	  });

// Now a click to bring it back 
  $('head').css('cursor','pointer').click(function(){
	$('#doc-write').show();
	  });
});

    