
/*
window.addEvents({
'domready': function(){
var sessionCookie = Cookie.read('session');
var counterCookie = Cookie.read('counter');
var participatedCookie = Cookie.read('participated');
if (participatedCookie != '1') {
if (sessionCookie != '1') {
Cookie.write('session', '1');
}
if (counterCookie == null) {
Mediabox.open('#mb_vote', '', '450 420');
Cookie.write('counter', '1', {duration: 300});
} else {
if (sessionCookie != '1') {
Cookie.write('counter', (counterCookie.toInt()+1), {duration: 300});
if (Cookie.read('counter').toInt() >= 9) {
Cookie.dispose('counter');
}
}
}
}
},
'mb_open': function(){
$('mbImage').getElement('.mb_close').addEvent('click', function(ev){
ev.stop();
Mediabox.close();
});
$('mbImage').getElement('.mb_participate').addEvent('click', function(ev){
Cookie.write('participated', '1', {duration: 300});
Mediabox.close();
});
},
'mb_close': function(){
}
});
*/

