function runFunctions()
{
    setFlipCard();            
    setRoundedCorner();
    changeFontSize();
    setOverallResumeBox();
    setMoreAndLessDetails();
    clipboardEmbedCode();
}

function setFlipCard()
{
    $(".frontFlip").hover(
        function (){
            $(this).parents("div:eq(1)").hide();
            $(this).parents("div:eq(1)").next().fadeIn("fast");
        },
        function (){}
    );

    $(".backCard").hover(
        function (){},
        function (){
            $(this).hide();
            $(this).prev().fadeIn("fast");
        }
    );
}

function setRoundedCorner()
{
    $('h2.title').corner('5px');

    $('div.mainBox').corner('10px');
    $('div.minorBox').corner('10px');

    $('div.designBox').corner('10px');
    $('div.designBoxLast').corner('10px');
    
    $('li.itemList').corner('10px');

    $('div.blockMain').corner('10px');
    $('div.blockMinor').corner('10px');

    $('div.overallBox').corner('10px');
    $('div.overallBoxLast').corner('10px');

    $('div.navBar').corner('10px');
}

function changeFontSize()
{
    $('a#aMore').click(function()
    {
        iDefaultFontSize = iDefaultFontSize + 2;
        $('p.text').css('font-size', iDefaultFontSize + 'px');
        $('p.text').css('line-height', iDefaultFontSize + 5 + 'px');
    });

    $('a#aNormal').click(function()
    {
        iDefaultFontSize = 10;
        $('p.text').css('font-size', iDefaultFontSize + 'px');
        $('p.text').css('line-height', iDefaultFontSize + 5 + 'px');
    });

    $('a#aLess').click(function()
    {
        if (iDefaultFontSize >= 12)
        {
            iDefaultFontSize = iDefaultFontSize - 2;
            $('p.text').css('font-size', iDefaultFontSize + 'px');
            $('p.text').css('line-height', iDefaultFontSize + 5 + 'px');
        }
    });
}

function setOverallResumeBox()
{
    $('div.overallResume h4 ~ ul').hide();

    $('div.overallResume div').hover(
    function()
    {
        $(this).children('ul').slideDown();
    },
    function()
    {
        $(this).children('ul').slideUp();
    });
}

function setMoreAndLessDetails()
{
    $('a.howToUseMoreDetails').click(function()
    {
        $('div#embeddedPageDetails').slideDown();
        $(this).slideUp();
    });

    $('a.howToUseLessDetails').click(function()
    {
        $('div#embeddedPageDetails').slideUp();
        $('a.howToUseMoreDetails').slideDown();
    });
}

function clipboardEmbedCode()
{
    $('input.textEmbed').focus(function()
    {
        if (this.value != this.defaultValue)
            this.value = this.defaultValue;

        this.select();
    });
    
    $('input.textEmbed').change(function()
    {
        this.value = this.defaultValue;
    });
}