// JavaScript Document
$(document).ready(function(){

	$("#casepics").PikaChoose(
		{
			user_thumbs:false, show_prev_next:false,
			show_captions: false, auto_play: true,
			thumb_width: 50, thumb_height: 40

		});

    $('#chooseservicesList').position('#openpanel', {
        anchor: ['tl', 'bl'],
        offset: [-15, 8]
      });

    $('#openpanel').click(function () {
          $("#chooseservicesList").slideToggle("slow");
          if ($('#openpanel').text()=='Open panel') {
              $('#openpanel').text('Close panel')
          } else {
              $('#openpanel').text('Open panel')
          }
        });

    $('a#institutions_link').qtip({
		content: 'Search for X Ray and other Radiological services within Trinidad and Tobago',
		position: {
			adjust: { x: -25, y: -92 }
		},
		style: {
		  width: 220,
		  border: 0,
		  padding: 7,
		  background: '#FBCA01',
		  color: '#FFF',
		  title: { 'font-weight': 'bold' },
		  tip: { corner: 'bottomLeft',
				color: '#FECB00'}
		}

	});



});

