/* ============================================================
	JS Library
============================================================ */
ieHover = function() {
	var ieEls = document.getElementById("page").getElementsByTagName("LI");
	for (var i=0; i<ieEls.length; i++) {
		ieEls[i].onmouseover=function() { this.className+=" hover"; }
		ieEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" hover\\b"), ""); }
	}
}
if (window.attachEvent) window.attachEvent("onload", ieHover);
try{document.execCommand("BackgroundImageCache",false,true);}catch(err){}
jQuery(document).ready(function() {
	jQuery('input[value]').each(function(){
		if(this.type == 'text' || this.type == 'password') {
			jQuery(this).focus(function(){ if (this.value == this.defaultValue) { this.value = ''; }
			}).blur(function(){ if (!this.value.length) { this.value = this.defaultValue; }});
		}
	});
	jQuery('textarea').each(function(){
		jQuery(this).focus(function(){ if (this.value == this.defaultValue) { this.value = ''; }
		}).blur(function(){ if (!this.value.length) { this.value = this.defaultValue; }});
	});
	jQuery('.banner ul').cycle({ fx: 'fade', timeout: 3000, sync: 0, requeueTimeout: 100, requeueOnImageNotLoaded: 'true', delay: 1000, continuous: 0 });
});
Cufon.replace('#footer .box h4,#menu li a,#cat-navi li a,#content .post h1,#content .post .entry-title,.secondary .xoxo h4,h4#respond,div#respond h4,h4#comments,#content .post-author h4,#content .post-brief h3,h2#category-title,#content .home-feature h3,h2#contrib-title,#content .contrib-author h4', { hover:true });
