$(document).ready(function(){
$(function () {
$('.fpmm').bxSlider({
mode: 'fade',
speed: 1000,
pause: 10000,
auto: true,
controls: true,
next_text: '
',
prev_text: '
',
auto_direction: 'right',
width: 280,
wrapper_class: 'fpmm_container'
});
$('.fpgallery').bxSlider({
mode: 'fade',
speed: 1000,
pause: 7500,
auto: true,
controls: true,
next_text: '
',
prev_text: '
',
auto_direction: 'right',
width: 280,
wrapper_class: 'fpgallery_container'
});
$('.media').media({
width: 540,
height: 370
});
$('.medialow').media({
width: 428,
height: 320
});
$("div#header-top").click( function() {
$("#homeForm")[0].submit();
});
$(".menu-item").hover(
function () {
$( "div#" + $(this).attr("child") ).show();
},
function () {
$( "div#" + $(this).attr("child") ).hide();
}
);
$('a.jqLightbox').lightBox();
$("button#protected").click( function() {
$("div#restrictedUError").hide();
$("div#restrictedPError").hide();
$('#loginMsg').html("");
var fCheck = true;
if ( $("input[name='restrictedU']").val() == "" ) {
$("div#restrictedUError").fadeIn("slow");
fCheck = false;
}
if ( $("input[name='restrictedP']").val() == "" ) {
$("div#restrictedPError").fadeIn("slow");
fCheck = false;
}
if (fCheck) {
var submitStr = "secureParent=" + $("input[name='secureParent']").val() + "&protect_id=" + $("input[name='protect_id']").val() + "&lookFor=" + $("input[name='lookFor']").val() + "&username=" + $("input[name='restrictedU']").val() + "&password=" + $("input[name='restrictedP']").val() + "";
$('#loginMsg').load('modules/secure-page-login.php?' + submitStr);
}
});
var newsTimer = 1;
var eventTimer = 1;
// TIMERS FOR CONTENT ROTATORS
$(document).everyTime('5s', function(i) {
// put stuff here
}, 0);
});
});