﻿// JScript File - FashionList Menu

function tabs2(id)
{
    if (document.getElementById('img' + id).src.indexOf('over') == -1)
       {
       document.getElementById('img1').src = "images/tabs/onthelist-all.png";
       document.getElementById('img2').src = "images/tabs/onthelist-women.png";
       document.getElementById('img3').src = "images/tabs/onthelist-men.png";
       document.getElementById('img4').src = "images/tabs/onthelist-acc.png";
       document.getElementById('img5').src = "images/tabs/onthelist-health.png";
       document.getElementById('img6').src = "images/tabs/onthelist-out.png";
       document.getElementById('img7').src = "images/tabs/onthelist-sugg.png";
       //document.getElementById('img8').src = "images/tabs/onthelist-cfda.png";
       document.getElementById('img9').src = "images/tabs/onthelist-img.png";
       document.getElementById('ctl00_ContentPlaceHolder1_div1').style.display = "none";
       document.getElementById('ctl00_ContentPlaceHolder1_div2').style.display = "none";
       document.getElementById('ctl00_ContentPlaceHolder1_div3').style.display = "none";
       document.getElementById('ctl00_ContentPlaceHolder1_div4').style.display = "none";
       document.getElementById('ctl00_ContentPlaceHolder1_div5').style.display = "none";
       document.getElementById('ctl00_ContentPlaceHolder1_div6').style.display = "none";
       document.getElementById('ctl00_ContentPlaceHolder1_div7').style.display = "none";
       //document.getElementById('ctl00_ContentPlaceHolder1_div8').style.display = "none";
       document.getElementById('ctl00_ContentPlaceHolder1_div9').style.display = "none";
       document.getElementById('ctl00_ContentPlaceHolder1_div' + id).style.display = "block";
        if (id == 1)
            document.getElementById('img' + id).src = "images/tabs/onthelist-all-over.png";
        if (id == 2)
            document.getElementById('img' + id).src = "images/tabs/onthelist-women-over.png";
        if (id == 3)
            document.getElementById('img' + id).src = "images/tabs/onthelist-men-over.png";
        if (id == 4)
            document.getElementById('img' + id).src = "images/tabs/onthelist-acc-over.png";
        if (id == 5)
            document.getElementById('img' + id).src = "images/tabs/onthelist-health-over.png";
        if (id == 6)
            document.getElementById('img' + id).src = "images/tabs/onthelist-out-over.png";
        if (id == 7)
            document.getElementById('img' + id).src = "images/tabs/onthelist-sugg-over.png";
        if (id == 8)
            document.getElementById('img' + id).src = "images/tabs/onthelist-cfda-over.png";
        if (id == 9)
            document.getElementById('img' + id).src = "images/tabs/onthelist-img-over.png";
        
     }
}
function tabs(id)
{
    if (document.getElementById('img' + id).src.indexOf('over') == -1)
       {
       document.getElementById('img1').src = "images/tabs/intheknow-allnews.png";
       document.getElementById('img2').src = "images/tabs/intheknow-women.png";
       document.getElementById('img3').src = "images/tabs/intheknow-men.png";
       document.getElementById('img4').src = "images/tabs/intheknow-acc.png";
       document.getElementById('img5').src = "images/tabs/intheknow-health.png";
       document.getElementById('img6').src = "images/tabs/intheknow-out.png";
       document.getElementById('div1').style.display = "none";
       document.getElementById('div2').style.display = "none";
       document.getElementById('div3').style.display = "none";
       document.getElementById('div4').style.display = "none";
       document.getElementById('div5').style.display = "none";
       document.getElementById('div6').style.display = "none";
       document.getElementById('div' + id).style.display = "block";
       if (id == 1)
            document.getElementById('img' + id).src = "images/tabs/intheknow-allnews-over.png";
        if (id == 2)
            document.getElementById('img' + id).src = "images/tabs/intheknow-women-over.png";
        if (id == 3)
            document.getElementById('img' + id).src = "images/tabs/intheknow-men-over.png";
        if (id == 4)
            document.getElementById('img' + id).src = "images/tabs/intheknow-acc-over.png";
        if (id == 5)
            document.getElementById('img' + id).src = "images/tabs/intheknow-health-over.png";
        if (id == 6)
            document.getElementById('img' + id).src = "images/tabs/intheknow-out-over.png";
     }
        
}
function tabs1(id)
{
    if (document.getElementById('img' + id).src.indexOf('over') == -1)
       {
       document.getElementById('img1').src = "images/tabs/default-what.png";
       document.getElementById('img2').src = "images/tabs/default-why.png";
       document.getElementById('img3').src = "images/tabs/default-who.png";
       document.getElementById('div1').style.display = "none";
       document.getElementById('div2').style.display = "none";
       document.getElementById('div3').style.display = "none";
       document.getElementById('div' + id).style.display = "block";
       if (id == 1)
            document.getElementById('img' + id).src = "images/tabs/default-what-over.png";
        if (id == 2)
            document.getElementById('img' + id).src = "images/tabs/default-why-over.png";
        if (id == 3)
            document.getElementById('img' + id).src = "images/tabs/default-who-over.png";
     }
        
}
function getPageSizeWithScroll()
{     
if (window.innerHeight && window.scrollMaxY) 
{
// Firefox         
yWithScroll = window.innerHeight + window.scrollMaxY;         
xWithScroll = window.innerWidth + window.scrollMaxX;     
} 
else if (document.body.scrollHeight > document.body.offsetHeight)
{ 
// all but Explorer Mac         
yWithScroll = document.body.scrollHeight;         
xWithScroll = document.body.scrollWidth;     
}
else 
{ 
// works in Explorer 6 Strict, Mozilla (not FF) and Safari         
yWithScroll = document.body.offsetHeight;         
xWithScroll = document.body.offsetWidth;       
}
//alert(yWithScroll);
if (yWithScroll == 0)
{
    document.getElementById('divbody').style.height = '800px';
   // alert(document.getElementById('divbody').style.height);
    }
document.getElementById('gray1').style.height = (yWithScroll + 5) + 'px';
document.getElementById('gray2').style.height = (yWithScroll + 5) + 'px';
} 

<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 28;
// -----------------------------------------------------------------------------
// -->
