function url_href($objectType, $event = 'onclick')
 {
     $href_ID = '';
     if ($this->src_url == '') {
         $var_srcurl = pt_return_get($this->main_url);
     } else {
         $var_srcurl = $this->src_url;
     }
     $var_srcurl = ", src: '" . $var_srcurl . "'";
     $this->htmlexpand = "return hs.htmlExpand(this, { objectType: '" . $objectType . "', " . $this->outlineType . $this->align . $this->wrapClass . $var_srcurl . ', objectWidth: ' . $this->rawWidth . ', objectHeight: ' . $this->rawHeight . ', allowSizeReduction: true' . $this->objectLoadTime . '},{' . "footext: '" . $this->footext . "'" . ", foohref: '" . $this->foohref . "'" . ", conwidth: '" . $this->objectWidth . "'" . ", hspadding: '0'" . ", hsmargin: '" . $this->rawMargin . "'" . '})';
     return "\n" . '<a href="' . $this->main_url . '" title="' . $this->title . '" class="' . $this->myclasshref . '" ' . $href_ID . $event . '="' . $this->htmlexpand . '">';
 }
function pt_next_post_link($format = '%link &raquo;', $link = '%title', $in_same_cat = false, $excluded_categories = '')
{
    $post = get_next_post($in_same_cat, $excluded_categories);
    if (!$post) {
        return;
    }
    $hs_url = get_permalink($post->ID);
    $url_inframe = pt_return_get($hs_url);
    $title = apply_filters('the_title', $post->post_title, $post);
    $string = '<a href="' . $url_inframe . '">';
    $link = str_replace('%title', $title, $link);
    $link = $string . $link . '</a>';
    $format = str_replace('%link', $link, $format);
    echo $format;
}