<div class="colorInside"></div>
				<a title="' . get_the_title() . '" class="lightbox_image" href="' . $image_url . '"></a>
				<div class="boxInside">
				<div class="boxMargin">
				<div class="brickTitle">' . get_the_title() . '</div>
				' . $shorten . '
				</div>
				<a class="brickMore" href="' . get_permalink() . '"></a>
				</div>';
                        $content .= '<img alt="' . get_the_title() . '" src="' . get_bloginfo("template_url") . '/lib/img.php?f=' . $image_url . '&amp;w=' . $w . '&amp;h=' . $h . '&amp;a=c" />';
                        break;
                    case 'brick5':
                        $w = 144;
                        $h = 294;
                        $shorten = esc_html(get_the_content());
                        $shorten = galleryShorten($shorten, 300, '...');
                        $content = '
				<div class="colorInside"></div>
				<a title="' . get_the_title() . '" class="lightbox_image" href="' . $image_url . '"></a>
				<div class="boxInside">
				<div class="boxMargin">
				<div class="brickTitle">' . get_the_title() . '</div>
				' . $shorten . '
				</div>
				<a class="brickMore" href="' . get_permalink() . '"></a>
				</div>';
                        $content .= '<img alt="' . get_the_title() . '" src="' . get_bloginfo("template_url") . '/lib/img.php?f=' . $image_url . '&amp;w=' . $w . '&amp;h=' . $h . '&amp;a=c" />';
                        break;
                    case 'brick6':
                        $w = 594;
                        $h = 294;
                                $PageBgGalEffect = '4';
                                break;
                            case "Slide left":
                                $PageBgGalEffect = '5';
                                break;
                            case "Carousel right":
                                $PageBgGalEffect = '6';
                                break;
                            case "Carousel left":
                                $PageBgGalEffect = '7';
                                break;
                        }
                    } else {
                        $PageBgGalEffect = '1';
                    }
                    $shorten = galleryShorten(get_the_content(), 300, '...');
                    $imageTitle = '<a href=\\"' . get_permalink() . '\\">' . get_the_title() . '</a>';
                    $imageTitle .= '<br />' . $shorten;
                    $image_id = get_post_thumbnail_id();
                    $image_url = wp_get_attachment_image_src($image_id, 'large');
                    $image_url = $image_url[0];
                    $imgEnd .= '{ image: "' . $image_url . '", title: "' . $imageTitle . '" }, ';
                }
            }
        }
        wp_reset_query();
        $imgEnd = substr($imgEnd, 0, -2);
        ?>
<div id="supersized"></div>
<div id="controls-close"><div class="galleryTooltip">Gallery</div><div id="controls-icon"></div><div id="close-bar"></div></div>
<div id="galleryNav">