/*
function callback(hash)
{
	console.log('Hash is: ' + hash);
	if(hash) {
		$("#primaryContent").load('index.php?ajax=1&' + encodeURI(hash));
	} else {
		//$("#primaryContent").load('index.php?action=browse&ajax=1&dir=/');
	}
}
$(document).ready(function() {
    $.history.init(callback);
    $("a[@rel='ajax']").click(function(){
        $.history.load();
        return false;
    });
});
*/
$(document).ready(function() {
	$('a[rel*=facebox]').facebox();
});
 
function getURLParam( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}
