 $(document).ready(function(){
   //$("#banner").wrap("<div id=\"banner-top\"></div>" + "<div id=\"banner-bottom\"></div>");
   //$("#teasers").wrap("<div id=\"teaser-top\"></div>" + "<div id=\"teaser-bottom\"></div>");
   //$("#main").wrap("<div id=\"main-top\"></div>" + "<div id=\"main-bottom\"></div>");
   //$("#sub").wrap("<div id=\"sub-top\"></div>" + "<div id=\"sub-bottom\"></div>");
   $("ul li:first-child").addClass("first");
   $("ul li:last-child, tr:last-child").addClass("last");
   $("a[href^=http], a[href*=.pdf], a[href*=.doc]").attr("target", "_blank");
   $(".stripe tr:even").addClass("alt");
   $(".stripe tr").mouseover(function() {
		$(this).addClass("over"); }).mouseout(function() {
			$(this).removeClass("over"); });
			
	$(".rounded-img, .rounded-img2").load(function() {
    	$(this).wrap(function(){
      	return '<span class="' + $(this).attr('class') + '" style="background:url(' + $(this).attr('src') + ') no-repeat center center; width: ' + $(this).width() + 'px; height: ' + $(this).height() + 'px;" />';
    });
    $(this).css("opacity","0");
  });

 });
 
// Opens a "pop up Window" to a specific size.
jQuery('a.popup').live('click', function(){
	newwindow=window.open($(this).attr('href'),'','height=600,width=600');
	if (window.focus) {newwindow.focus()}
	return false;
});

