// WZA Sub page

$(document).ready(function () {


    // JQ - Cufon
	Cufon.replace('.contain-sb span', {fontFamily: 'Cronos Pro', fontSize:'16px'});
	Cufon.replace('.contain-sb a, .contain-sb span span', {fontFamily: 'Cronos Pro', fontSize:'14px'});
	Cufon.replace('#sub-menu h3, .boxheader1 h1, .boxheader2 h1, .boxheader2 h2, .boxheader2 h3, .boxheader3 h1, .boxheader3 h2, .boxheader4 h2, .imgboxheader h2', {fontFamily: 'Cronos Pro'});
	Cufon.replace('.box347 h3, .box347-oddrow-table h3, .box428 h2, .box428 h3, .box645 h2, .box645 h3, .ad-block h1, .ad-block h2', {fontFamily: 'Arial'});

    // JQ - Font sizer
	fontResizer('1.0em','1.12em','1.22em');

    // JQ - Table zebra stripings
	$(".stripeMe tr").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});
	$(".stripeMe tr:even").addClass("alt");
	
	$('.stripeMe tr').bind('click', function(){window.location = $('a:first', this).attr('href');
	});
   
    // JQ - Image captions - 08
    $('.boxgrid.caption').hover(function () {
        $(".cover", this).stop().animate({
            top: '80px'
        },
        {
            queue: false,
            duration: 160
        });
    },
    function () {
        $(".cover", this).stop().animate({
            top: '205px'
        },
        {
            queue: false,
            duration: 160
        });
    });

    // JQ - onFocus form fields
	$('.notoggle_container input').each(function() {
	    var default_value = this.value;
	    $(this).focus(function() {
	        if(this.value == default_value) {
	            this.value = '';
	        }
	    });
	    $(this).blur(function() {
	        if(this.value == '') {
	       	    this.value = default_value;
	        }
	    });
	});


});
// JQ - Corner - 08
$(".boxgrid").corner("15px");
$(".face, .roundimg42, .roundimg64, .roundimg80, .roundimg80white, .roundimg150, .roundimg300").corner("10px");

function start() {
	$("#navlist").slideDown("slow");
	$(this).toggleClass("active"); return false;
}
window.onload = start; 

