/*	Expanding Menus for Indexhibit
 *		uses jquery
 *
 *	Created by Ross Cairns  Mar 2008
*/




function expandingMenu(num) {
	var speed = 200;
	
	var item_title = $("#menu ul").eq(num).children(":first");
	var items = $("#menu ul").eq(num).children().filter(function (index) { return index > 0; });
	
	/* hide items if not active */
	if (items.is(".active") == false) {
		items.hide();
	}
	
	//$('.section-title').siblings().css({paddingLeft:"10px"});

	/* add click functions + pointer to title */
	item_title.css({cursor:"pointer", marginTop:"-12px"}).toggle(
		function () {
			items.slideDown(speed);
		}, function () {
			items.slideUp(speed);
		}
	)
}







/* falls Sektion Aktuell vorhanden nicht auskommentieren! fügt den link vor dem aktuellen projekt ein*/

function titel() {
	$('.section-title').eq(1).before("<br><span class='suckit' style='font-weight: bold; cursor:default; line-height:7px;'>Projekte</span></br><br><span>&nbsp;</span></br>");
	//$('.section-title').eq(1).css({'font-weight':'bold'});
	//$('.section-title').eq(1).siblings().children().css({'text-decoration':'none', 'color':'#000'});
	//$('.section-title').eq(1).siblings(":last-child").children("a").attr("href", "http://www.liquidfrontiers.com/artstripes/no-9-christian-schwarzwald/").text("Art Stripe No. 9, Christian Schwarzwald");
	//$('.section-title').eq(1).siblings(":first").children("a").attr("href", "http://www.liquidfrontiers.com/wienmitte/gottfried-helnwein/").remove();
};