 <div class="sidebar">


<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Sidebar") ) : ?>  	


             <div class="side">


             


               	<h2>Sponsors</h2>


                <?php $args = array('post_type' => 'gallery2','showposts' => '8');


		$the_query = null;


		$the_query = new WP_Query($args); ?>


		 <?php if($the_query->have_posts()):?>


          <?php while($the_query->have_posts()) : $the_query->the_post();?>


                  <span class="frame3"><?php the_post_thumbnail('gallery2_image'); ?></span>


                  <?php endwhile; ?>


                   <?php else:?>


                  <span class="frame3"><img src="<?php bloginfo('template_url');?>/images/ad2.png"  alt="" /></span>


                  <span class="frame3"><img src="<?php bloginfo('template_url');?>/images/ad3.png"  alt="" /></span>


                  <span class="frame3"><img src="<?php bloginfo('template_url');?>/images/ad1.png"  alt="" /></span>


                  <?php endif; ?> 


                </div><!--close side-->


                


                <div class="side">


               	<h2>Testimonials</h2>


                  <div class="cycle-testimonial">


<ul>


 <?php $args = array('post_type' => 'testimonial2','showposts' => '3');


		$the_query = null;


		$the_query = new WP_Query($args); ?>


		 <?php if($the_query->have_posts()):?>


          <?php while($the_query->have_posts()) : $the_query->the_post();?>


          


<li class="quote">





<blockquote>


<span class="icon4"><img src="<?php bloginfo('template_url');?>/images/quete.png"  alt="" /></span>


<div><?php the_content_limit(300, ""); ?></div></blockquote>


<span class="icon5"><img src="<?php bloginfo('template_url');?>/images/quete1.png" alt="" /></span>


<div class="testi-name" style="margin:25px -25px 0 0; float:right; font-style:italic;"><?php the_title(); ?></div>


                                                                             </li><!-- end of testimonial 1 --><?php endwhile; ?>


                   <?php else:?>    


                                                                             


																			 


<li class="quote">








<blockquote>


<span class="icon4"><img src="<?php bloginfo('template_url');?>/images/quete.png"  alt="" /></span>


<div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod  tincidunt ut euismod Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod  tincidunt ut laoreet dolore magna aliquam.</div></blockquote>


<span class="icon5"><img src="<?php bloginfo('template_url');?>/images/quete1.png" alt="" /></span>


<div class="testi-name" style="margin:25px -25px 0 0; float:right; font-style:italic;">- John Mason</div>


                                                                             </li><!-- end of testimonial 1 -->





<li class="quote">





<blockquote>


<span class="icon4"><img src="<?php bloginfo('template_url');?>/images/quete.png"  alt="" /></span>


<div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod  tincidunt ut euismod Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod  tincidunt ut laoreet dolore magna aliquam.</div></blockquote>


<span class="icon5"><img src="<?php bloginfo('template_url');?>/images/quete1.png" alt="" /></span>


<div class="testi-name" style="margin:25px -25px 0 0; float:right; font-style:italic;">- John Mason</div>


                                                                             </li><!-- end of testimonial 1 --> <?php endif; ?>  </div> </blockquote>


                                                                        


 </ul>                                                                        </div><!-- begin of nav testimonials --> 


 


<div id="prev"><a href="#"></a></div>


<div id="next"><a href="#"></a></div><!-- end of nav testimonials -->  


  


                </div><!--close side-->


 	 <?php endif; ?>


                


            </div><!--close sidebar-->


            