﻿/// <reference path="jquery-1.7.1-vsdoc.js" />
/// <reference path="jquery-ui-1.8.17.js" />

var hp_i;
var hp_t1;
var hp_t2;
var page_no;
var mb_title;
var hp_duration;
var stop_start;
var redirect_step = -1;

$(document).ready(function () {

    //Menu Hi-lite
    page_no = $("#d_Page_ID").html();
    page_no = page_no * 1;
    $('#' + page_no).attr({ class: 'selected' });

    //Portal Logo Send to Home
    $(".portal_logo").click(function () { window.location = ("/"); });

    //Media Box
    hp_i = -1;
    if ($(".media_box").length) {
        mb_title = "";
        mb_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/bin_2/sri_00.jpg";
        $(".media_box").css({ 'background-image': 'url(' + mb_src + ')', 'background-position': '50% 0%', 'border-radius': '10px 10px 10px 10px' }).attr("title", mb_title);
        //$(".media_box").click(function () { hp_display_toggle(); });
        stop_start = 0;
        hp_display();
    }

    //$(".div_img").click(function () { hp_next(); });
    //$(".div_img").hover(function () { $(this).css({ 'background-position': 'right top' }); },
    //                    function () { $(this).css({ 'background-position': 'left top' }); });

    $("#testimonial").click(function () { audio_stop_start(); });
    $("#audio_title").click(function () { audio_stop_start(); });
    $("#audio_index").click(function () { audio_index(); });
});

