//Compressed CSS Styles
document.write('<style type="text/css">.dhtmlgoodies_question{color:#FFF;font-size:0.9em;background-color:#272631;width:100%;margin-bottom:0px;margin-top:0px;padding-left:2px;background-image:url("/images/bg_answer.gif");background-repeat:no-repeat;background-position:top right;height:20px;overflow:hidden;cursor:pointer;}.dhtmlgoodies_answer{background-image: url(/images/bg_sub.gif);width:948px;margin-top:-20px;visibility:hidden;height:96px;overflow:hidden;position:relative;}.dhtmlgoodies_answer_content{padding:1px;font-size:0.9em;position:relative;}</style>');

/************************************************************************************************************
Show hide content with slide effect
Copyright (C) August 2010  DTHMLGoodies.com, Alf Magne Kalleland

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library 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
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

Dhtmlgoodies.com., hereby disclaims all copyright interest in this script
written by Alf Magne Kalleland.

Alf Magne Kalleland, 2010
Owner of DHTMLgoodies.com

************************************************************************************************************/

var dhtmlgoodies_slideSpeed = 10;	// Higher value = faster
var dhtmlgoodies_timer = 10;	// Lower value = faster

var currentstageopen = true;
var objectIdToSlideDown = false;
var dhtmlgoodies_activeId = false;
var dhtmlgoodies_slideInProgress = false;
var dhtmlgoodies_slideInProgress = false;
var dhtmlgoodies_expandMultiple = false; // true if you want to be able to have multiple items expanded at the same time.



if ( ! get_cookie ( "ioshellasbar" ) )
{
	currentstageopen = true;
}else{
	var cc1 = get_cookie ( "ioshellasbar" );
	if(cc1 == "1"){
		currentstageopen = true;
	}else{
		currentstageopen = false;
	}
}

function showHideContent(e,inputId)
{
	if(dhtmlgoodies_slideInProgress)return;
	dhtmlgoodies_slideInProgress = true;
	if(!inputId)inputId = this.id;
	inputId = inputId + '';
	var numericId = inputId.replace(/[^0-9]/g,'');
	var answerDiv = document.getElementById('dhtmlgoodies_a' + numericId);

	objectIdToSlideDown = false;

	if(!answerDiv.style.display || answerDiv.style.display=='none'){
		if(dhtmlgoodies_activeId &&  dhtmlgoodies_activeId!=numericId && !dhtmlgoodies_expandMultiple){
			objectIdToSlideDown = numericId;
			slideContent(dhtmlgoodies_activeId,(dhtmlgoodies_slideSpeed*-1));
			
			var current_date = new Date;
			var cookie_year = current_date.getFullYear ( ) + 1;
			var cookie_month = current_date.getMonth ( );
			var cookie_day = current_date.getDate ( );
			set_cookie ( "ioshellasbar", "0", cookie_year, cookie_month, cookie_day ,"/");
		}else{

			answerDiv.style.display='block';
			answerDiv.style.visibility = 'visible';

			slideContent(numericId,dhtmlgoodies_slideSpeed);
			
			var current_date = new Date;
			var cookie_year = current_date.getFullYear ( ) + 1;
			var cookie_month = current_date.getMonth ( );
			var cookie_day = current_date.getDate ( );
			set_cookie ( "ioshellasbar", "1", cookie_year, cookie_month, cookie_day ,"/");
		}
	}else{
		slideContent(numericId,(dhtmlgoodies_slideSpeed*-1));
		dhtmlgoodies_activeId = false;
		
		var current_date = new Date;
		var cookie_year = current_date.getFullYear ( ) + 1;
		var cookie_month = current_date.getMonth ( );
		var cookie_day = current_date.getDate ( );
		set_cookie ( "ioshellasbar", "0", cookie_year, cookie_month, cookie_day ,"/");
	}
}

