/* Nifty Corners Cube - rounded corners with CSS and Javascript
Copyright 2006 Alessandro Fulciniti (a.fulciniti@html.it)

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
jQuery.noConflict();
jQuery(document).ready(function() {


jQuery("div#content div.csc-default:odd").addClass("hell");
jQuery("div#content > div.csc-default:even").removeClass("hell");
jQuery("div#content > div.csc-default:odd").addClass("hell");
jQuery("div#content div.subpr >  div.csc-default:even").removeClass("hell");
jQuery("div#content div.subpr > div.csc-default:odd").addClass("hell");
jQuery("div#content div.subpr > p").wrapInner("<ul class=subnavigation />");
jQuery("div#content div.subpr ul.subnavigation ").wrapInner("<li />");
//jQuery("div#content div.subpr ul.subnavigation li >  a:even").removeClass("hell");
jQuery("div#content div.subpr ul.subnavigation li >  a:odd").addClass("hellrot");
//jQuery("div div.csc-default:even").css("background-color", "#bbbbff");
//jQuery(" .ausstellungen + div.sub ul li").detach();
//jQuery(".ausstellungen + div.sub ul li h2 ").unwrap();
//jQuery(".ausstellungen + div.sub ul > ul li, .ausstellungen + div.sub ul ").replaceWith("<li />");
jQuery(".ausstellungen + div.sub ul + ul li h2, .ausstellungen + div.sub ul + ul li, .ausstellungen + div.sub ul li h2 a, .ausstellungen + div.sub ul li").unwrap();
//jQuery(".ausstellungen + div.sub ul ").remove();
jQuery(".ausstellungen + div.sub").wrapInner("<ul />");
jQuery(".ausstellungen + div.sub ul + ul li h2").addClass("ausstellung");
jQuery(".ausstellungen + div.sub ul").wrapInner("<li />");
jQuery(".csc-textpic-imagecolumn .csc-textpic-image img").attr('border','none');

jQuery("li a.11, li a.12, li a.30").wrap('<h2></h2>');


  
  	// Innerhalb der Liste href auslesen und durch # ersetzen, title-Attribut mit dem Wert des href schreiben
  	jQuery("li a.skulpturen,li a.11, li a.12, li a.30, li a.ausstellungen").each(function(){
  	
  		var url = jQuery(this).attr("href");
  		//jQuery(this).attr("title",url).attr("href","#");
		jQuery(this).attr("title",url).attr("href","javascript:void()");
  	
  	});
  	
  	// per Click entsprechende URL in das DIV laden, aber nur das DIV #seiteninhalt
  	jQuery("li a.skulpturen").click(function(){
  		var quelle = jQuery(this).attr("title") + " #seiteninhalt";
  		jQuery("#container").load(quelle);
  
  });
jQuery(".deutschlandkarte").addClass("karte");

});
