/*
==================================================================================
(c) AdvertisingSolutions, Inc.
http://advertisingsolutions.net
==================================================================================
COPYRIGHT / USAGE RIGHTS NOTICE:
This code is part of package of core files programmed,
owned and property of Advertising Solutions, Inc.
Duplication / Modification strickly forbidden.

Attention Webdeveloper: It is a violation of copyright law to use this
file without explicit written permission from Advertising Solutions, Inc.
This entire notice and copyright must remain intact on all copies.
==================================================================================
*/
// ==================================================================================
// DEFINE JQUERY FUNCTIONS
// ==================================================================================
$(document).ready(function(){			   


	// SCROLL TO TOP FUNCTION
	$('#gototop').click(function(){
		$('html, body').animate({scrollTop:0}, '1500');
	});
	
	
	$('#btn_search').mouseover(function() {  
		$(this).addClass("button_hover"); 
	});
	$('#btn_search').mouseout(function() {  
		$(this).removeClass("button_hover");
	});
	
	$('#submit').mouseover(function() {  
		$(this).addClass("button_hover"); 
	});
	$('#submit').mouseout(function() {  
		$(this).removeClass("button_hover");
	});

	$('#asi_map_go').mouseover(function() {  
		$(this).addClass("button_hover"); 
	});
	$('#asi_map_go').mouseout(function() {  
		$(this).removeClass("button_hover");
	});
	

	// CHANGE FORM INPUT STYLES ON FOCUS - PAGE CONTENT ELEMENTS ONLY (not sidebar)
	$('#asi3_pagecontent input[type="text"]').focus(function() {
    	$(this).addClass("input_focus");
	});
	$('#asi3_pagecontent textarea').focus(function() {
    	$(this).addClass("input_focus");
	});
	
	$('#asi3_pagecontent input[type="text"]').blur(function() {
    	$(this).removeClass("input_focus");
	});
	$('#asi3_pagecontent textarea').blur(function() {
    	$(this).removeClass("input_focus");
	});
	
	
	

});	
// ==================================================================================
// ==================================================================================

// ==================================================================================
// DEFINE JAVASCRIPT FUNCTIONS
// ==================================================================================

	// CLEAR TEXT BOXES
	function clearIt(theText) {
		 if (theText.value == theText.defaultValue) {
			 theText.value = ""
		 }
	 }
