
$(function(){

	$('.ca_floor_tip').poshytip({
		className: 'tip-yellowsimple',
		showTimeout: 1,
		alignTo: 'cursor',
    alignX: 'center',
    alignY: 'top',
    fade: false,
    slide: false,
    offsetX: 20,
		allowTipHover: false
	});

});

function highlight_ca(pimg,px,py,status) {
  var $frame = $('#buildings_ca_frame');
  //$('#buildings_ca_ftt').poshytip('hide'); 
  if (!status) {
    $frame.hide();
    return;
  }
  $frame.get(0).src = "userfiles/"+pimg;
  $frame.css({
    top: py+"px",
    left: px+"px"
  }).show();
}

function highlight_fa(id,status) {
  var $frame = $('#ffoverlay'+id);
  if (!status) {
    $frame.stop().hide();
    return;
  }
  $frame.stop().show();
}

$(document).ready(function(){
	$("#floormap area:last").mouseover();
  $('#buildings_ca_ftt').poshytip({
		className: 'tip-yellowsimple',
		showTimeout: 1,
		alignTo: 'target',
    alignX: 'right',
    alignY: 'top',
    fade: false,
    slide: false,
		allowTipHover: false
	}).poshytip('show');
	setTimeout(function() { 
    //$('#buildings_ca_ftt').poshytip('hide'); 
	  //$("#floormap area:last").mouseout();
  }, 5000);
})
