//jQuery.noConflict();

// Put all your code in your document ready area
jQuery(document).ready(function($){

	$('.tip').qtip({
		position: {
			adjust: {
				screen: true
				}
			},
		style: { 
			tip: true,
			name: 'green'
		},
		show: { 
			solo: true,
			when: {
				event: 'mouseover'
			}
		}
	})

	// Image rollovers
	$('img.rollover').hover(
		function(){ 
			var t = $(this);
			t.attr('src',t.attr('src').replace('/.jpg', "$1_over.$2"));
		},
		function(){ 
			var t= $(this);
			t.attr('src',t.attr('src').replace('_over',''));
		}
	);
	// reset on click
	$('img.rollover').click(
		function(){ 
			var t= $(this);
			t.attr('src',t.attr('src').replace('_over',''));
		}
	);
	// end rollover effect
	
	
	// search hint text
	$("input[name=s]").focus(function() {
	if( this.value == this.defaultValue ) {
		this.value = "";
	}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
	
	//event box click area
	$(".events ul li").click(function(){ 
		//get the url from href attribute and launch the url 
		window.location=$(this).find("a").attr("href"); return false;  
	});

	$(".service_request_table:not(.noclick) tr td:not(.noclick), .live_auctions_main tr td").click(function(){ 
				//get the url from href attribute and launch the url 
				window.location=$(this).parent("tr").find("a").attr("href"); return false;  
			}); 
			
			$(".service_request_table tr th").click(function(){ 
				//get the url from href attribute and launch the url  
				if ($(this).find("a").attr("href")) window.location=$(this).find("a").attr("href");
				return false;  
			});

	
})
