// JQuery Scripts
$(document).ready(function(){
	
	// Rollovers using the class .rollover
	$(".rollover-gif").mouseover(function(){
		imgsrc = $(this).attr("src");
		matches = imgsrc.match(/-ro/);
		
		// don't do the rollover if state is already ON
		if (!matches) {
			imgsrcON = imgsrc.replace(/.gif$/ig,"-ro.gif"); // strip off extension
			$(this).attr("src", imgsrcON);
		}
	});
	
	$(".rollover-gif").mouseout(function() {
		$(this).attr("src", imgsrc);
	});

	// Rollovers using the class .rollover
	$(".rollover-jpg").mouseover(function(){
		imgsrc = $(this).attr("src");
		matches = imgsrc.match(/-ro/);
		
		// don't do the rollover if state is already ON
		if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"-ro.jpg"); // strip off extension
			$(this).attr("src", imgsrcON);
		}
	});
	
	$(".rollover-jpg").mouseout(function() {
		$(this).attr("src", imgsrc);
	});
	
	// Product Page Item Rollovers
	
	$(".highlight-selection").mouseover(function(){
		$(this).attr("style", "background-color: #f7f4f6");
	});
	
	$(".highlight-selection").mouseout(function(){
		$(this).attr("style", "background-color: #fff");
	});

	$("ul.nav").superfish({
		animation : { opacity:"show", height:"show" }
	});

});


function addBookmark(title,url) { 
 if (window.sidebar) { 
 	window.sidebar.addPanel(title, url,""); 
 } else if( document.all ) { 
 	window.external.AddFavorite(url, title); 
 } else if( window.opera && window.print ) { 
 	return true; 
	}
}

function ValidateForm(theForm) {
if(theForm.clientcode.value == '') {
	alert('Please fill in the "Proposal Code" field.');
	theForm.clientcode.focus();
	return false;
	}
return true;
}




