
$(document).ready(function() {

	$('a.nyroModal').nyroModal({
		type: 'iframe', 
		forceType: 'iframe', 
		width: 450,
		height: 400,
		title: null,
		resizable:false,
		titleFromIframe : false,
		css: {
			wrapper2: {
				overflow: 'hidden'
    		},
			 content: {
		      overflow: 'hidden'
		    }
		}
	});
	
	$height = 0;
	$("#stPageBlocksContainer .bb_inner").each(function(i) {
		 $elHeight = $(this).css("height");
		 $elHeight = $(this).get(0).clientHeight - 30;
		 if ($elHeight > $height) {
		 	$height = $elHeight;
		 }
	});
	$("#stPageBlocksContainer .bb_inner").each(function(i) {
		$(this).css("height", $height);
	});
	
	$("#showSubscriptForm").click(function(){
		$("#subscriptionForm").show('normal');
		$("#showSubscriptForm").css('display', 'none');
	});
	
	//$height = $("#stPageBlocksContainer").get(0).clientHeight;
	//$(".stPagePromoBlock").css("height", $height);
	
	
//	$(".nav").ready(function() { // scan the page for any navigations
//
//		$(".sub").toggle(); // hide the sub menus
//
//		
//
//		$(".sub").parent().mouseover(function(){
//
//			$(this).children(".sub").toggle(); // show the sub menu
//
//		});
//
//		
//
//		$(".sub").parent().mouseout(function(){
//
//			$(this).children(".sub").toggle(); // hide the sub menu
//
//		});
//
//	});

});
