﻿//IE Z_index fix

$(function() {
	var zIndexNumber = 1000;
	$('div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 5;
	});
});

// initialize the jquery code
$(document).ready(function(){
	$('#regionDrop').hide('');
	
	$('#topNavRegion').click(function(event) {
		$('#regionDrop').fadeIn('fast');
		event.stopPropagation();
	});
	
	$(document).click(function(event) {
		$('#regionDrop').fadeOut('slow');
    if (!$(event.target).parents('.filterMenu').length) {
      $('.filterPulldown h4 a').removeClass('filterActive');
      $('.filterMenu').fadeOut('fast');
    }
		event.stopPropagation();
	});

  $('a#c_taketwo').click(function() {
    window.open(this.href, 'popup', 'scrollbars,resizable,height=600,width=750');  
    return false;
  });

  $('a.popup').click(function() {
    window.open(this.href, 'popup', 'scrollbars,resizable,height=500,width=350');  
    return false;
  });
});