var img_01_src = "";
var img_02_src = "";
var img_03_src = "";
var img_01;
var img_02;
var img_03;
var mb_w;
var mb_h;
var mbhr;
var i_w;
var i_h;
var ihr;
var bi_w;
var ilwr;
var irwr;
var imr;
var imt;
$(window).resize(function () {
    resize_img();
});
function resize_img() {

    mb_w = $(".media_box").width();
    mb_h = (mbhr * mb_w) + "px";
    bi_wh = (2 * mb_w / 3) + "px " + mb_h;

    i2_w = (mb_w / 2) + "px";
    bi2_wh = (mb_w / 2) + "px " + mb_h;

    i_w = (mb_w / 3) + "px";
    i_h = (ihr * mbhr * mb_w) + "px";

    imt = (imr * mbhr * mb_w) + "px";

    img_01 = (ilwr * mb_w) + "px";
    img_02 = (irwr * mb_w) + "px";

    $(".media_box").css({ 'height': mb_h, });
}
function hp_display() {
    switch (page_no) {
        case 0:
            Store();
            break;
        case 1:
            Women_Only();
            break;
        case 2:
            Men_Only();
            break;
        case 3:
            img_old();
            //Men_Women();
            break;
        case 4:
            break;
    }

}
function Store() {
    switch (hp_i) {
        case -1:     //Load Media Containers at the start of the page
            $(".media_box").append("<div id=\"img_01\" class=\"div_img\" ></div>");
            $(".media_box").append("<div id=\"img_02\" class=\"div_img\" ></div>");
            mbhr = .3;
            ihr = 1;
            hp_next();
            break;
        case 0:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_00.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_01.jpg";
            $("#img_01").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $("#img_01").animate({ 'opacity': 1.0, }, 500);
            $("#img_02").animate({ 'opacity': 1.0, }, 500, function () { crossfade_2(); });
            break;
        case 1:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_01.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_02.jpg";
            $("#img_01").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $("#img_01").animate({ 'opacity': 1.0, }, 500);
            $("#img_02").animate({ 'opacity': 1.0, }, 500, function () { crossfade_2(); });
            break;
        case 2:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_02.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_03.jpg";
            $("#img_01").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $("#img_01").animate({ 'opacity': 1.0, }, 500);
            $("#img_02").animate({ 'opacity': 1.0, }, 500, function () { crossfade_2(); });
            break;
        case 3:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_03.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_04.jpg";
            $("#img_01").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $("#img_01").animate({ 'opacity': 1.0, }, 500);
            $("#img_02").animate({ 'opacity': 1.0, }, 500, function () { crossfade_2(); });
            break;
        case 4:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_04.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_05.jpg";
            $("#img_01").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $("#img_01").animate({ 'opacity': 1.0, }, 500);
            $("#img_02").animate({ 'opacity': 1.0, }, 500, function () { crossfade_2(); });
            break;
        case 5:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_05.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_06.jpg";
            $("#img_01").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $("#img_01").animate({ 'opacity': 1.0, }, 500);
            $("#img_02").animate({ 'opacity': 1.0, }, 500, function () { crossfade_2(); });
            break;
        case 6:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_06.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_07.jpg";
            $("#img_01").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $("#img_01").animate({ 'opacity': 1.0, }, 500);
            $("#img_02").animate({ 'opacity': 1.0, }, 500, function () { crossfade_2(); });
            break;
        case 7:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_07.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_08.jpg";
            $("#img_01").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $("#img_01").animate({ 'opacity': 1.0, }, 500);
            $("#img_02").animate({ 'opacity': 1.0, }, 500, function () { crossfade_2(); });
            break;
        case 8:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_08.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_store/s_00.jpg";
            $("#img_01").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i2_w, 'height': i_h, 'background-size': bi2_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $("#img_01").animate({ 'opacity': 1.0, }, 500);
            $("#img_02").animate({ 'opacity': 1.0, }, 500, function () { crossfade_2(); });
            break;
        case 9:
            hp_i = 0;
            hp_display();
            break;
    }
}
function Men_Only() {
    switch (hp_i) {
        case -1:     //Load Media Containers at the start of the page
            $(".media_box").append("<div id=\"img_01\" class=\"div_img\" ></div>");
            $(".media_box").append("<div id=\"img_02\" class=\"div_img\" ></div>");
            $(".media_box").append("<div id=\"img_03\" class=\"div_img\" ></div>");
            mbhr = .3;
            ihr = 1;
            hp_next();
            break;
        case 0:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_01.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_02.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_03.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 1:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_02.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_03.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_04.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 2:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_03.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_04.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_05.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 3:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_04.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_05.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_06.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 4:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_05.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_06.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_07.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 5:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_06.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_07.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_08.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 6:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_07.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_08.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_01.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 7:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_08.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_01.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_02.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 8:
            hp_i = 0;
            hp_display();
            break;
    }

}
function Women_Only() {
    switch (hp_i) {
        case -1:     //Load Media Containers at the start of the page
            $(".media_box").append("<div id=\"img_01\" class=\"div_img\" ></div>");
            $(".media_box").append("<div id=\"img_02\" class=\"div_img\" ></div>");
            $(".media_box").append("<div id=\"img_03\" class=\"div_img\" ></div>");
            mbhr = .3;
            ihr = 1;
            hp_next();
            break;
        case 0:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_01.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_02.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_03.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 1:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_02.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_03.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_04.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 2:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_03.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_04.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_05.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 3:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_04.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_05.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_06.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 4:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_05.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_06.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_07.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 5:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_06.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_07.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_08.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 6:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_07.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_08.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_09.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 7:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_08.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_09.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_01.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 8:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_09.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_01.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_02.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 9:
            hp_i = 0;
            hp_display();
            break;
    }

}
function Men_Women() {
    switch (hp_i) {
        case -1:     //Load Media Containers at the start of the page
            $(".media_box").append("<div id=\"img_01\" class=\"div_img\" ></div>");
            $(".media_box").append("<div id=\"img_02\" class=\"div_img\" ></div>");
            $(".media_box").append("<div id=\"img_03\" class=\"div_img\" ></div>");
            mbhr = .3;
            ihr = 1;
            hp_next();
            break;
        case 0:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_01.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_02.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_03.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 1:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_01.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_02.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_03.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 2:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_02.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_03.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_04.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 3:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_02.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_03.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_04.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 4:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_03.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_04.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_05.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 5:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_03.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_04.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_05.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 6:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_04.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_05.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_06.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 7:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_04.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_05.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_06.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 8:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_05.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_06.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_07.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 9:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_05.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_06.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_07.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 10:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_06.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_07.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_08.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 11:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_06.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_07.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_08.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 12:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_07.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_08.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_09.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 13:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_07.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_08.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_01.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 14:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_08.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_09.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_01.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 15:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_08.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_01.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/men/m_02.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 16:
            img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_09.jpg";
            img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_01.jpg";
            img_03_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/women/w_02.jpg";
            $("#img_01").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_01_src + ')', 'border-radius': '10px 0px 0px 10px' });
            $("#img_02").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_02_src + ')', 'border-radius': '0px 0px 0px 0px' });
            $("#img_03").css({ 'width': i_w, 'height': i_h, 'background-size': bi_wh, 'background-image': 'url(' + img_03_src + ')', 'border-radius': '0px 10px 10px 0px' });
            $(".div_img").animate({ 'opacity': 1.0, }, 250);
            crossfade_3();
            break;
        case 17:
            hp_i = 0;
            hp_display();
            break;
    }
}
function img_old(){
            switch (hp_i) {
                case -1:     //Load Media Containers at the start of the page
                    $(".media_box").append("<img id=\"img_01\" src=\"\" style=\"display: inline; border-radius: 10px 0px 0px 10px; \" alt=\"\" />");
                    $(".media_box").append("<img id=\"img_02\" src=\"\" style=\"display: inline; border-radius: 0px 10px 10px 0px; \" alt=\"\" />");
                    mbhr = .3;
                    ihr = 1;
                    imr = 0;
                    ilwr = .2661;
                    irwr = .73;
                    hp_next();
                    break;
                case 0:
                    img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_01a.jpg";
                    img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/bin_2/sri_01b.jpg";
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt, 'opacity': 0.001 }).attr('src', img_01_src);
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt, 'opacity': 0.001 }).attr('src', img_02_src).animate({ 'opacity': 1.0, }, 3000, function () { hp_next(); });
                    break;
                case 1:
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt });
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).animate({ 'opacity': 1.0 }, 3000, function () { hp_next(); });
                    break;
                case 2:
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt });
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).animate({ 'opacity': 0.001 }, 3000, function () { hp_next(); });
                    break;
                case 3:
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt });
                    $("#img_02").animate({ 'opacity': 0.001 }, 3000, function () { hp_next(); });
                    break;

                case 4:
                    img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_02a.jpg";
                    img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/bin_2/sri_02b.jpg";
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).attr('src', img_01_src);
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt }).attr('src', img_02_src).animate({ 'opacity': 1.0 }, 3000, function () { hp_next(); });
                    break;
                case 5:
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt });
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).animate({ 'opacity': 1.0 }, 3000, function () { hp_next(); });
                    break;
                case 6:
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt });
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).animate({ 'opacity': 0.001 }, 3000, function () { hp_next(); });
                    break;
                case 7:
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt });
                    $("#img_02").animate({ 'opacity': 0.001 }, 3000, function () { hp_next(); });
                    break;


                case 8:
                    img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_03a.jpg";
                    img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/bin_2/sri_03b.jpg";
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).attr('src', img_01_src);
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt }).attr('src', img_02_src).animate({ 'opacity': 1.0 }, 3000, function () { hp_next(); });
                    break;
                case 9:
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt });
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).animate({ 'opacity': 1.0 }, 3000, function () { hp_next(); });
                    break;
                case 10:
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt });
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).animate({ 'opacity': 0.001 }, 3000, function () { hp_next(); });
                    break;
                case 11:
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt });
                    $("#img_02").animate({ 'opacity': 0.001 }, 3000, function () { hp_next(); });
                    break;


                case 12:
                    img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_04a.jpg";
                    img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/bin_2/sri_04b.jpg";
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).attr('src', img_01_src);
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt }).attr('src', img_02_src).animate({ 'opacity': 1.0 }, 3000, function () { hp_next(); });
                    break;
                case 13:
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt });
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).animate({ 'opacity': 1.0 }, 3000, function () { hp_next(); });
                    break;
                case 14:
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt });
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).animate({ 'opacity': 0.001 }, 3000, function () { hp_next(); });
                    break;
                case 15:
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt });
                    $("#img_02").animate({ 'opacity': 0.001 }, 3000, function () { hp_next(); });
                    break;


                case 16:
                    img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_05a.jpg";
                    img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/bin_2/sri_05b.jpg";
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).attr('src', img_01_src);
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt }).attr('src', img_02_src).animate({ 'opacity': 1.0 }, 3000, function () { hp_next(); });
                    break;
                case 17:
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt });
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).animate({ 'opacity': 1.0 }, 3000, function () { hp_next(); });
                    break;
                case 18:
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt });
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).animate({ 'opacity': 0.001 }, 3000, function () { hp_next(); });
                    break;
                case 19:
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt });
                    $("#img_02").animate({ 'opacity': 0.001 }, 3000, function () { hp_next(); });
                    break;


                case 20:
                    img_01_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/sri_06a.jpg";
                    img_02_src = "http://mycorporateportal.blob.core.windows.net/content/SRI/bin_2/sri_06b.jpg";
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).attr('src', img_01_src);
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt }).attr('src', img_02_src).animate({ 'opacity': 1.0 }, 3000, function () { hp_next(); });
                    break;
                case 21:
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt });
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).animate({ 'opacity': 1.0 }, 3000, function () { hp_next(); });
                    break;
                case 22:
                    $("#img_02").css({ 'width': img_02, 'height': i_h, 'margin-top': imt });
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt }).animate({ 'opacity': 0.001 }, 3000, function () { hp_next(); });
                    break;
                case 23:
                    $("#img_01").css({ 'width': img_01, 'height': i_h, 'margin-top': imt });
                    $("#img_02").animate({ 'opacity': 0.001 }, 3000, function () { hp_next(); });
                    break;
                case 24:
                    hp_i = 0;
                    hp_display();
                    break;
            }
}

