addListener(document,"click", 
function (event) 
{ 
//    try {soundManager.play('beep','audio/1.mp3')}catch(obj){} ; 
    var x = window.scrollX?window.scrollX:(document.body.scrollLeft?document.body.scrollLeft:document.documentElement.scrollLeft); 
    var y = window.scrollY?window.scrollY:(document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop); 
//    makeShootSpecial(x+event.clientX-10,y+event.clientY-10); 
//    setTimeout(100,4shoot(x+event.clientX-10,y+event.clientY-10))); 
});


var x1,x2,x3,x4;

$(document).ready(
    function ()
    {
        $('ul.menu1 li a').not('.active').toggle(function(){$(this).next().show(300);sameh('col1pod3','col2');},function(){$(this).next().hide(100);sameh('col1pod3','col2');});
	$('ul.menu1 li a.active').each(function(){$(this).next().show();});
	$('ul.menu1 li').not('[ul]').children('a').click(function (){window.location = $(this).attr('href');})
        $(".rounded").each(function(){ $(this).html("<div class='rounded-box'><div><img align=left  src='/xtpl/i/corn/lt.gif'><img align=right src='/xtpl/i/corn/rt.gif'></div>" +	$(this).html() + "<div><img align=left  src='/xtpl/i/corn/lb.gif'><img align=right src='/xtpl/i/corn/rb.gif'></div></div>");});

//'<div class=rt><div class=lt><div class=c></div><div class=d>'+
// $(this).html() +
//'</div><div class=rb><div class=lb><div class=e></div></div></div></div></div>');});
	
	var tr=false;//#f8f2e0
	$("div.arttext table tr").not(":odd").css('background','#f8f2e0');	
	$("table.razdel1 tr").not(":odd").css('background','#f8f2e0');	
//	$("table.razdel1 tr").not(":odd").css('background','black');	
	$('div.imgrnd').each(function (){
	    a = ($(this).children())[0];
//	    $(this).html(
//	    "<table class=tblrnd cellpadding=0 cellspacing=0 style='z-index:9999;position:absolute;height:"+(a.clientHeight+2)+"px;width:"+(a.clientWidth+2)+"px;'>" +
//		"<tr><td class=td1>&nbsp;</td><td class=td2>&nbsp;</td></tr>"+
//		"<tr><td class=td3>&nbsp;</td><td class=td4>&nbsp;</td></tr>" +
//	    "</table>" + 
//	    $(this).html());

	    $(this).html(
	    "<img src='/xtpl/i/corn2/lt.gif' style='position:absolute;'>" +
	    "<img src='/xtpl/i/corn2/rt.gif' style='position:absolute;margin-left:"+(a.clientWidth-2)+"px;'>" +
	    "<img src='/xtpl/i/corn2/rb.gif' style='position:absolute;margin-left:"+(a.clientWidth-2)+"px;margin-top:"+(a.clientHeight-2)+"px;'>" +
	    "<img src='/xtpl/i/corn2/lb.gif' style='position:absolute;margin-top:"+(a.clientHeight-2)+"px;'>" +
	    $(this).html());
	});



	$('#debug').append("<img src='/xtpl/i/x/xup.gif' id=x1 style='position:absolute;margin-left:-23px;margin-top:-23px;display:block;'>");
	$('#debug').append("<img src='/xtpl/i/x/xlb.gif' id=x2 style='position:absolute;margin-left:-23px;margin-top:-3px;display:block;'>");
	$('#debug').append("<img src='/xtpl/i/x/xrb.gif' id=x3 style='position:absolute;margin-left:-4px;margin-top:4px;display:block;'>");
	$('#debug').append("<img src='/xtpl/i/x/xl.gif' id=x4 style='position:absolute;margin-left:3px;margin-top:-3px;display:block;'>");

	xx1 = document.getElementById('x1');
	xx2 = document.getElementById('x2');
	xx3 = document.getElementById('x3');
	xx4 = document.getElementById('x4');

	$(document).mousemove(function (e) {
	  return;
	    var gx = (window.scrollX?window.scrollX:(document.body.scrollLeft?document.body.scrollLeft:document.documentElement.scrollLeft)) + e.clientX; 
	    var gy = (window.scrollY?window.scrollY:(document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop)) + e.clientY; 
	    _x = gx+'px';
	    _y = gy+'px';
	    xx1.style.left = _x;
	    xx1.style.top  = _y;
	    xx2.style.left = _x;
	    xx2.style.top  = _y;
	    xx3.style.left = _x;
	    xx3.style.top  = _y;
	    xx4.style.left = _x;
	    xx4.style.top  = _y;
	    
	});

	$('input').mouseover(function(){igif=false;});
	$('input').mouseout(function(){igif="1x.gif";});
	$('#flash_huk').mouseover(function(){igif="2x.gif";});
	$('#flash_huk').mouseout(function(){igif="1x.gif";});




//	$('menu').mouseout(function (e) {$('#x').css('display','');});



    }
);


makeShoots();