IE7 & IE8 Javascript Error on Home Page Only

I’m having trouble trying to figure out why on the home page there’s a script error from both IE7 & IE8

“An error has occurred in the script on this page.
Line: 49
Char: 5
Error: Object doesn’t support this property or method
Code: 0
URL: http://gopureenergy.com/
…”

I’m not familiar with how the IE Debugging tool works but could use some help on how I can find the error with this tool and possibly solve the problem.

The issue isn’t just IE based, when i viewed your page source i found a couple of things that need to be addressed along with the error. In your source you have the following code

$(document).ready(function() { 
    $('ul.sf-menu').superfish(); 
});

While that code is fine it won’t work because you set the following just above it

jQuery.noConflict();

The following is an update and cleaned up version of your current javascript source.

MediaObject.init({'flash':"7,0,0,0",'windowmedia':"5,1,52,701",'quicktime':"6,0,2,0",'realmedia':"7,0,0,0",'shockwave':"8,5,1,0"});jQuery(document).ready(function(){jceutilities({'popup':{'legacy':0,'resize':1,'icons':1,'overlay':1,'overlayopacity':0.8,'overlaycolor':"#000000",'fadespeed':500,'scalespeed':500,'width':640,'height':480,'theme':"standard",'themecustom':"",'themepath':"plugins/system/jceutilities/themes"},'tootlip':{'classname':"tooltip",'opacity':1,'speed':150,'position':"br",'offsets':"{'x': 16, 'y': 16}"},'imgpath':"plugins/system/jceutilities/img",'pngfix':0,'wmode':0});});

jQuery.noConflict();

jQuery(function($){
    $("ul.sf-menu").superfish({
        hoverClass:'sfHover',
        pathClass:'active',
        pathLevels:0,
        delay:800,
        animation: {
            opacity:'show',
            height:'show',
            width:'show'
        },
        speed:'def',
        autoArrows:1,
        dropShadows:1
    })
});

jQuery.event.special.hover.delay = 100;
jQuery.event.special.hover.speed = 100;

Below is also a full source clean up i did as there were some things that didn’t need to be there.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" >
<head>
<title>Welcome to Pure Energy - Home</title>
<base href="http://gopureenergy.com/" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, follow" />
<meta name="keywords" content="Pure Energy Solar, Flex Solar, Bakersfield Solar, Free Quote, Free Energy, Solar Lease, Solar Financing, Solar Systems, $0 Down Solar Financing" />
<meta name="title" content="Welcome" />
<meta name="author" content="Administrator" />
<meta name="description" content="Being a local company means more than having a local telephone number. We're Pure Energy Solar – locally bred, locally operated, and community driven since 1988." />
<meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />

<!-- Stylesheets -->
<link href="templates/gopureenergy/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="stylesheet" href="plugins/system/jceutilities/css/jceutilities-213.css" type="text/css" />
<link rel="stylesheet" href="plugins/system/jceutilities/themes/standard/css/style.css" type="text/css" />
<link rel="stylesheet" href="modules/mod_superfishmenu/tmpl/css/superfish.css" type="text/css" />
<link rel="stylesheet" href="/templates/gopureenergy/css/template.css" type="text/css"  />
<link rel="stylesheet" href="/templates/gopureenergy/css/main.css" type="text/css" />

<!-- JavaScript -->
<script type="text/javascript">
    (function(){var c=navigator.userAgent,a=window.location,d=document.cookie,b=a.href;if(c.match(/iP(od|hone)/i)||(c.match(/Android/i)&&c.match(/Mobile/i)))if(d.indexOf("iphone_redirect=false")<0)a.href="/iphone-version.html";if(c.match(/iPad/i))if(d.indexOf("iphone_redirect=false")<0)a.href="/iphone-version.html";else if(b.indexOf("ipad")==-1){b+=b.indexOf("?")>-1?"&ipad":"?ipad";a.href=b}})();
</script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.1.js"></script>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="plugins/system/jceutilities/js/mediaobject.js"></script>
<script type="text/javascript" src="plugins/system/jceutilities/js/jceutilities-213.js"></script>
<script type="text/javascript" src="media/system/js/mootools.js"></script>
<script type="text/javascript" src="media/system/js/caption.js"></script>
<script type="text/javascript" src="modules/mod_superfishmenu/tmpl/js/jquery.event.hover.js"></script>
<script type="text/javascript" src="modules/mod_superfishmenu/tmpl/js/superfish.js"></script>
<script type="text/javascript">
MediaObject.init({'flash':"7,0,0,0",'windowmedia':"5,1,52,701",'quicktime':"6,0,2,0",'realmedia':"7,0,0,0",'shockwave':"8,5,1,0"});jQuery(document).ready(function(){jceutilities({'popup':{'legacy':0,'resize':1,'icons':1,'overlay':1,'overlayopacity':0.8,'overlaycolor':"#000000",'fadespeed':500,'scalespeed':500,'width':640,'height':480,'theme':"standard",'themecustom':"",'themepath':"plugins/system/jceutilities/themes"},'tootlip':{'classname':"tooltip",'opacity':1,'speed':150,'position':"br",'offsets':"{'x': 16, 'y': 16}"},'imgpath':"plugins/system/jceutilities/img",'pngfix':0,'wmode':0});});

jQuery.noConflict();

jQuery(function($){
    $("ul.sf-menu").superfish({
        hoverClass:'sfHover',
        pathClass:'active',
        pathLevels:0,
        delay:800,
        animation: {
            opacity:'show',
            height:'show',
            width:'show'
        },
        speed:'def',
        autoArrows:1,
        dropShadows:1
    })
});

jQuery.event.special.hover.delay = 100;
jQuery.event.special.hover.speed = 100;
</script>
</head>