﻿function mainWidth()
{
    var iWidth=document.body.style.pixelWidth-125;
    
    if(iWidth<=400)
    {
        iWidth=400;
    } 
    
    return iWidth;   
}   

function mainHeight()
{
//    var iHeight=document.body.clientHeight;        // Copyright window == 40
    var iHeight=document.body.style.pixelHeight;        // Copyright window == 40
    
    if(iHeight<=390)
    {
        iHeight=390;
    }
    
    return iHeight;
} 

function scrollPositionH(div)
{
    return div.parentElement.scrollTop;        
}

function scrollPositionV(div)
{
    return div.parentElement.scrollLeft;        
}

function iconPosition(img)
{
    return (img.parentElement.parentElement.clientHeight-48)/2;
}

function menuWidth(img)
{
//alert(img.parentElement.children.item(0).clientWidth);
//alert(img.parentElement.children.item(1).clientWidth);
//alert(img.parentElement.children.item(2).clientWidth);
//alert(img.parentElement.children.item(3).clientWidth);
//alert(img.parentElement.clientWidth);
    return img.parentElement.children.item(2).clientWidth;        
}

function ie_onactivate() 
{ 
}
