$(document).ready(function(){
	$("#btc div").css("text-align","left").css("line-height","30px").css("height","30px").css("width","110px").children("a").prepend("<span>&nbsp</span>");
	$("#btc div").css("background-color","CCDDFF").css("border","#FFFFFF 1px solid");
	$("#btc table").css("width","110px");
	$("#btc td").css("text-align","left").css("height","30px").css("width","110px").children("a").prepend("<span>&nbsp</span>");
	$("#btc td").css("background-color","CCDDFF").css("border","#FFFFFF 1px solid");
	$("#btc td").css("margin","0 0 0 0").css("padding","0 0 0 0");
	$("#btc a").css("width","100%");
	$("#btc td").hover( 
	function(){
		$(this).css("background-color","0033CC");
		$(this).children("a").css("color","white");
	},
	function(){
		$(this).css("background-color","CCDDFF");
		$(this).children("a").css("color","0033CC");
	}
	);
	$("#btc div").hover( 
	function(){
		$(this).css("background-color","0033CC");
		$(this).children("a").css("color","white");
	},
	function(){
		$(this).css("background-color","CCDDFF");
		$(this).children("a").css("color","0033CC");
	}
	);
	$("#ftxt").focus( function(){
		if( $(this).attr("value") == "Search"){
			$(this).attr("value","");
		}
	}).blur(function(){
		if( $(this).attr("value") == ""){
			$(this).attr("value","Search");
		}
	}).keydown(function(event){
		if(event.keyCode==13)
		{
			var txt = $("#ftxt").attr("value");
			$("#fsh").attr("value","site:www.silport-tech.com " + txt);
		}
	});
	$("#fbtn").click( function(){
		var txt = $("#ftxt").attr("value");
		$("#fsh").attr("value","site:www.silport-tech.com " + txt);
	});
});
function checkpid(){
		if(search.tsearch.value=="Search")
			search.tsearch.value="";
	};
	function checkpid2(){
		if(search.tsearch.value=="")
			search.tsearch.value="Search";
};
$(document).ready( function(){
		$("span").prepend(" ").append(" ");
		$("input:submit").button().css("height","25px").css("padding-top","2px").css("padding-bottom","0px").css("margin-top","0px").css("margin-bottom","0px");
		$("input:text").button().css("text-align","left").css("height","25px").css("padding-top","2px").css("padding-bottom","0px").css("margin-top","0px").css("margin-bottom","0px").css("width","150px").css("overflow","hidden");
});
