/* Customer Javascript */

Ext.onReady(function(){
    if(Ext.getBody().id == 'page-index'){
        Ext.ux.extbox.register('a.test', false, {innerWidth: 560, innerHeight: 320, iframe: true, scale: false, current: "{current} of {total}", close: '×'});
    }
});
Ext.onReady(function(){
    if(Ext.getBody().id == 'page-index'){
        Ext.ux.extbox.register('a.test2', false, {innerWidth: 820, innerHeight: 620, iframe: true, scale: false, current: "{current} of {total}", close: '×'});
    }
});
Ext.onReady(function(){
    if(Ext.getBody().id == 'page-step-alive-shoes'){
        Ext.ux.extbox.register('a.test', false, {innerWidth: 560, innerHeight: 320, iframe: true, scale: false, current: "{current} of {total}", close: '×'});
    }
});
Ext.onReady(function(){
    if(Ext.getBody().id == 'page-step-alive-shoes'){
        Ext.ux.extbox.register('a.test', false, {innerWidth: 560, innerHeight: 320, iframe: true, scale: false, current: "{current} of {total}", close: '×'});
    }
});
Ext.onReady(function(){
    if(Ext.getBody().id == 'page-step-alive-shoes'){
        Ext.ux.extbox.register('a.test', false, {innerWidth: 560, innerHeight: 320, iframe: true, scale: false, current: "{current} of {total}", close: '×'});
    }
});
Ext.onReady(function(){
    if(Ext.getBody().id == 'page-step-alive-shoes'){
        Ext.ux.extbox.register('a.test', false, {innerWidth: 560, innerHeight: 320, iframe: true, scale: false, current: "{current} of {total}", close: '×'});
    }
});

swfobject.addLoadEvent(function(){
    var flashvars = { };
    var params = {
        quality: "high",
        wmode: "transparent"
    };

    if(Ext.getBody().id == 'page-index'){
        swfobject.embedSWF("/flash/video_intro.swf", "videoIntro", "360", "280", "8.0.0", "", flashvars, params);
        swfobject.embedSWF("/flash/indexLibrary/index_bookLibrary.swf", "indexLibrary", "175", "233", "8.0.0", "", flashvars, params);
        swfobject.embedSWF("/flash/nomir/nomik.swf", "nomir", "230", "93", "8.0.0", "", flashvars, params);
        swfobject.embedSWF("/flash/spa_btn.swf", "spa_btn", "230", "330", "8.0.0", "", flashvars, params);
    }

    if(Ext.getBody().id == 'page-go-green'){
        swfobject.embedSWF("/flash/go-green.swf", "green_video", "320", "280", "8.0.0", "", flashvars, params);
    }

    if(Ext.getBody().id == 'page-referrals'){
        swfobject.embedSWF("/flash/PatientRewardsWeb3.swf", "referrals", "350", "287", "8.0.0", "", flashvars, params);
    }

    if(Ext.getBody().id == 'page-diabetic-care'){
        swfobject.embedSWF("http://movies.wired.md/W1337fhi.swf", "diabetes-video", "400", "300", "8.0.0", "", flashvars, params);
    }

    if(Ext.getBody().id == 'page-diabetes-and-your-child'){
        swfobject.embedSWF("http://movies.wired.md/W1650fhi.swf", "pediatric-diabetes", "400", "300", "8.0.0", "", flashvars, params);
    }

    if(Ext.getBody().id == 'page-orthotics'){
        swfobject.embedSWF("/flash/tomcat.swf", "tomcat", "291", "280", "8.0.0", "", flashvars, params);
    }

    if(Ext.getBody().id == 'page-pediatrics'){
        swfobject.embedSWF("/flash/PediatricWebMovie1.swf", "pediatrics", "480", "360", "8.0.0", "", flashvars, params);
    }

    if(Ext.getBody().id == 'page-book-and-dvd'){
        swfobject.embedSWF("/flash/carousel/carousel2.swf", "carousel", "680", "400", "8.0.0", "", flashvars, params);
    }

    if(Ext.getBody().id == 'page-blogs'){
        swfobject.embedSWF("/flash/carouselblog/carousel.swf", "carouselblog", "680", "400", "8.0.0", "", flashvars, params);
    }

    if(Ext.getBody().id == 'page-community-outreach'){
        swfobject.embedSWF("/flash/community_outreach.swf", "community", "650", "520", "8.0.0", "", flashvars, params);
    }

    if(Ext.getBody().id == 'page-step-alive-shoes'){
            swfobject.embedSWF("/flash/carouselshoes/carouselshoes.swf", "carouselshoes", "680", "400", "8.0.0", "", flashvars, params);
           swfobject.embedSWF("/flash/stepAliveShoes.swf", "stepAliveShoes", "450", "450", "8.0.0", "", flashvars, params);
           swfobject.embedSWF("/flash/labSlideshow.swf", "labSlideshow", "500", "500", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/xml_stepPlayer.swf", "stepPlayer", "540", "300", "8.0.0", "", flashvars, params);
    }

    if(Ext.getBody().id == 'page-surgery-animations'){
           swfobject.embedSWF("/flash/surgery_animations/videoPlayer/xml_video_playlist4.swf", "animations", "730", "328", "8.0.0", "", flashvars, params);
           swfobject.embedSWF("/flash/surgery_videos/surgery_videos2.swf", "surgeryVideos", "550", "625", "8.0.0", "", flashvars, params);

    }

    if(Ext.getBody().id == 'page-doctor-interviews'){
          swfobject.embedSWF("/audio/general_concerns.swf", "audio_interviews", "268", "450", "8.0.0", "", flashvars, params);
          swfobject.embedSWF("/flash/xml_video_player.swf", "interview", "540", "300", "8.0.0", "", flashvars, params);

    }

   // swfobject.embedSWF("/flash/StepSoothersweb.swf", "stepsoothers", "350", "287", "8.0.0", "", flashvars, params);
   //swfobject.embedSWF("/flash/BunionAUSTSCRW.swf", "bunions", "300", "200", "8.0.0", "", flashvars, params);
    
    
});

swfobject.addLoadEvent(function(){

        var flashvars = {};
        var params = {
            wmode: "transparent"
        };
        var attributes = {};
        swfobject.embedSWF("swf/home_page.swf", "homepageVid", "689", "487", "10", "assets/swf/expressInstall.swf", flashvars, params, attributes);

});

/* Step Alive Spa - Coming Soon Video */

swfobject.addLoadEvent(function(){

    var flashvars = { };

    var params = {
        quality: "high",
        wmode: "transparent"
    };

    swfobject.embedSWF("/flash/stepAliveSpa.swf", "stepAliveSpa", "300", "300", "8.0.0", "", flashvars, params);
});

/* Lab Slideshow Video */

swfobject.addLoadEvent(function(){

    var flashvars = { };

    var params = {
        quality: "high",
        wmode: "transparent"
    };

    swfobject.embedSWF("/flash/labSlideshow.swf", "labSlideshow", "500", "500", "8.0.0", "", flashvars, params);
});


/* Lab Slideshow Video */

swfobject.addLoadEvent(function(){

    var flashvars = { };

    var params = {
        quality: "high",
        wmode: "transparent"
    };

    swfobject.embedSWF("/flash/CrocsRx.swf", "naturalStep", "420", "420", "8.0.0", "", flashvars, params);
});


/* Nomik*/

swfobject.addLoadEvent(function(){

    var flashvars = { };

    var params = {
        quality: "high",
        wmode: "transparent"
    };

    swfobject.embedSWF("/flash/nomir/nomik.swf", "nomir", "230", "93", "8.0.0", "", flashvars, params);
});


