var a=new Image();a.src="/images/loader_blue.gif";function pa(x){var m1=342+x,m2=50,m3=280,p=$('#icons_panel'),h1=p.height(),h2,w2,c="ip_right";function m(){var top=$(w).scrollTop(),H=$(d).height();if($.browser.msie&&parseInt($.browser.version,10)<=6){if(top+m2<m1||m1+h1+m3>H)p.css("top",m1+'px');else if(top+m2+h1+m3>H)p.css("top",H-h1-m3+'px');else p.css("top",m2+top+'px');var left=$(w).scrollLeft();if(p.hasClass(c))p.css("left",left+'px');else p.css("left","auto");}else{if(top+m2<m1||m1+h1+m3>H)p.css("top",m1-top+'px');else if(top+m2+h1+m3>H)p.css("top",H-h1-m3-top+'px');else p.css("top",m2+'px');}}function s(){w2=$(w).width();if(w2<1044)p.addClass(c);else p.removeClass(c);h2=$(w).height();m2=(h2-h1<0)?0:Math.round((h2-h1)*0.2);m();}s();w.onresize=s;w.onscroll=m;}function centr(){var l=d.getElementById('linkList');l.className='listLoad';var x=l.offsetWidth;if(x%2!=0) x--;l.className='norm';l.style.marginLeft=(980-x)/2+'px';var q=d.getElementById('quote');q.className='quoteLoad';x=q.offsetHeight;d.getElementById('header').style.height=166+x+'px';d.getElementById('container').style.paddingTop=261+x+'px';l=x-14;x=q.offsetWidth;if(x%2!=0) x--;q.style.marginLeft=(980-x)/2+'px';return l;}$(d).ready(function(){var x=centr();pa(x);$("#icons_panel li div").hover(function(){$(this).animate({width:'32px'},100);if($(this).parents("li").next().length==0)$(this).parents("ul").next().animate({width:'32px'},100);},function(){$(this).animate({width:'28px'},100);if($(this).parents("li").next().length==0)$(this).parents("ul").next().animate({width:'28px'},100);}).tipTip({maxWidth:"250px",defaultPosition:"right",widthMargin:true,delay:200});$('#menu>ul>li').hover(function(){var ul=$(this).find('ul'),span=$(this).find('span:first');ul.stop(true, true);span.addClass("ahover");var x=span.position().top+46+'px';ul.css({top:x});x=span.position().left+'px';ul.css({left:x});if(ul.width()<span.innerWidth())ul.width(span.innerWidth());if(ul.width()>200)ul.width(200);ul.slideDown('fast');},function(){$(this).not(':has(ul)').find('span').removeClass("ahover");$(this).find('ul').slideUp('normal',function(){$(this).parent().find('span:first').removeClass("ahover");});});$("#counters img").fadeTo(0,0.5);$("#counters img").hover(function(){$(this).stop(true,true);$(this).fadeTo('fast',1);},function(){$(this).fadeTo('normal',0.5);});$("a[rel=lightbox]").fancybox({'overlayColor':'#000','overlayOpacity':0.8,'transitionIn':'elastic','speedIn':400,'titlePosition':'outside','padding':0,'centerOnScroll':true,'titleFormat':function(title,currentArray,currentIndex,currentOpts){return(title.length||currentIndex)?'<div id="fancybox-title-over" style="display:none;">'+(title.length?title:'')+(currentArray.length>1?'<div id="fancybox-title-imgindex">'+(currentIndex+1)+' θη '+currentArray.length+'</div><div style="clear:both;"></div>':'')+'</div>':'';},'onComplete':function(){$('#fancybox-title-over').slideDown('fast');}});$("a[rel=lightbox]:has(img[src*='/qr-'])").fancybox({'overlayColor':'#999','overlayOpacity':0.8,'transitionIn':'elastic','speedIn':400,'titlePosition':'outside','padding':0,'centerOnScroll':true,'titleFormat':function(title,currentArray,currentIndex,currentOpts){return(title.length||currentIndex)?'<div id="fancybox-title-over" style="display:none;">'+(title.length?title:'')+(currentArray.length>1?'<div id="fancybox-title-imgindex">'+(currentIndex+1)+' θη '+currentArray.length+'</div><div style="clear:both;"></div>':'')+'</div>':'';},'showCloseButton':false,'onComplete':function(){$('#fancybox-title-over').slideDown('fast');}});$("iframe[name='tickets']").each(function(){frames["tickets"].location.replace($(this).attr("src"));});});
