$(document).ready(function(){

//prepend span tag  to boxes
$(".thumb a:has('img')").prepend("<span></span>");

//thumbnails for tables
$(".thumbs td:has('a')").wrapInner("<div class='thumb' />");
$(".thumbs a:has('img')").prepend("<span></span>");
$(".thumbs td p:has('img')").css("margin","0");

//home page slider
$('#mycarousel').jcarousel({
        // Configuration goes here
});
	
//home page thumbnails
$(".jcarousel-item a").prepend("<span></span>");

//load superbox popup
$(function(){
$.superbox.settings = {
closeTxt: "X",
loadTxt: "Loading..."
};
$.superbox();
});

//banner script
$(function() {
    $('#banner').cycle({ fx: 'fade', random: 1, timeout: 5000, cleartype: 1, speed: 500 });
});


});

//set new homepage button
    function setHomepage()
    {
     if (document.all)
        {
            document.body.style.behavior='url(#default#homepage)';
      document.body.setHomePage('http://www.zilladog.com');

        }
        else if (window.sidebar)
        {
        if(window.netscape)
        {
             try
       {  
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
             }  
             catch(e)  
             {  
        alert("To make this page your home page, just drag the icon to the left of the URL in your location bar onto the 'Home' icon in the 'house' icon in your toolbar. Some browsers do this differently. You can always set your home page through the preferences of your browser.");  
             }
        } 
        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
        prefs.setCharPref('browser.startup.homepage','http://www.zilladog.com');
     }
    }




