﻿// Clear Input Text fields //
function init(){
	var inp		=	document.getElementsByTagName('input');
	for(var i	=	0;i<inp.length;i++){
		if(inp[i].type=='text'){
			inp[i].setAttribute('rel',inp[i].defaultValue)
			inp[i].onfocus=function(){
				if(this.value==this.getAttribute('rel')){this.value='';}
				else{return false;}
			}
			inp[i].onblur=function(){
				if(this.value==''){this.value=this.getAttribute('rel');}
				else{return false;}
			}
			inp[i].ondblclick=function(){this.value=this.getAttribute('rel')}
		}
	}
}
if(document.childNodes){window.onload=init}

// Popup Window //
function MM_openBrWindow(theURL,winName,features){
	window.open(theURL,winName,features);
}

// Fix form elements from showing dotted lines //
//jQuery(function($) {
//	$("input:button,input:submit,input:radio,input:checkbox,input:image").focus(function() {
//		this.blur();
//	});
//});

<!---// Fix bug with dropdown not showing over Cycle plugin --->
//$(function() {
//	var zIndexNumber = 1000;
//	$('div').each(function() {
//		$(this).css('zIndex', zIndexNumber);
//		zIndexNumber -= 10;
//	});
//});
