// LiveInternet counter
document.write('<img src="http://counter.yadro.ru/hit?r'+
escape(document.referrer)+((typeof(screen)=='undefined')?'':
';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+
';'+Math.random()+
'" width=1 height=1 alt="">')


// Rating@Mail.ru counter
d=document;var a='';a+=';r='+escape(d.referrer);js=10;
a+=';j='+navigator.javaEnabled();js=11;
s=screen;a+=';s='+s.width+'*'+s.height;
a+=';d='+(s.colorDepth?s.colorDepth:s.pixelDepth);js=12;
js=13;
d.write('<img src="http://d9.c6.b0.a1.top.mail.ru/counter?id=1075540;js='+js+
a+';rand='+Math.random()+'" height="1" width="1" alt="top.mail.ru" />');
// if(11<js)d.write('<'+'!-- ');
// if(11<js)d.write('--'+'&#062');


// Overlay
$(function() { 
	$("a[rel]").overlay({ 
		expose: 'darkred', 
		effect: 'apple', 
        onBeforeLoad: function() { 
			var wrap = this.getContent().find("div.wrap"); 
			wrap.load(this.getTrigger().attr("href")); 
		} 
 
		}); 
});

// Overlay Gallery
$(function() {
$("#triggers a").overlay({
	target: '#gallery',
	expose: '#000'
}).gallery({
	speed: 800
});
});

