window.addEvent('domready', function() {


var accordion = new Accordion('h3.atStart', 'div.atStart', {
	opacity: false,
	onActive: function(toggler, element){
		toggler.setStyle('color', '#008ac4');
		toggler.setStyle('background', '#f2f9fc');
	},

	onBackground: function(toggler, element){
		toggler.setStyle('color', '#008ac4');
		toggler.setStyle('background', '#fff');
	}
}, $('accordion'));

get = new String(window.location);
x = get.indexOf('?');
l = get.length;
get = get.substr(x+1, l-x);
if(get=='open=web' || get=='open=web#'){
accordion.display(1);
}
else if(get=='open=flash' || get=='open=flash#'){
accordion.display(2);
}
else if(get=='open=graf' || get=='open=graf#'){
accordion.display(3);
}
else if(get=='open=podhody' || get=='open=podhody#'){
accordion.display(1);
}
else if(get=='open=contacts' || get=='open=contacts#'){
accordion.display(2);
}
else if(get=='open=imena' || get=='open=imena#'){
accordion.display(1);
}
else if(get=='open=soprovogdenie' || get=='open=soprovogdenie#'){
accordion.display(1);
}



$('contact').addEvent('click', function()

 {

  $('test').setStyle('opacity', 1);
  $('test').setStyle('display','block');

  $('overlay').setStyle('opacity', 0.8);
  $('overlay').setStyle('display','block');


});


});




