﻿$j = jQuery.noConflict();
$j.preloadCssImages();

if (typeof (SetupBannerTimer) != "undefined")
{
    SetupBannerTimer();

    NextBanner(); //Make sure links are set up correctly

    //randomly change 0, 1 or 2 times to pick a random banner
    var nextBanner = Math.floor(Math.random() * 3);
    if (nextBanner < 1) {
        NextBanner();
    }
    if (nextBanner < 2) {
        NextBanner();
    }
}

jQuery(document).ready(function() {
    //jQuery(".main_dnnmenu_rootitem span:last-child").addClass("Accessibility");
    //jQuery(".main_dnnmenu_rootitem_selected span:last-child").addClass("Accessibility");
	document.forms.Form.dnn$dnnSEARCH$txtSearch.value = 'Search...';
	document.forms.Form.dnn$dnnSEARCH$txtSearch.onfocus = function() { if (this.value == 'Search...') this.value = '' };
	document.forms.Form.dnn$dnnSEARCH$txtSearch.onblur = function() { if (this.value == '') this.value = 'Search...' };
});

var homeIcon = document.getElementById('dnn_dnnNAV_ctldnnNAVicn37');
homeIcon.onmouseover = function()
{
	this.src = '/Portals/0/Icon_Home_Hover.png';
};
homeIcon.onmouseout = function()
{
	this.src = '/Portals/0/Icon_Home.png';
};