﻿
function SlideSliderHeight(sender) {

    var parent = sender.parentNode;
    var contentNode = null;
    for (var i = 0; i < parent.childNodes.length; i++) {
        if (parent.childNodes[i] != sender) {
            contentNode = parent.childNodes[i];
            break;
        }
    }
    switch (contentNode.className) {
        case "showContent":
            contentNode.className = "hideContent";
            break;
        case "hideContent":
            contentNode.className = "showContent";
            break;
    }
}
var _isIE = false; var _isFirefox = false; var _isChrome = false; var _isSafari = false;
function ShowSlidersAndFlyOut() {
    //    if (navigator.userAgent.indexOf(' MSIE') > -1) {
    //        _isIE = true;
    //    }
    //    if (navigator.userAgent.indexOf(' Firefox/') > -1) {
    //        _isFirefox = true;
    //    }
    //    if (navigator.userAgent.indexOf(' Chrome/') > -1) {
    //        _isChrome = true;
    //    }
    //    if (navigator.userAgent.indexOf(' AppleWebKit/') > -1) {
    //        _isSafari = true;
    //    }
    //    if (!_isIE) {
    //        var proto = window.parent.document.location.protocol;
    //        var query = window.location.search.substring(1);
    //        if (query == null || query == '')
    //        { window.location = proto + '//' + document.domain + '/Doors/StoreFrontDoors.aspx?cnt=1'; return false; }
    //        var vars = query.split("&");
    //        for (var i = 0; i < vars.length; i++) {
    //            var pair = vars[i].split("=");
    //            if (pair[0] == 'cnt') {
    //                switch (pair[1]) {
    //                    case '1':
    //                        window.location = proto + '//' + document.domain + '/Doors/StoreFrontDoors.aspx?cnt=2';
    //                        return;
    //                        break;
    //                    case '2':
    //                        if (!_isFirefox && !_isChrome) {
    //                            window.location = proto + '//' + document.domain + '/Doors/StoreFrontDoors.aspx?cnt=3';
    //                        }
    //                        else {
    //                            $get('ctl00_ContentPlaceHolder1_UC_BuildDoor1_BuildResultsDoorHeight').innerHTML = '86';
    //                            //
    //                            $get('ctl00_ContentPlaceHolder1_UC_BuildDoor1_btnInfo').click();
    //                        }
    //                        break;
    //                }
    //            }
    //        }
    //    }
    $get('ctl00_ContentPlaceHolder1_UC_BuildDoor1_BuildResultsDoorHeight').innerHTML = '86';
    //
    //Opens FlyOut
   // if (!navigator.userAgent.match(/iPad/i))
       // $get('ctl00_ContentPlaceHolder1_UC_BuildDoor1_btnInfo').click();
}
