function clearFormValue(){
	if (!document.getElementsByTagName)return false;
	if (!document.getElementById) return false;
	if (!document.getElementById("subscibeForm")){
		return false;
	}
	
	var form = document.getElementById("subscibeForm");
	var input = form.getElementsByTagName("input");
	
	for(var j=0; j < input.length; j++){
		if(input[j].type=='text'){
			input[j].onfocus = function() {
				if(this.className.match(/clearText?/) && this.value == 'Email' ){
					this.value = '';
					this.style.color = '#000';
				}
			}
			input[j].onblur = function() {
				if(this.className.match(/clearText?/) && this.value == ''){
					this.value = 'Email';
					this.style.color = '#5c5c5c';
				}
			}
		}		
	}
}

var externalLinks = {
	init:function(){
		$("a[href^='http://']:not('.addthis_button'), a[href*=.pdf]").attr('title', function(){
				return $(this).attr('title')+' [opens in a new window]'
			}).click(function(){
				window.open(this.href);				
				return false;
		})
	}
}

$('document').ready(function(){

	clearFormValue;
//	externalLinks.init();
});

