//add classes to form inputs based on their type
for(var i = 0, len = document.getElementsByTagName('input').length; i<len; i++){
	document.getElementsByTagName('input')[i].className += ' ' + document.getElementsByTagName('input')[i].type;
}

//open external links in a new window
var hostname = window.location.hostname,
	anchors = document.getElementsByTagName('a'),
	pattern = /^https?:\/\/(www.)?/i;

for(var i=0, len = anchors.length; i<len; i++) {
	if(pattern.test(anchors[i].href) && anchors[i].href.toLowerCase().indexOf(hostname) == -1){
		anchors[i].target = "_blank";
		anchors[i].className += ' external';
	}
}

<!--#include file="modernizr.js" -->
<!--#include file="cufon.js" -->
<!--#include file="jquery.cookie.js" -->
<!--#include file="jquery.validate.min.js" -->
<!--#include file="additional-methods.js" -->
<!--#include file="jquery.metadata.js" -->


