﻿function toggleDiv(id, flagit) {
    if (flagit == "1") {
        if (document.layers) document.layers['' + id + ''].visibility = "show"
        else if (document.all) document.all['' + id + ''].style.visibility = "visible"
        else if (document.getElementById) document.getElementById('' + id + '').style.visibility = "visible"
    }
    else
        if (flagit == "0") {
        if (document.layers) document.layers['' + id + ''].visibility = "hide"
        else if (document.all) document.all['' + id + ''].style.visibility = "hidden"
        else if (document.getElementById) document.getElementById('' + id + '').style.visibility = "hidden"
    }
}


function FWStripFileFromFilterString(filterString) {
    var start, end;
    var strSrc = "src='";
    var strRes = "";

    start = filterString.indexOf(strSrc);

    if (start != -1) {
        start += strSrc.length;

        end = filterString.indexOf("',", start);
        if (end != -1) {
            strRes = filterString.substring(start, end);
        }
    }

    return strRes;
}
function email(){
    var contact = "siobhan&#64;marketingelves.com";
    var email = "siobhan";
    var emailHost = "marketingelves.com";
    document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost + "><span class='Links'>" + contact + "</span></a>");
}

var fwIsNetscape = navigator.appName == 'Netscape';


fwLoad = new Object;
function FWLoad(image) {
    if (!document.images)
        return null;
    if (!fwLoad[image]) {
        fwLoad[image] = new Image;
        fwLoad[image].src = image;
    }
    return fwLoad[image].src;
}


fwRestore = new Object;
function FWRestore(msg, chain) {
    if (document.images)
        for (var i in fwRestore) {
        var r = fwRestore[i];
        if (r && (!chain || r.chain == chain) && r.msg == msg) {
            r.src = FWLoad(r.old);
            fwRestore[i] = null;
        }
    }
}


function FWLSwap(name, msg, newImg, layer, chain, trigger) {
    var r = fwRestore[name];
    if (document.images && (!r || r.msg < msg)) {
        var uselayers = fwIsNetscape && document.layers && layer != '';
        var hld;
        if (uselayers)
            hld = document.layers[layer].document;
        else
            hld = document;
        var im = hld.getElementById(name);
        if (!im.old) {
            if (usingIEFix && im.runtimeStyle.filter)
                im.old = FWStripFileFromFilterString(im.runtimeStyle.filter);
            else
                im.old = im.src;
        }

        im.msg = msg;
        im.chain = chain;
        im.trigger = trigger;
        if (newImg) im.src = FWLoad(newImg);
        fwRestore[name] = im;
    }
}


function FWCallHit(func, targNum, msg) {
    if (func)
        for (var i in func)
        func[i](targNum, msg);
}
function FW_Hit(frameset, chain, targNum, msg) {
    if (frameset && frameset.length)
        for (var i = 0; i < frameset.length; i++) {
        try {
            FW_Hit(frameset[i].frames, chain, targNum, msg);
            FWCallHit(top["FT_" + chain], targNum, msg);
            FWCallHit(frameset[i].window["FT_" + chain], targNum, msg);
        }
        catch (err) {
        }
    }
    else
        FWCallHit(window["FT_" + chain], targNum, msg);
}


fwHit = new Object;
function FWSlave(frameset, chain, targNum, msg) {
    if (msg == 1) fwHit[chain] = targNum;
    FW_Hit(frameset, chain, targNum, 1);
}

function FWSRestore(frameset, chain) {
    var hit = fwHit[chain];
    if (hit)
        FW_Hit(frameset, chain, hit, 0);
    fwHit[chain] = null;
}

function FWPreload() {
    FWLoad("../Resources/item1aa.gif");
    FWLoad("../Resources/item1a.gif");
    FWLoad("../Resources/item1ba.gif");
    FWLoad("../Resources/item1b.gif");
    FWLoad("../Resources/item1ca.gif");
    FWLoad("../Resources/item1c.gif");
    FWLoad("../Resources/item1da.gif");
    FWLoad("../Resources/item1d.gif");
}
function quotes() {

        var quote = [];
        quote[0] = "Siobhan is a fantastic colleague who is a joy to work with. Her attention to detail and ability to see beyond the obvious elevated her to a special place within the team on every task we have shared.";
        quote[1] = "Great Marketing Person. Good genuine character. Creative and good at what she does.";
        quote[2] = "Siobhan has all the skills needed to get the marketing job done! She has the breadth of vision to understand the concepts, the creativity to develop refreshing solutions, the eye to catch the detail and the management and coordination to ensure that results are delivered.";
        quote[3] = " Siobhan has a sense of humour to ease the flow when the going gets tough. I can happily recommend Siobhan for any marketing task or role that needs vitality, dedication and the highest quality!";
        quote[4] = "Siobhan’s in-depth marketing experience as well as her enthusiasm, commitment and ability to lead were instrumental to the success of the organisation. Siobhan’s strong work ethic, her loyalty, honesty and true professionalism are an asset to any company";
        quote[5] = "Siobhan is a committed, creative and intelligent individual with excellent attention to detail and commercial accumen. She is a good addition to any project and I am happy to recommend her.";

        var maxLength = quote.length;
        var position = Math.floor(Math.random() * maxLength);
        ctl = document.getElementById("quoteWrapper");

        ctl.innerHTML = quote[position];

}
