/* Enabling support for new HTML5 tags for IE6, IE7 and IE8 */
if(navigator.appName == 'Microsoft Internet Explorer' ){
	if( ( navigator.userAgent.indexOf('MSIE 6.0') >= 0 ) || ( navigator.userAgent.indexOf('MSIE 7.0') >= 0 ) || ( navigator.userAgent.indexOf('MSIE 8.0') >= 0 ) ){
		document.createElement('header')
		document.createElement('nav')
		document.createElement('section')
		document.createElement('aside')
		document.createElement('footer')
		document.createElement('article')
		
		document.createElement('hgroup')
		document.createElement('figure')
		document.createElement('figcaption')
	}
}
/* Enabling support for new HTML5 tags for IE6, IE7 and IE8 */

// Conditionally adding IE6 pngfix.js
if( ( navigator.appName == 'Microsoft Internet Explorer' ) && ( navigator.userAgent.indexOf('MSIE 6.0') >= 0 ) ){
	var fileref=document.createElement('script')
	fileref.setAttribute("type","text/javascript")
	fileref.setAttribute("src", 'scripts/pngfix.js')
	document.getElementsByTagName("head")[0].appendChild(fileref)
}



;(function($){
	$(function(){

		/************* CODE FOR INPUT EFFECTS  ********/
		$('input:text').focus(function(){
			if(this.value==this.defaultValue){this.value=''}
			$(this).css({color:'#333333'})
		})
		$('input:text').blur(function(){
			if(!this.value){this.value=this.defaultValue;}
			$(this).css({color:'#c4c4c5'})
		})
		$('input:password').focus(function(){
			if(this.value==this.defaultValue){this.value=''}
		})
		$('input:password').blur(function(){
			if(!this.value){this.value=this.defaultValue;}
		})
		$('textarea').focus(function(){
			if(this.value==this.defaultValue){this.value=''}
			$(this).css({color:'#333333'})
		})
		$('textarea').blur(function(){
			if(!this.value){this.value=this.defaultValue;}
			$(this).css({color:'#c4c4c5'})
		})
		/************* END CODE FOR INPUT EFFECTS  ********/
		
		if (window.PIE) {
			$('.gradient, .rounded, .shadow').each(function() {
				PIE.attach(this);
			});
		}
		
	})// END OF DOCUMENT READY FUNCTION
	

})(jQuery)

