//<script>
$(function(){
	$(".head_inp_search input").focus(function(){if(this.value=="to search, type and hit enter") this.value="";});
	$(".head_inp_search input").blur(function(){if(this.value=="") this.value="to search, type and hit enter";});
	
	$(".inp_if1").focus(function(){if(this.value=="Name") this.value="";});
	$(".inp_if1").blur(function(){if(this.value=="") this.value="Name";});
	
	$(".inp_if2").focus(function(){if(this.value=="Email Address") this.value="";});
	$(".inp_if2").blur(function(){if(this.value=="") this.value="Email Address";});
});

$(window).load(function(){
	var h_rozm = $(".rozm.rozm_index").height();
	if(h_rozm > 375){$(".rozm.rozm_index").css('background-position','200px bottom')};
	
	$('.some_lmbi table').css('height',$('.conteiner_bls_lmbi').height());
	
	$('.some_bmb:last-child').css('margin-right','0');
	$('.some_lmbi:last-child').css('border-right','none');	
	$('.bl_round_bam.rozm_clear .rozm table tr td:last-child').css('vertical-align','bottom');	
	$('.some_pay_mod:last-child').css('background','none');	
	$('.table_lt_rivas table tr td:last-child').css('padding-right','0').css('border-right','none');
	$('.table_lt_rivas table tr:last-child td').css('padding-bottom','0').css('border-bottom','none');	
	$('.table_lt_rivas table tr td:first-child').css('padding-left','0');	
	$('.table_lt_rivas table tr:first-child td').css('padding-top','0');
	$('.rozm table tr td:first-child').css('vertical-align','bottom');	
	$('.rozm table tr td:last-child').css('vertical-align','top').css('text-align','left').css('width','100%');	
	$('.bl_round_bam.rozm_clear .rozm table tr td:first-child').css('width','100%');	
	$('.second_menu ul li:last-child i').css('border','none');
	$('#main_menu ul li:last-child').css('margin-right','0');	
	$('#main_menu ul li:last-child b').css('padding-top','0').css('padding-right','31px').css('padding-bottom','7px').css('padding-left','31px');	
	$('.bl_about:last-child').css('border-bottom','none');	
	$('.bl_pad_i:last-child').css('padding-right','0px');	
	$('.some_sponsor_rg table tr td:first-child').css('width','200px');

});

$(document).ready(function() {
	$("#clietns_front_page_block_pager a").live('click',function(){
	    var anchor = this;
	    $.ajax({
		url : '/ajax/ou-client-front?' + getGetParameters($(anchor).attr('href')),
		success:function(data){
		    $('.last_main_bl_ind.clietns_front_page_block_wrapper').html(data);
		}
	    });
	    return false;
	});
	
	$(".news_and_blog_pager_front a").live('click',function(){
	    var anchor = this;
	    $.ajax({
		url : '/ajax/news-and-blog-front?' + getGetParameters($(anchor).attr('href')),
		success:function(data){
		    $('.news_and_blog_front_page_block_wrapper').html(data);
		}
	    });
	    return false;
	});
	
	$(".clients_block_case_study_wrapper a").live('click',function(){
	    var anchor = this;
	    $.ajax({
		url : '/ajax/clients-case-study-block?' + getGetParameters($(anchor).attr('href')),
		success:function(data){
		    $('.clients_block_case_study_wrapper').html(data);
		}
	    });
	    return false;
	});
});

function getGetParameters(url) {
    var matches = url.match(/.+\?(.+)/);
    if(matches != null) {
	return matches[1];
    } else {
	return '';
    }
}

