var bannersList = new Array();

function showHideObjectClass( question, answer ) {
	
	question = document.getElementById( question );
	answer = document.getElementById( answer );
	
	if( answer.style.display == 'none' ){
		
		answer.style.display = 'block';
		question.className = 'text active ainv';
		
	} else {
		
		answer.style.display = 'none';
		question.className = 'text';
		
	}
	
}

function setcookie( name, value, days ) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    } else {
        var expires = "";
    }
    document.cookie = name+"="+value+expires+"; path=/";
}

function hideFlash() {
    var oIntroBlock = document.getElementById('introBlock');
    if ( oIntroBlock ) {
//    	oIntroBlock.style.display = 'none';
        oIntroBlock.parentNode.removeChild( oIntroBlock );
		setTimeout( updateBanners, 1 );
    	setcookie("noIntro", true);
	}
}

function updateBanners() {
    if ( bannersList.length > 0 ) {
     	for( i = 1; i < bannersList.length; i++ ) {
        	document.getElementById('banner' + i ).src = bannersList[ i ];
     	}
    }
}

function showObject( objectId, linkId ) {
	var oObject = document.getElementById( objectId );
	var oLink = document.getElementById( linkId );

	if ( oObject != null ) {
     	oObject.style.display = 'block';
	}

	if ( oLink != null ) {
    	oLink.className = 'item active';
	}
}

function hideObject( objectId, linkId ) {
	var oObject = document.getElementById( objectId );
    var oLink = document.getElementById( linkId );
    
	if ( oObject != null ) {
     	oObject.style.display = 'none';
	}

	if ( oLink != null ) {
    	oLink.className = 'item';
	}
}

window.onload = function() {

}