//jQuery.noConflict();
jQuery(document).ready(function(){
    jQuery.get('lib/onlineForms/priceCalculator.inc.php?select=true', function(data) {
      jQuery('#getselect select').html(data);
      var selectEl = jQuery('#region');
      $.jNice.SelectUpdate(selectEl);
      
    });
    jQuery('.live_chat a img').parent('a').hide();

        if (jQuery('.live_chat a img').attr('src')=="http://helpdesk.supportio.net/themes/client_default/staffoffline.gif") 
        {
            jQuery('#livechatbutton').html('<a href="#"><img src="http://supportio.net/chat_button_red.jpg" ></a>');
        } else {
            jQuery('#livechatbutton').html('<a href="#"><img src="http://supportio.net/chat_button.gif" ></a>');
        }


    jQuery('#livechatbutton').click(function(){
        var full_name = jQuery('.live_chat a img').parent('a').attr('href');
        full_name = full_name.replace("javascript:", " ");
        full_name = full_name.replace(";", " ");
        eval(full_name);
        return false;
        
    });
    
 /*   jQuery('img.carouselimage').each(function(){
        var height = jQuery(this).height();
        var height_ul = 115;
        var padding = (height_ul - height)/2;
        jQuery(this).css('padding-top',padding);
    });*/
    
    
    
    jQuery("#scroller").simplyScroll({
            autoMode: 'off'
    });
    
    
    
    jQuery('#nextbutton').mousedown(function(){
       
    });
    
    
    
    jQuery('.countComp').bind('focusin click',function(){
        if (jQuery(this).val()=="Кол-во компьютеров") jQuery(this).val("");
    });
    jQuery('.countServer').bind('focusin click',function(){
        if (jQuery(this).val()=="Кол-во серверов") jQuery(this).val("");
    });
    jQuery('.name').bind('focusin click',function(){
        if (jQuery(this).val()=="Ваше имя") jQuery(this).val("");
    });
    jQuery('.phone').bind('focusin click',function(){
        if (jQuery(this).val()=="Телефон") jQuery(this).val("");
    });
    jQuery('.city').bind('focusin click',function(){
        if (jQuery(this).val()=="Город") jQuery(this).val("");
    });
    jQuery('.mail').bind('focusin click',function(){
        if (jQuery(this).val()=="E-mail") jQuery(this).val("");
    });
    
    
    jQuery('.countComp').bind('focusout',function(){
        if (jQuery(this).val()=="") jQuery(this).val("Кол-во компьютеров");
    });
    jQuery('.countServer').bind('focusout',function(){
        if (jQuery(this).val()=="") jQuery(this).val("Кол-во серверов");
    });
    jQuery('.name').bind('focusout',function(){
        if (jQuery(this).val()=="") jQuery(this).val("Ваше имя");
    });
    jQuery('.phone').bind('focusout',function(){
        if (jQuery(this).val()=="") jQuery(this).val("Телефон");
    });
    jQuery('.city').bind('focusout',function(){
        if (jQuery(this).val()=="") jQuery(this).val("Город");
    });
    jQuery('.mail').bind('focusout',function(){
        if (jQuery(this).val()=="") jQuery(this).val("E-mail");
    });

});


function turnleft() {
    jQuery('.movecontainer').animate({
            left: '-=50'
    },1000);
    
}


