function callout(){
	$('.co').each(function(i){
		$(this).wrapInner("<div class='co_body'></div>");
		var hh=$(this).find('.co_body').outerHeight();
		hh=hh+11;
		hhh=hh+60;
		var ww=$(this).find('.co_body').innerWidth();
		ww=ww-13;
		$(this).prepend("<div class='co_top_left'></div><div class='co_top'></div>");
		$(this).append("<div class='co_bottom_left'></div><div class='co_bottom'>");
		$(this).find('.co_top').width(ww);
		$(this).find('.co_bottom').width(ww);
		$(this).find('.co_bottom_left,.co_bottom').css('top',hh);
		var th=$(this).height();
		$(this).height(hhh);
    //$(this).fadeIn();
    $(this).css('visibility','visible').hide().customFadeIn(300);
	});
}

$.fn.customFadeIn = function(speed, callback) {
  $(this).fadeIn(speed, function() {
    if(jQuery.browser.msie)
      $(this).get(0).style.removeAttribute('filter');
    if(callback != undefined)
      callback();
  });
};
$.fn.customFadeOut = function(speed, callback) {
  $(this).fadeOut(speed, function() {
    if(jQuery.browser.msie)
      $(this).get(0).style.removeAttribute('filter');
    if(callback != undefined)
      callback();
  });
};


$(function(){
    $('.pq').each(function(i){
        $(this).prepend("<div class='pullquote'>&ldquo;</div>");
        $(this).append("<div class='pullquote' style='text-align:right;'>&rdquo;</div>");
      });
		$('.pqi').each(function(i){
        $(this).prepend("<span class='pullquoteInline'>&ldquo;</span>");
        $(this).append("<span class='pullquoteInline' style='text-align:right;'>&rdquo;</span>");
      });
  if($('.co').length > 0){
    //$('head').append("<link id='calloutcss' href='callout.css' rel='stylesheet'>");
    //$.get("http://www.ptclinic.com/site/callout.css",function(data){$('head').append("<style type='text/css'>"+data+"</style>");});
      if ($.browser.safari) {
    var t=setTimeout('callout()',2000);
    }
    else{
    var t=setTimeout('callout()',1000);
    }
  }
})
