/* Customer Javascript */
swfobject.addLoadEvent(function(){

var flashvars = { };

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

swfobject.embedSWF("/flash/main.swf", "aaFlash", "738", "139", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/AAPPMFull_logo.swf", "aaLeftTopVideo", "230", "420", "8.0.0", "", flashvars, params);
//swfobject.embedSWF("/flash/video_playlist.swf", "aaLeftTopVideo", "350", "422", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/mp3player.swf", "mpPlay", "268", "450", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/testimonials/video_playlist.swf", "memTest", "350", "422", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/inOffice.swf", "inOff", "600", "400", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/cookBooks.swf", "cook", "600", "400", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/WhatYouNeedToKnowAboutEHR.swf", "whatYouNeed", "600", "495", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/tenunits.swf", "tensunit", "600", "420", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/high.swf", "high", "600", "420", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/onlineMarketing.swf", "online", "600", "400", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/strategies.swf", "strategies", "600", "520", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/routine.swf", "routine", "600", "420", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/year.swf", "year", "592", "490", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/money.swf", "money", "600", "420", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/jumpstart.swf", "jumpstart", "600", "420", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/kiosks.swf", "kiosks", "600", "420", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/flow.swf", "flow", "600", "420", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/schedulingForSuccess.swf", "schedulingForSuccess", "600", "500", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/implementing.swf", "implementing", "320", "240", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/anatomy.swf", "anatomy", "600", "420", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/oneminute.swf", "oneminute", "480", "410", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/developing.swf", "developing", "600", "420", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/bjTestimonial.swf", "bjtestimonial", "428", "290", "8.0.0", "", flashvars, params);

swfobject.embedSWF("/flash/44000question.swf", "fourtyfourquestion", "600", "405", "8.0.0", "", flashvars, params);

swfobject.embedSWF("/flash/bradTestimonial.swf", "bradTestimonial", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/allisonDewaters.swf", "dewaters", "480", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/benWeaver.swf", "weaver", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/chadSchwarz.swf", "schwarz", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/halOrnstein.swf", "ornstein", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/jeffFrederick.swf", "frederick", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/jenniferPacaccio.swf", "pacaccio", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/johnGuiliana1.swf", "guiliana1", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/johnGuiliana2.swf", "guiliana2", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/johnGuiliana3.swf", "guiliana3", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/johnGuiliana4.swf", "guiliana4", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/jonathanMoore.swf", "moore", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/marybethCrane1.swf", "crane1", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/marybethCrane2.swf", "crane2", "428", "290", "8.0.0", "", flashvars, params);
swfobject.embedSWF("/flash/remJackson.swf", "jackson", "428", "290", "8.0.0", "", flashvars, params);

});

Ext.onReady(function(){    
    
    if (Ext.get('sbPopupContent')) {
        new Ext.Window({
            id: 'item1',
            title: 'Visual Media Concepts',
            contentEl: 'sbPopupContent',
            width: 915,
            height: 530,
            resizable: false,
            draggable: false,
            closeAction: 'hide',
            constrain: true,
            hidden: true,
            renderTo: document.body
        });
        
        Ext.get('viewOffer1').on('click', function (){
            Ext.getCmp('item1').show();
        });
    }
	
    if (Ext.get('sbPopupContent2')) {
        new Ext.Window({
            id: 'item2',
            title: 'Neuremedy',
            contentEl: 'sbPopupContent2',
            width: 655,
            height: 370,
            resizable: false,
            draggable: false,
            closeAction: 'hide',
            constrain: true,
            hidden: true,
            renderTo: document.body
        });
        
        Ext.get('viewOffer2').on('click', function (){
            Ext.getCmp('item2').show();
        });
    }
	
    if (Ext.get('sbPopupContent3')) {
        new Ext.Window({
            id: 'item3',
            title: 'Gordon Labs',
            contentEl: 'sbPopupContent3',
            width: 915,
            height: 530,
            resizable: false,
            draggable: false,
            closeAction: 'hide',
            constrain: true,
            hidden: true,
            renderTo: document.body
        });
        
        Ext.get('viewOffer3').on('click', function (){
            Ext.getCmp('item3').show();
        });
    }
	
    if (Ext.get('sbPopupContent4')) {        
        new Ext.Window({
            id: 'item4',
            title: 'Crocs',
            contentEl: 'sbPopupContent4',
            width: 915,
            height: 533,
            resizable: false,
            draggable: false,
            closeAction: 'hide',
            constrain: true,
            hidden: true,
            renderTo: document.body
        });             
        
        Ext.get('viewOffer4').on('click', function (){
            Ext.getCmp('item4').show();
        });
    }
	
    if (Ext.get('sbPopupContent5')) {                
        new Ext.Window({
            id: 'item5',
            title: 'Biomedix',
            contentEl: 'sbPopupContent5',
            width: 915,
            height: 530,
            resizable: false,
            draggable: false,
            closeAction: 'hide',
            constrain: true,
            hidden: true,
            renderTo: document.body
        });
            
        Ext.get('viewOffer5').on('click', function (){
            Ext.getCmp('item5').show();
        });        
    }   

		if (Ext.get('sbPopupContent6')) {                
        new Ext.Window({
            id: 'item6',
            title: 'Amerigel',
            contentEl: 'sbPopupContent6',
            width: 915,
            height: 530,
            resizable: false,
            draggable: false,
            closeAction: 'hide',
            constrain: true,
            hidden: true,
            renderTo: document.body
        });
            
        Ext.get('viewOffer6').on('click', function (){
            Ext.getCmp('item6').show();
        });        
    } 
	
	if (Ext.get('sbPopupContent7')) {                
        new Ext.Window({
            id: 'item7',
            title: 'Aetrex',
            contentEl: 'sbPopupContent7',
            width: 915,
            height: 530,
            resizable: false,
            draggable: false,
            closeAction: 'hide',
            constrain: true,
            hidden: true,
            renderTo: document.body
        });
            
        Ext.get('viewOffer7').on('click', function (){
            Ext.getCmp('item7').show();
        });        
    } 
	
	if (Ext.get('sbPopupContent8')) {                
        new Ext.Window({
            id: 'item8',
            title: 'Biofreeze',
            contentEl: 'sbPopupContent8',
            width: 915,
            height: 1197,
            resizable: false,
            draggable: false,
            closeAction: 'hide',
            constrain: true,
            hidden: true,
            renderTo: document.body
        });
            
        Ext.get('viewOffer8').on('click', function (){
            Ext.getCmp('item8').show();
        });        
    } 
});




