
			/*****************************
			 * 
			 * FORMS
			 * 
			 *****************************/ 
			//Hides form lables and puts the label value as the field value
			function hideFormLabels(form) {
				jQuery(form).find("label").each(function(){
					text = jQuery(this).html();
					inputID = jQuery(this).attr('for');

						jQuery('input#' + inputID).val(text);	
						jQuery('textarea#' + inputID).val(text);
						jQuery(this).hide();
				});
			}
			//Clears fields on click
			function clearField(form) {
					jQuery(form).find("input.text, textarea").each(function(){	
						this.defaultValue = this.value;
						jQuery(this).click(function(){
							if(this.value == this.defaultValue){
								jQuery(this).val("");
							}
						});
					});
			}
			
			/*****************************
			 * 
			 * LAYOUT
			 * 
			 *****************************/ 
			//Match 2 column heights
			function matchColumns(col1, col2) {		

				padding1 = jQuery(col1).outerHeight() - jQuery(col1).height();	
				padding2 = jQuery(col2).outerHeight() - jQuery(col2).height();

				height1 = jQuery(col1).outerHeight()
				height2 = jQuery(col2).outerHeight()
				
				if(height1 > height2) {
					jQuery(col2).height(height1 - padding2);
				}else{
					jQuery(col1).height(height2 - padding1);
				}
			}
			
			// Match a set of block elements in height
			function equalHeight(block, cell) {
					var tallest = 0;
					var cells = jQuery(block).find(cell);
					cells.each(function() {
						thisHeight = jQuery(this).height();
						if(thisHeight > tallest) {
							tallest = thisHeight;
						}
					});
					cells.height(tallest);

			}
			/*****************************
			 * 
			 * UI Enhancement
			 * 
			 *****************************/ 
			 
			// Make block clickable
			function clickBlock(block, link){
					jQuery(block).click(function() {
					  window.location = jQuery(this).find(link).attr("href");
					});
					jQuery(block).hover(  
						function() {  
					     jQuery(this).addClass("hover");   
						},  
						function() {  
					     jQuery(this).removeClass("hover");  
						}  
					);		
			}

