function portfolio_jquery($atts = "", $content = null)
{
    extract(shortcode_atts(array('name' => '', 'items' => '10', 'headline' => '', 'archive_link' => false, 'show_nav' => 'true'), $atts));
    $echo = "";
    if (isset($headline)) {
        if ($headline != "") {
            $echo .= "<h3>" . $headline . "</h3>";
        }
    }
    if (isset($show_nav) and $show_nav != "false") {
        $echo .= '	<nav id="filter">';
        if ($archive_link != "") {
            $echo .= '<a class="  small " href="' . $archive_link . '">' . _e('All items', 'mega') . '</a>';
        }
        $echo .= '</nav>';
    }
    $echo .= '	<ul id="portfolio" class="image-grid template_ul">';
    $ix = 0;
    $iw = 0;
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
    query_posts(array('post_type' => 'portfolio', 'paged' => $paged, 'posts_per_page' => $items));
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $ix++;
            $iw++;
            $title = str_ireplace('"', '', trim(get_the_title()));
            $desc = str_ireplace('"', '', trim(get_the_content()));
            $terms = wp_get_object_terms(get_the_id(), 'project-type');
            $term_list = "";
            $tags = "";
            $i = 0;
            $count = count($terms);
            $i = 0;
            if ($count > 0) {
                foreach ($terms as $term) {
                    $term_list .= "{$term->name} ";
                    $tags .= "{$term->name}, ";
                }
            }
            $echo .= '<li data-type="' . $term_list . '" data-tags="' . $tags . '" data-id="' . get_the_id() . '" class="portfolio-grid ' . $term_list . '">
				<div class="portfolio-img">
					<a class="prettyPhoto prettyPhoto[works-' . $ix . ']" href="' . img_full_url(get_the_id()) . '">
						<img src="' . img_default_url(get_the_id()) . '" alt="" />
					</a>
				</div>				
			</li>';
        }
    }
    $echo .= '</ul>';
    $echo .= '<div class="clear"></div>';
    wp_reset_query();
    return $echo;
    wp_reset_query();
}
            }
        }
        ?>
			<div class="portfolio-lists-item <?php 
        echo $term_list;
        ?>
">
				<div class="portfolio-1-left">
					<div>	


<div class="portfolio-img"><a class="prettyPhoto prettyPhoto[works-<?php 
        echo $ix;
        ?>
]" href="<?php 
        print img_full_url($post->ID);
        ?>
"><img src="<?php 
        print img_default_url($post->ID);
        ?>
" alt="" /></a></div>
				




					</div>
				</div>
				<div class="portfolio-1-right">	 
					<h3><?php 
        echo $title;