var cf_t1;
function crossfade_2() {
    cf_t1 = setTimeout("crossfade_2a()", 4000);
}
function crossfade_2a() {
    clearTimeout(cf_t1);
    $("#img_01").animate({ 'opacity': .001 }, 500);
    $("#img_02").animate({ 'opacity': .001 }, 500, function () { hp_next(); });
}
function crossfade_3() {
    cf_t1 = setTimeout("crossfade_in()", 4000);
}
function crossfade_in() {
    clearTimeout(cf_t1);
    $("#img_01").animate({ 'opacity': .001 }, 500, function () { $("#img_01").css({ 'background-position': 'right top' }).animate({ 'opacity': 1.0 }, 4000, function () { crossfade_out(); }); });
}
function crossfade_out() {
    $("#img_01").animate({ 'opacity': .001 }, 500, function () { $("#img_01").css({ 'background-position': 'left top' }).animate({ 'opacity': 1.0 }, 4000, function () { hp_next(); }); });
}

function hp_next() {
    resize_img();
    if (stop_start == 0) {
        hp_i++;
        hp_display();
    }
}
function hp_display_toggle() {
    if (mb_title == "Click to End Slide Show") {
        mb_title = "Click to Start Slide Show";
        $(".media_box").attr("title", mb_title);
        stop_start = 1;
    }else {
        mb_title = "Click to End Slide Show";
        $(".media_box").attr("title", mb_title);
        stop_start = 0;
        hp_next();
    }
}


