﻿function doSharePricePos(document_p, bRightCol_p)
{
    if (bRightCol_p)
    {
        if (-1 != document_p.getElementById('rightColContent').innerHTML.indexOf('staff1'))
        {
            document_p.getElementById('rightColSharePrice').style.top="-173px";
            document_p.getElementById('rightColSharePrice').style.left="35px";
            document_p.getElementById('rightColSharePriceDateTime').style.top="-173px";
            document_p.getElementById('rightColSharePriceDateTime').style.left="4px";		            		
        }  
        else if (-1 != document_p.getElementById('rightColContent').innerHTML.indexOf('staff2'))
        {
            document_p.getElementById('rightColSharePrice').style.top="-88px";
            document_p.getElementById('rightColSharePrice').style.left="15px";
            document_p.getElementById('rightColSharePriceDateTime').style.top="-88px";
            document_p.getElementById('rightColSharePriceDateTime').style.left="-19px";		            		
        }         
        else if (-1 != document_p.getElementById('rightColContent').innerHTML.indexOf('staff3'))
        {
            document_p.getElementById('rightColSharePrice').style.top="-133px";
            document_p.getElementById('rightColSharePrice').style.left="30px";
            document_p.getElementById('rightColSharePriceDateTime').style.top="-131px";
            document_p.getElementById('rightColSharePriceDateTime').style.left="-7px";		            		
        }    
        else if (-1 != document_p.getElementById('rightColContent').innerHTML.indexOf('staff4'))
        {
            document_p.getElementById('rightColSharePrice').style.top="-73px";
            document_p.getElementById('rightColSharePrice').style.left="28px";
            document_p.getElementById('rightColSharePriceDateTime').style.top="-71px";
            document_p.getElementById('rightColSharePriceDateTime').style.left="-5px";	            		
        } 
                     
    }
    else
    {
        if (-1 != document_p.getElementById('leftColContent').innerHTML.indexOf('staff1'))
        {
            document_p.getElementById('leftColSharePrice').style.top="-175px";
            document_p.getElementById('leftColSharePrice').style.left="35px";
            document_p.getElementById('leftColSharePriceDateTime').style.top="-175px";
            document_p.getElementById('leftColSharePriceDateTime').style.left="9px";		            		
        } 
        else if (-1 != document_p.getElementById('leftColContent').innerHTML.indexOf('staff2'))
        {
            document_p.getElementById('leftColSharePrice').style.top="-90px";
            document_p.getElementById('leftColSharePrice').style.left="15px";
            document_p.getElementById('leftColSharePriceDateTime').style.top="-90px";
            document_p.getElementById('leftColSharePriceDateTime').style.left="-14px";		            		
        } 
        else if (-1 != document_p.getElementById('leftColContent').innerHTML.indexOf('staff3'))
        {
            document_p.getElementById('leftColSharePrice').style.top="-135px";
            document_p.getElementById('leftColSharePrice').style.left="30px";
            document_p.getElementById('leftColSharePriceDateTime').style.top="-133px";
            document_p.getElementById('leftColSharePriceDateTime').style.left="-2px";		            		
        }  
        else if (-1 != document_p.getElementById('leftColContent').innerHTML.indexOf('staff4'))
        {
            document_p.getElementById('leftColSharePrice').style.top="-75px";
            document_p.getElementById('leftColSharePrice').style.left="28px";
            document_p.getElementById('leftColSharePriceDateTime').style.top="-73px";
            document_p.getElementById('leftColSharePriceDateTime').style.left="0px";		            		
        }  
                         
    }

}

function getTempSharePrice(document_p, bRightCol_p)
{
    if (bRightCol_p)
    {
        document_p.getElementById('rightColSharePrice').innerText = prices + "p";
        document_p.getElementById('rightColSharePriceDateTime').innerText = "Last updated " + hour + ":" + min;
    }
    else
    {
        document_p.getElementById('leftColSharePrice').innerText = prices + "p";
        document_p.getElementById('leftColSharePriceDateTime').innerText = "Last updated " + hour + ":" + min;  
    }        
}    