Can't get my mSlider function to work in IE. It's says i get an error on line 171. But i don't reckon why. Would appreciate some help please. Here's the page
This is what line 171 refers to:
window.mSlide = function(){
var currentPosition = 0;
var slideWidth = 500;
var slideTotal = 3; // Total amount slides
var mSlideObj = $(".mSlideObj");
if(currentPosition == 0){
$("#mSlideControlLeft").hide();
}
$("#mSlideContainer").css({marginLeft: 0});
$("#mSlideContainer").css('width', slideWidth * mSlideObj);
$("#mSlideControl span").css({"opacity": "0.85"});
$("#mSlideControl span").click(function(){
currentPosition = ($(this).attr("id")=="mSlideControlRight") ? currentPosition+1 : currentPosition-1;
$("#mSlideContainer").animate({"marginLeft" : slideWidth*(-currentPosition)});
if(currentPosition >= slideTotal){
$("#mSlideControlRight").fadeOut(80);
} else
{
$("#mSlideControlRight").fadeIn();
}
if(currentPosition <= 0){
$("#mSlideControlLeft").fadeOut(80);
} else{
$("#mSlideControlLeft").fadeIn();
}
$("p#text").text(currentPosition);
});
};