//Start Desable selection and clicks 2012-01-05

function disablerclick(){var message="";function clickIE(){if(document.all){(message);return false;}}
function clickNS(e){if
(document.layers||(document.getElementById&&!document.all)){if(e.which==2||e.which==3){(message);return false;}}}
if(document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")}
function disableSelection(target){if(typeof target.onselectstart!="undefined")
target.onselectstart=function(){return false}
else if(typeof target.style.MozUserSelect!="undefined")
target.style.MozUserSelect="none"
else
target.onmousedown=function(){return false}
target.style.cursor="default"}
////End Desable selection and clicks 2012-01-05


// JavaScript Document

$(document).ready(function(){
	// B to B search box display 'Enter key words'
	if($('#btobsearchtxt').val()==''){
			$('#btobsearchtxt').val('Enter key words');	
	}
	
	$('#btobsearchtxt').click(function(){
		if($(this).val()=='Enter key words'){
			$(this).val('');	
		}
	});
	$('#btobsearchtxt').focusout(function(){
		if($(this).val()==''){
			$(this).val('Enter key words');
		}
	});
	
	$('#adv_search_link a').click(function(){
		if($('#adv_search_box').css('display')=='block')
			$(this).html('Show Advanced Options &raquo;');
		else
			$(this).html('Hide Advanced Options &laquo;');								   
		$('#adv_search_box').toggle(500);
	});
});
