$(document).on("onmediaquery",function () {
if(MQ.getContext() == "769px" || MQ.getContext() == "1024px"){
var slideUp = false;
//console.log('SlideUp '+slideUp);
if (slideUp === true) {
console.log("Stage is set to slide Up");
$(".main > section").css('height', '100px');
$("#contentArea").addClass("contentArea");
$("#subnavWrapper").addClass("subnavWrapper");
$("#stagebuttonwrapper").css("display", "block");
$("#stagebuttonwrapper").clicktoggle(
function () {
var self = $(this);
$(".main > section").animate({
height:$('.main > section > article').height()+'px'
}, 1000, function () {
self.addClass('open');
});
},
function () {
var self = $(this);
$(".main > section").animate({
height:'100px'
}, 1000, function () {
self.removeClass('open');
});
}
);
}
}
});