//var _gaq = _gaq || [];
//_gaq.push(['_setAccount', 'UA-1007117-3']);
//_gaq.push(['_trackPageview']);

function alignRightNav(){
	$('.right-col img').each(function(){
		$(this).css('padding-bottom',$(this).height()%20);
	});
}


init = function(){
	if(arguments.callee.doOnce){return;}
	arguments.callee.doOnce=true;
	/*(function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
	})();*/

	if(document.getElementById && document.getElementById("search-box")){
		document.getElementById("search-box").onfocus = function(){
			if(this.value = "[search]"){
				this.value = "";
			}
		}
	}
	if(document.getElementById && document.getElementById("subscribe-box")){
		document.getElementById("subscribe-box").onfocus = function(){
			if(this.value = "[Email Address]"){
				this.value = "";
			}
		}
	}
	if('$' in window){
		alignRightNav();
	}
	
}

if(document.addEventListener){document.addEventListener("DOMContentLoaded",init,null);}
window.onload=init;
