﻿jQuery(document).ready(function(){

	
var setFeatTabNum = $('#featuredNum').val();
var setFeatTabRand = $('#featuredRand').val();

var setBlogTabNum = $('#blogNum').val();
var setBlogTabRand = $('#blogRand').val();



if(setFeatTabRand == "true"){

    var setTabFeat = Math.floor(Math.random()*4);
}

else {
   
    var setTabFeat = setFeatTabNum;

}


if(setBlogTabRand == "true"){

    var setTabBlog = Math.floor(Math.random()*3);
}

else {
   
    var setTabBlog = setBlogTabNum;

}


$('#feature_list ul.output li').css('display', 'none');
$('#feature_list .tabs > li').eq(setTabFeat).find('div.feat').trigger('mouseenter');
$('#blogger_list ul.output li').css('display', 'none');
$('#blogger_list .tabs > li').eq(setTabBlog).find('div.blogger').trigger('mouseenter');


if (setTabFeat == 0){
	$('#feature_list .output > li').eq(0).css('display', 'list-item');
}

if (setTabFeat == 0){
	$('#blogger_list .output > li').eq(0).css('display', 'list-item');
}


});


