$(document).ready(function(){
if(location.search.indexOf('printv') != -1){
			printV = document.createElement("link");
            printV.rel = 'stylesheet'
			printV.href = '/_css/print.css'
			_b = document.body
			_b.appendChild(printV);
			img = document.createElement("img")
			img.src = '/_i/bgr/logo.png'
			img.className = 'logo'
			_to = document.getElementById('page_content')
			_to.insertBefore(img, _to.firstChild)
}


	$("#main_menu td:last-child").addClass("last-child");


    $(".tarif_list li:odd").addClass("li_odd");
    $(".table tr:odd").addClass("tr_odd");
	
    $(".login_submit").mouseover(function(){
        $(".login_submit").addClass("hover");
    });
    $(".login_submit").mouseout(function(){
        $(".login_submit").removeClass("hover");
    });
    $(".searh_submit").mouseover(function(){
        $(".searh_submit").addClass("hover");
    });
    $(".searh_submit").mouseout(function(){
        $(".searh_submit").removeClass("hover");
    });
    $(".menu ul li:last-child").addClass("last-child");
	
    $(".form_resume_submit").click(function(){
        $(".vacansy").hide();
        $(".form_resume_submit").hide();
        $(".form_resume_attendant_submit").hide();
        $(".form_resume_submit_close").show();
        $(".form_resume").show();
    });
    $(".form_resume_submit_close").click(function(){
        $(".vacansy").show();
        $(".form_resume_submit").show();
        $(".form_resume_attendant_submit").show();
        $(".form_resume_submit_close").hide();
        $(".form_resume").hide();
    });
    $(".form_resume_attendant_submit").click(function(){
        $(".vacansy").hide();
        $(".form_resume_submit").hide();
        $(".form_resume_attendant_submit").hide();
        $(".form_resume_attendant_submit_close").show();
        $(".form_resume_attendant").show();
    });
    $(".form_resume_attendant_submit_close").click(function(){
        $(".vacansy").show();
        $(".form_resume_submit").show();
        $(".form_resume_attendant_submit").show();
        $(".form_resume_attendant_submit_close").hide();
        $(".form_resume_attendant").hide();
    });

    //main_menu
    $("#main_menu .main-link").hover(function() {
        $(this).find("ul").addClass('active');
    } , function() {
        $(this).find("ul").removeClass('active');
    });

                
});
