jQuery().ready(function(){
	if ($('#needs').html() != null){
	jQuery('#needs').accordion({ 
				active: ''
				});
	var accordions = jQuery('#needs');
	
	 $(".toggle_container").hide();

	$("h2").toggle(function(){
	$(this).addClass("active"); 
	}, function () {
	$(this).removeClass("active");
	});
	
	$("h2").click(function(){
	$(this).next(".toggle_container").slideToggle("slow");
	});
}
});
function openslider(divId)
{
	$('#register_slider_link').attr('href', "#");
	$('#'+divId).slideDown("slow");
	$('#'+divId).show();
}
function closeslider(divId)
{
	$('#'+divId).slideUp();
	$('#register_slider_link').attr('href', "javascript: openslider('reg_slider')");
}

function switchSlider(hideDiv, showDiv) {
	$('#'+hideDiv).hide();
	$('#'+showDiv).show();
}

function init_line_Scroll() {
	
    if(document.getElementById('wn'))
	{
		var wndo = new line_scrollObj('wn', 'lyr1', 't1');
		wndo.setUpScrollControls('scrollLinks');
	}

	if(document.getElementById('vertScroller12'))
	{
		var wndoVert = new line_scrollObj('vertScroller12', 'vertList112');
		wndoVert.setUpScrollControls('scrollContentLinks12');
	}
	
}

// Teen products proteggslip index 
function init_line_Scroll5() {
	if(document.getElementById('wn1'))
	{
		var wndo = new line_scrollObj('wn1', 'lyr11', 't11');
		wndo.setUpScrollControls('scrollLinks1');
	}
}

function init_line_Scroll6() {
if(document.getElementById('wn2'))
	{
		var wndo = new line_scrollObj('wn2', 'lyr12', 't12');
		wndo.setUpScrollControls('scrollLinks2');
	}
}

function init_line_Scroll3() {
	if(document.getElementById('wn3'))
	{
		var wndo = new line_scrollObj('wn3', 'lyr13', 't13');
		wndo.setUpScrollControls('scrollLinks3');
	}
}

// Over25 products proteggslip index 
function init_line_Scroll7() {
	if(document.getElementById('wn8'))
	{
    var wndo = new line_scrollObj('wn8', 'lyr11', 't11');
    wndo.setUpScrollControls('scrollLinks1');
	}
}

function init_line_Scroll8() {
	if(document.getElementById('wn9'))
	{
		var wndo = new line_scrollObj('wn9', 'lyr12', 't12');
		wndo.setUpScrollControls('scrollLinks2');
	}
}

// if code supported, link in the style sheet and call the init function onload
if ( line_scrollObj.isSupported() ) {

    //line_writeStyleSheet('cssscroll/scroll.css'); 
    linesEvent.add( window, 'load', init_line_Scroll);
	linesEvent.add( window, 'load', init_line_Scroll3);
	linesEvent.add( window, 'load', init_line_Scroll5);
	linesEvent.add( window, 'load', init_line_Scroll6);
    linesEvent.add( window, 'load', init_line_Scroll7);
	linesEvent.add( window, 'load', init_line_Scroll8);
}
