/* Office js*/
    $(function () {
        $('.bubbleInfo').each(function () {
				
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var office = $('.office', this); 
            var info = $('.popup', this).css('opacity', 0);

				$([office.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -185,
                        left: -295,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
    
/* fuelcell js*/
		$(function () {
        $('.bubbleInfo2').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var fuelcell = $('.fuelcell', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([fuelcell.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -82,
                        left: -485,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
/* Turbine js*/
		$(function () {
        $('.bubbleInfo3').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var turbine = $('.turbine', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([turbine.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: 30,
                        left: -500,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
/* Tactical Power Plant js*/
		$(function () {
        $('.bubbleInfo4').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var tpp = $('.tpp', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([tpp.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -180,
                        left: -295,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });		
		
/* ECU js*/
		$(function () {
        $('.bubbleInfo5').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var ecu = $('.ecu', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([ecu.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -45,
                        left: -500,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });	
		
/* Tactical UPS js*/
		$(function () {
        $('.bubbleInfo6').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var ups = $('.ups', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([ups.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -190,
                        left: -270,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });	
/* Mast js*/
		$(function () {
        $('.bubbleInfo7').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var mast = $('.mast', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([mast.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -60,
                        left: -385,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });	
/* Portable/Foldable Solar Panels js*/
		$(function () {
        $('.bubbleInfo8').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var portable = $('.portable', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([portable.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -160,
                        left: -270,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });			
/* BL Hut js*/
		$(function () {
        $('.bubbleInfo9').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var blhut = $('.blhut', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([blhut.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: 25,
                        left: -220,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });	
/* Inverter js*/
		$(function () {
        $('.bubbleInfo10').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var inverter = $('.inverter', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([inverter.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -175,
                        left: -280,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });	
/* Solar Panel 2 js*/
		$(function () {
        $('.bubbleInfo11').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var solar2 = $('.solar2', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([solar2.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -235,
                        left: -300,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });	
/* Solar Panel 1 js*/
		$(function () {
        $('.bubbleInfo12').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var solar1 = $('.solar1', this); 
            var info = $('.popup', this).css('opacity', 0);
						
            $([solar1.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
														
                        top: -145,
                        left: -290,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });	
/* Battery Module 2 js*/
		$(function () {
        $('.bubbleInfo13').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var battery2 = $('.battery2', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([battery2.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -169,
                        left: -288,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
/* Battery Module 1 js*/
		$(function () {
        $('.bubbleInfo14').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var battery1 = $('.battery1', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([battery1.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -65,
                        left: -490,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
/* Tent js*/
		$(function () {
        $('.bubbleInfo15').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var tent = $('.tent', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([tent.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -95,
                        left: -420,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
/* PDU image 2 js*/
		$(function () {
        $('.bubbleInfo16').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var pdu2 = $('.pdu2', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([pdu2.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -180,
                        left: -240,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });	
/* UPS 2nd image js*/
		$(function () {
        $('.bubbleInfo17').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var ups2 = $('.ups2', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([ups2.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -200,
                        left: -225,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });																					
/* UPS 3 Large 2nd image js*/
		$(function () {
        $('.bubbleInfo18').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var ups3 = $('.ups3', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([ups3.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -200,
                        left: -260,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });	
/* Battery Module 2nd image js*/
		$(function () {
        $('.bubbleInfo19').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var battery3 = $('.battery3', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([battery3.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -35,
                        left: -495,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
/* TCW 2nd image js*/
		$(function () {
        $('.bubbleInfo20').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var tcw = $('.tcw', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([tcw.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -40,
                        left: -65,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
/* Lighting 2nd image js*/
		$(function () {
        $('.bubbleInfo21').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var lights = $('.lights', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([lights.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -43,
                        left: -580,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
/* Lighting 2nd image js*/
		$(function () {
        $('.bubbleInfo22').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var lights2 = $('.lights2', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([lights2.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -43,
                        left: -34,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
/* Office 2nd image js*/
		$(function () {
        $('.bubbleInfo23').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var office2 = $('.office2', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([office2.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -83,
                        left: -84,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
/* Medusa Cable Kit js*/
		$(function () {
        $('.bubbleInfo24').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var cables = $('.cables', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([cables.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -205,
                        left: -295,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
/* TCW outside js*/
		$(function () {
        $('.bubbleInfo25').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var tcw2 = $('.tcw2', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([tcw2.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -20,
                        left: -395,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });

/* button to view outside of tent js*/
		$(function () {
        $('.bubbleInfo26').each(function () {
            var distance = -135; // from top of the picture
            var time = 250;
            var hideDelay = 300;
	
            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var intoout = $('.intoout', this); 
            var info = $('.popup', this).css('opacity', 0);

            $([intoout.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -20,
                        left: -395,
                        display: 'block'
                    }).animate({
                        left: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });		