//Audio Info
var audio_0 = document.getElementById('audio_0');
var audio_step = -1;
var audio_t1;
var audio_start_time = 0;
var audio_end_time = 100000;
var audio_title;

function audio_index() {
    audio_step++;
    $("#audio_index").val("Audio Index => " + audio_step.toString());
    switch (audio_step) {
        case 0:
            audio_load("Alyssa", "http://mycorporateportal.blob.core.windows.net/content/SRI/audio/Alyssa.ogg", "http://mycorporateportal.blob.core.windows.net/content/SRI/_video/Oceans.jpg", 0, 250, 150, 150);
            break;
        case 1:
            audio_load("Erica", "http://mycorporateportal.blob.core.windows.net/content/SRI/audio/Erica.ogg", "http://mycorporateportal.blob.core.windows.net/content/SRI/_video/Oceans.jpg", 0, 250, 150, 150);
            break;
        case 2:
            audio_load("Holly", "http://mycorporateportal.blob.core.windows.net/content/SRI/audio/Holly.ogg", "http://mycorporateportal.blob.core.windows.net/content/SRI/_video/Oceans.jpg", 0, 250, 150, 150);
            break;
        case 3:
            audio_load("Jason", "http://mycorporateportal.blob.core.windows.net/content/SRI/audio/Jason.ogg", "http://mycorporateportal.blob.core.windows.net/content/SRI/_video/Oceans.jpg", 0, 250, 150, 150);
            break;
        case 4:
            audio_load("Judy", "http://mycorporateportal.blob.core.windows.net/content/SRI/audio/Judy.ogg", "http://mycorporateportal.blob.core.windows.net/content/SRI/_video/Oceans.jpg", 0, 250, 150, 150);
            break;
        case 5:
            audio_load("Maureen", "http://mycorporateportal.blob.core.windows.net/content/SRI/audio/Maureen.ogg", "http://mycorporateportal.blob.core.windows.net/content/SRI/_video/Oceans.jpg", 0, 250, 150, 150);
            break;
        //case 6:
        //    audio_load("Kim Douglas", "http://mycorporateportal.blob.core.windows.net/content/SRI/audio/Kim_Douglas_Interview.ogg", "http://mycorporateportal.blob.core.windows.net/content/SRI/_video/Oceans.jpg", 0, 25, 150, 150);
        //    break;
        case 6:
            audio_step = -1;
            audio_index();
            break;
    }
}
function audio_load(a_title, src_url, photo_url, audio_start_time, audio_end_time, a_w, a_h) {
    audio_title = a_title;
    $("#audio_title").html(audio_title);
    //$("#audio_image").attr({ 'width': (a_w * 1), 'height': (a_h * 1), 'src': photo_url, 'alt': audio_title });
    $("#audio_0").empty();                               // Clear Audio Content
    clearTimeout(audio_t1);

    var src_ogg = src_url.replace(".mp3", ".ogg");
    var src_mp3 = src_url.replace(".ogg", ".mp3");

    var newSrc1 = $("<source>").attr({ 'src': src_ogg, 'type': 'audio/ogg' }).appendTo($("#audio_0"));
    var newSrc2 = $("<source>").attr({ 'src': src_mp3, 'type': 'audio/mpeg' }).appendTo($("#audio_0"));

    $("#audio_0").load();

    audio_0.addEventListener('timeupdate', function () {
        if (audio_0.currentTime >= audio_end_time) { audio_index(); }
    }, false);

    audio_0.addEventListener("loadedmetadata", function () {
        audio_0.currentTime = audio_start_time;
        audio_0.volume = .5;
        audio_0.play();
        audio_timer();
        $("#audio_pause_play").val("Pause Testimonial from " + audio_title);
    }, false);
};
function audio_timer() {
    $("#audio_time").html(audio_0.currentTime.toFixed(0));
    $("#audio_duration").html(" of " + audio_0.duration.toFixed(0));
    audio_t1 = setTimeout("audio_timer()", 500);
}
function audio_stop_start() {
    if (audio_step > -1) {
        if (audio_0.ended || audio_0.paused) {
            audio_0.play();
            audio_timer();
            $("#audio_pause_play").val("Pause Testimonial from " + audio_title);
        } else {
            audio_0.pause();
            clearTimeout(audio_t1);
            $("#audio_pause_play").val("Play Testimonial from " + audio_title);
        }
    }else {
        audio_index();
    }
}






function redirect_countdown() {
    var cd_t1;
    clearTimeout(cd_t1);
    redirect_step++;
    var counter = 25 - redirect_step;
    $("#countdown").html(counter.toString() + " Seconds");
    switch (redirect_step) {
        case 0:     //10
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 1:     //9
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 2:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 3:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 4:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 5:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 6:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 7:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 8:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 9:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 10:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 11:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 12:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 13:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 14:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 15:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 16:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 17:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 18:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 19:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 20:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 21:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 22:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 23:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 24:
            cd_t1 = setTimeout("redirect_countdown()", 1000);
            break;
        case 25:
            window.location = "http://Styl-Rama.com";
            break;
    }
}



