/*
* Author:			Aaron Alexander (nerdfiles.net)
*/

var baseDomain = "nerdfiles.net";
var baseEmailDomain = "gmail.com";

$(document).ready(function(){

/*
Since the "target" attribute is no longer permitted under the XHTML 1.0 Strict specification
See (for a discussion): http://robertnyman.com/2006/02/13/how-evil-is-the-target-attribute/
*/
$("a[rel='external']").click(function(event) {
window.open(this.href);
return false;
});

/*
A poor man's e-mail obfuscation
*/
$("a[rel^='email']").click(function(event) {
var str = this.rel;
var emailHandle = str.replace(/email/, "");
window.location = "mailto:" + emailHandle + "@gm" + "ai" + "l.com";
return false;
});

$("#content").click(function(event){
	//alert(html.innerHTML);
	//alert(this.innerHTML);
});

/*jQuery.easing.def = "easeOutBounce";

function showSubBox(){
	//alert($(this.getElementsByTagName('div')[0]).css("height"));
	$(this.getElementsByTagName('div')[0]).animate({height: $(this.getElementsByTagName('div')[0]).css("height")}, 600);
	//$(this.getElementsByTagName('div')[0]).css("display", "block");
	//alert('show');
}
function hideSubBox(){
	$(this.getElementsByTagName('div')[0]).animate({height: 0, top: "5px"}, 600);
	//$(this.getElementsByTagName('div')[0]).css("display", "none");
}

var config = {    
     sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)    
     interval: 200, // number = milliseconds for onMouseOver polling interval    
     over: showSubBox, // function = onMouseOver callback (REQUIRED)    
     timeout: 500, // number = milliseconds delay before onMouseOut    
     out: hideSubBox // function = onMouseOut callback (REQUIRED)    
};

/*$("#nav li").hoverIntent(
	makeTall,
	makeShort
);
//sel2.val('easeOutBounce');
//var method2 = sel2.val();
$("#nav li").hoverIntent( config );*/

});