$(document).ready(function() {
$("ul#expert_list li.expert:last").css({'border-bottom' : 'none',
'margin-bottom' : '0',
'padding-bottom' : '4px'
});
$("ul#navMenu li").click(function () {
var id = $(this).attr('id');
if (!(id.indexOf('-correct') == -1)) return false;
var links = new Array();
links['one'] = 'index.htm';
links['two'] = 'subjects_numerology.htm';
links['three'] = 'subjects_psychic_reading.htm';
links['four'] = 'subjects_tarot.htm';
location = links[$(this).attr('id')];
});
// $("p.ex_text").each(function () {
// showhide(this);
// });
});//document.ready
// var firstRun = true;
// function showhide(element) {
// if (firstRun) {firstRun = false;} //the first run
// else {element = $(this).parent();} //second and above
// if (!element._text) {
// element._text = element.innerHTML;
// element._status = "shown";
// }
// if (element._status == "shown") {
// element.innerHTML = length_limit(element._text, 170) + ' read more';
// element.className = "ex_text hidden";
// element._status = "hidden";
// }
// else if (element._status == "hidden") {
// element.innerHTML = element._text + ' read less';
// element.className = "ex_text shown";
// element._status = "shown";
// }
// }
// function length_limit(s, n) {
// var tmp = s.substr(0, n+1);
// tmp = tmp.substr(0, tmp.lastIndexOf(' '));
// if (tmp.length < s.length)
// tmp += "...";
// return tmp;
// }
//מה שהיה בדוקיומנט רדי
// //"read more" details
// $("ul#expert_list li.expert .ex_content p").each(function () {
// var peraText = $(this).html();
// var peraStart = peraText.slice(0,170);
// var peraEnd = peraText.slice(170);
// //if (peraStart.charAt(peraStart.length-1) == " ") peraStart = peraText.slice(0,169);
// //if (peraStart.charAt(peraStart.length-1) == ".") peraStart = peraText.slice(0,169);
// $(this).empty()
// .append(peraStart)
// .append('... Read More
')
// .append (peraEnd);
// });
// $("ul#expert_list li.expert .ex_content p span a").addClass('readmore');
// function readOnlyDisplay () {
// if ($(this).hasClass('readmore')) {
// alert ("readmore");
// //$(this).parent().parent().css({'height' : 'auto'});
// //$(this).parent().replaceWith(' ');
// }
// // else {
// // alert ("readless");
// // $(this).parent().find('span.three_dots').replaceWith('... Read More
');
// // $(this).parent().css({'height' : '66px'});
// // }
// }