$(document).ready(function(){
		var term = "";
        term = $('#term').attr('value');
		$('span.highlight').each(function(){$(this).after($(this).html()).remove();});
		if($('#term').val() != ""){
                $('.searc :contains("'+term+'")').each(function(){
				$(this).html($(this).html().replace(new RegExp(term,'g'), '<span class="highlight">'+term+'</span>'));
				$(this).find('span.highlight').fadeIn("slow");
			});
			return false;
		}
});
$(function() {$('#gallery a').lightBox();});

function show_photos(url,x,y,name,isscrollbars) {
    cx = screen.width/2 - (x/2);
    cy = screen.height/2 - (y/2);
    isscrollbars = (isscrollbars == "no")?"no":"yes";
    window.open(url,name,"toolbar=no,status=no,directories=no,menubar=no,resizable=no,width="+x+",height="+y+",scrollbars="+isscrollbars+",top="+cy+",left="+cx);
}
swfobject.embedSWF("/flash/consultant.swf", "Consultant", "150", "250", "6.0.0");

