(function($) {
$(document).ready( function() {
/*$("#padsvetka").everyTime(3000, function() {
$(this).animate({color: 'white'}, {queue:false, duration:250 });
});
$("#padsvetka").everyTime(4000, function() {
$(this).animate({color: 'blue'}, {queue:false, duration:250 });
});
$("#padsvetka").everyTime(5000, function() {
$(this).animate({color: 'green'}, {queue:false, duration:250 });*/
$("#padsvetka a[rel='lightbox2']").lightbox();
$.Lightbox.construct({
         "text": {
             // For translating
             "image":        "Фото",
             "of":           "из",
            "close":        "Закрыть X",
             "closeInfo":    "You can also click anywhere outside the image to close.",
             "download":     "Download.",
             "help": {
"close":    "Щелкните, чтобы закрыть",
                 "interact": "Наведите для просмотра"

             },
             "about": {

                 "text":     "(812)970-74-24,642-74-24",
                 "title":    "г. Санкт-Петербург, ул. Калинина,  13 ",
                 "link":     "http://www.1remspb.ru/kontakt.php"
             }
         }
     });


/*$("#padsvetka a").everyTime(5000, function() {
$(this).animate({color: 'red'}, { duration:500 ,easing:'swing' }).delay(1000).
animate({color: "blue"}, { duration:500,easing:'swing' }).delay(1000).
animate({color: "green"}, { duration:500,easing:'swing' }).delay(1000).fadeOut;
});*/


 /*$(".droj").css('position','relative').css('visibility','hidden').css('visibility','visible').delay('5000').css('visibility','hidden').delay('5000').css('visibility','visible');
   $(".droj").everyTime(1500,function(){
      $(this).css('visibility','visible').animate({"top": "+=5px"}, 100)
        .animate({"top": "-=8px"}, 100)
        .animate({"top": "+=6px"}, 100)
        .animate({"top": "-=4px"}, 100)
        .animate({"top": "+=1px"}, 100).delay(5000).css('visibility','hidden');
    });*/
$('.droj').everyTime(300,function(){
$(this).toggleClass('droj2');
});

	

});


/*function fixPNG(element)
{
//alert("Внутри функции fixPNG");
 if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent))
 {
 var src;

 if (element.tagName=='IMG')
 {
 if (/\.png$/.test(element.src))
 {
 src = element.src;
 element.src = "/images/blank.gif";
 }
 }
 else
 {
 src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i)
 if (src)
 {
 src = src[1];
 element.runtimeStyle.backgroundImage="none";
 }
 }
 //alert("Осел внутри");
 if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
}
} */
})(jQuery);