function slideContent(inputId,direction)
{
	//var username = prompt ( "Please enter your name" + direction, "" );
	var height1 = 96;
	var obj =document.getElementById('dhtmlgoodies_a' + inputId);
	var contentObj = document.getElementById('dhtmlgoodies_ac' + inputId);
	height = obj.clientHeight;
	if(height==0)height = obj.offsetHeight;
	height = height + direction;
	rerunFunction = true;
	if(height>height1){
		height = height1;
		rerunFunction = false;
	}
	if(height<=20){
		height = 20;
		rerunFunction = false;
	}

	obj.style.height = height + 'px';
	var topPos = height - height1;
	if(topPos>0)topPos=0;
	contentObj.style.top = topPos + 'px';
	if(rerunFunction){
		setTimeout('slideContent(' + inputId + ',' + direction + ')',dhtmlgoodies_timer);
	}else{
		if(height<=20){
			obj.style.display='none';
			if(objectIdToSlideDown && objectIdToSlideDown!=inputId){
				document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.display='block';
				document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.visibility='visible';
				slideContent(objectIdToSlideDown,dhtmlgoodies_slideSpeed);
			}else{
				dhtmlgoodies_slideInProgress = false;
			}
		}else{
			dhtmlgoodies_activeId = inputId;
			dhtmlgoodies_slideInProgress = false;
		}
	}
}



function initShowHideDivs()
{
	var divs = document.getElementsByTagName('DIV');
	var divCounter = 1;
	for(var no=0;no<divs.length;no++){
		if(divs[no].className=='dhtmlgoodies_question' || divs[no].className=='dhtmlgoodies_question1'){
			divs[no].onclick = showHideContent;
			divs[no].id = 'dhtmlgoodies_q'+divCounter;
			var answer = divs[no].nextSibling;
			while(answer && answer.tagName!='DIV'){
				answer = answer.nextSibling;
			}
			answer.id = 'dhtmlgoodies_a'+divCounter;
			contentDiv = answer.getElementsByTagName('DIV')[0];
			if(currentstageopen == false){
				contentDiv.style.top = 0 - contentDiv.offsetHeight + 'px';
			}else{
				contentDiv.style.top = 0  + 'px';
			}
			contentDiv.className='dhtmlgoodies_answer_content';
			contentDiv.id = 'dhtmlgoodies_ac' + divCounter;
			answer.style.display='none';
			answer.style.height='20px';
			
		}
		if(divs[no].className=='dhtmlgoodies_answer'){
			if(currentstageopen == true){
				
				divs[no].style.display='block';
				divs[no].style.visibility = 'visible';
				divs[no].style.height = 96 + 'px';
				
			}
		}
	}
}


var __app_started = false;
if(document.addEventListener) document.addEventListener("DOMContentLoaded", main, false);
else 
{
    document.write("<scr" + "ipt id=__ie_onload defer src=javascript:void(0)><\/scri" + "pt>");
    var script = document.getElementById("__ie" + "_onlo" + "ad");
    script.onreadystatechange = function() 
    {
        if(this.readyState == "complete") main();       
    }
}

window.onload = main; // If all else fails

function main()
{
	if(__app_started) return;  // We don't want to call main more than once.
	
	//App logic goes here
	
	__app_started = true;
	initShowHideDivs();	
}






function set_cookie ( name, value, expires_year, expires_month, expires_day, path, domain, secure )
{
	var cookie_string = name + "=" + escape ( value );
	if ( expires_year )
	{
	var expires = new Date ( expires_year, expires_month, expires_day );
	cookie_string += "; expires=" + expires.toGMTString();
	}
	if ( path )
	cookie_string += "; path=" + escape ( path );
	if ( domain )
	cookie_string += "; domain=" + escape ( domain );
	if ( secure )
	cookie_string += "; secure";
	document.cookie = cookie_string;
}

function delete_cookie ( cookie_name )
{
	var cookie_date = new Date ( );  // current date & time
	cookie_date.setTime ( cookie_date.getTime() - 1 );
	document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
}

function get_cookie ( cookie_name )
{
	var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );
	
	if ( results )
	return ( unescape ( results[2] ) );
	else
	return null;
}
