//show hides corresponding  divs
function showHide(id)
{
	document.getElementById('content1').style.display ='none';
	document.getElementById('content2').style.display ='none';

	document.getElementById('content'+id).style.display ='block';
	
	switch(id){
		case 1: 
			document.getElementById('l1').className = 'active';
			document.getElementById('l2').className = '';
		break;
		case 2: 
			document.getElementById('l2').className = 'active';
			document.getElementById('l1').className = '';
		break;
			}
}
	
(function($){
$(function() {
$('input[name=keywords]').focus(function() {
if ($(this).val() == 'Enter Keywords') {
    $(this).val('');
}
}).blur(function() {
if ($(this).val() == '') {
    $(this).val('Enter Keywords');
}
});
});
})(jQuery);

//rollovers
$(document).ready(function() {
		
		// Preload all rollovers
		$("#container_left img").each(function() {
			// Set the original src
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/.png$/ig,"-on.png");
			$("<img>").attr("src", rollON);
		});
		
		// Navigation rollovers
		$("#container_left a").mouseover(function(){
			imgsrc = $(this).children("img").attr("src");
			matches = imgsrc.match(/-on/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.png$/ig,"-on.png"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
			}
			
		});
		$("#container_left a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
	
	});
