$jq = jQuery.noConflict();

$jq(document).ready(function() {
    
    $jq('#french_number').hide();
    $jq('#german_number').hide();
    $jq('#swiss_number').hide();
    
    $jq('#phone_uk').hover(function() {
        $jq('#french_number').hide();
        $jq('#german_number').hide();
        $jq('#swiss_number').hide();
        $jq('#uk_number').show();
    });    
    
    $jq('#phone_french').hover(function() {
        $jq('#uk_number').hide();
        $jq('#german_number').hide();
        $jq('#swiss_number').hide();
        $jq('#french_number').show();
    });
    
    $jq('#phone_german').hover(function() {
        $jq('#uk_number').hide();
        $jq('#french_number').hide();
        $jq('#swiss_number').hide();
        $jq('#german_number').show();
    });    
    
    $jq('#phone_swiss').hover(function() {
        $jq('#uk_number').hide();
        $jq('#german_number').hide();
        $jq('#french_number').hide();
        $jq('#swiss_number').show();
    });
    
    // slider for pharma job featured
    /*$jq("#post_pharma_jobs").easySlider({
        auto: true,
        continuous: true,
        controlsShow: false,  
        vertical: true,
        pause: 8000,
        /*easing: 'linear',*/
        /*speed: 6000*/
        /*loop: true,*/
        /*});*/
    /*$jq('#post_pharma_jobs').vTicker();*/
        
    /*$jq("#post_anal_jobs").easySlider({
        auto: true,
        continuous: true,
        controlsShow: false,  
        vertical: true,
        pause: 8000,
        /*easing: 'linear',*/
        /*speed: 6000*/
        /*loop: true,*/
/*        });
    $jq("#post_tech_jobs").easySlider({
        auto: true,
        continuous: true,
        controlsShow: false,  
        vertical: true,
        pause: 8000,
        /*easing: 'linear',*/
        /*speed: 6000*/
        /*loop: true,*/
        /*});*/
        
    /* Slider for top job featured */
    $jq("#post_top_pharma_jobs").easySlider({
        auto: true,
        continuous: true,
        controlsShow: false,  
        vertical: true,
        pause: 8000,
        /*easing: 'linear',*/
        speed: 6000
        /*loop: true,*/
    });
    $jq("#post_top_tech_jobs").easySlider({
        auto: true,
        continuous: true,
        controlsShow: false,  
        vertical: true,
        pause: 8000,
        /*easing: 'linear',*/
        speed: 6000
        /*loop: true,*/
    });  
    $jq("#post_top_anal_jobs").easySlider({
        auto: true,
        continuous: true,
        controlsShow: false,  
        vertical: true,
        pause: 8000,
        /*easing: 'linear',*/
        speed: 6000
        /*loop: true,*/
    });      
        
    /* IMPORTANT! */
    /*$jq('#post_pharma_jobs>ul>li').removeAttr('style');
    $jq('#post_anal_jobs>ul>li').removeAttr('style');
    $jq('#post_tech_jobs>ul>li').removeAttr('style');*/
    
    $jq('#post_top_pharma_jobs>ul>li').removeAttr('style');
    $jq('#post_top_tech_jobs>ul>li').removeAttr('style');
    $jq('#post_top_anal_jobs>ul>li').removeAttr('style');
    
    $jq('#post_top_pharma_jobs>ul>li>a').removeAttr('style');
    $jq('#post_top_tech_jobs>ul>li>a').removeAttr('style');
    $jq('#post_top_anal_jobs>ul>li>a').removeAttr('style');
    
    /* Sub categories setting*/
    $jq('.subcat_box, .small_subcat_box').hide();
    
    $jq('.cat_box, .small_cat_box').click(function() {
        $jq('.subcat_box, .small_subcat_box, #clickOnPad').hide();
        $jq('.cat_box, .small_cat_box').hide();
        $jq('.search_form_header2').text('all jobs in category');
        $jq(this).siblings('#subcat_box_'+this.id).show(400);
    });
    
    /*$jq('.back_to_pod').click(function() {
        $jq('.search_form_header').text('All Job Categories');        
        var dataString = $jq('#hid_link').val();
        $jq.ajax({
            url: "../wp-content/themes/sec/ajax/clearjobcatno.php",
            data: "link=" + dataString,
            type: "get",
            success: function (html) {               
            $jq('#ajaxhtml').html(html);
        }
        });
        
        $jq('#subcat_box_'+this.id).hide(400);
        $jq('.cat_box, .small_cat_box, #clickOnPad').show();
    });*/
    
    /* set cat name on hidden field */
    $jq('#cat').change(function() {
        var vCat = $jq.trim($jq('#cat option:selected').text());
        $jq('#hid_cat').val( vCat.replace(/ /g, '-') ); 
    });
    
});

function back_to_pod(vWP_link, catBoxID)
{
    $jq('.search_form_header2').text('all job categories');        
    $jq('#subcat_box_'+catBoxID).hide(400);
    $jq('.cat_box, .small_cat_box, #clickOnPad').show();   
        
    var dataString = $jq('#hid_link').val();
    $jq.ajax({
        url: vWP_link + "wp-content/themes/sec/ajax/clearjobcatno.php",
        data: "link=" + dataString,
        type: "get",
        success: function (html) {               
        $jq('#ajaxhtml').html(html);
    }    
    }); 
}
