/*
 * module_collapsible_panels.js
 * 
 * Enkel tänd/släck-funktion.
 */

$(document).ready(function(){
	$('.coll_showSubs').click(function(){
		// Change minus/plus
		if($(this).hasClass('open')){
			$(this).removeClass('open');
		} else {
			$(this).addClass('open');
		}

		// Show/hide siblings on click
		if($(this).siblings('div').eq(0).hasClass('show')){
			$(this).siblings('div').eq(0).removeClass('show');
		} else {
			$(this).siblings('div').eq(0).addClass('show');
			if (telenor.ie6) {
				$(this).siblings('div').find('.sys_ieRcbWrap').css('width','100%');
				$(this).siblings('div').find('.sys_ieRcbWrap').css('margin-top','15px');
				ie6PngImgFix();
			}
		}


		// Remove dotted lines on links
		$(this).css('outline', 'none');

		// Don't send the visitor to any page
		return false;
	});
});