function footerFix()
{
    baskiBoyu = parseInt(document.body.offsetHeight);
    divBoyu = document.getElementById('alt').offsetHeight;
    divUst = document.getElementById('ust').offsetHeight;
    divOrta = document.getElementById('orta').offsetHeight;
    Height = parseInt(divUst + divOrta + divBoyu);

    var sayfaEni = 0, sayfaBoyu = 0;
    if (typeof (window.innerWidth) == 'number')
    {
        sayfaBoyu = window.innerHeight;
    } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
    {
        sayfaBoyu = document.documentElement.clientHeight;
    } else if (document.body && (document.body.clientWidth || document.body.clientHeight))
    {
        sayfaBoyu = document.body.clientHeight;
    }

    if (sayfaBoyu > Height)
    {
        document.getElementById('alt').className = 'altNormal';
    }
    else
    {
        document.getElementById('alt').className = 'altNormal';
    }

    //alert(Height +"/"+ sayfaBoyu +"/"+ baskiBoyu);	


    window.onresize = function()
    {
        footerFix();
    }

    //alert(sayfaBoyu);

}

function resimleriLinkle()
{
    var arrBaslik = new Array('nazenin', 'jasmin', 'private_lives', 'caressa', 'cornelia', 'liman_2', 'gonca', 'lady_edith', 'forty_love', '310', '312', '114', 'yachts00', '484','485', '119');
    var resim = document.getElementsByTagName('img');
    for (i = 0; i < resim.length; i++)
    {
        for (j = 0; j < arrBaslik.length; j++)
        {
            if (resim[i].src.indexOf(arrBaslik[j]) != -1 && resim[i].src.indexOf('/icerik/') != -1)
            {
                resim[i].onclick = function()
                {
                    var yeniResimAdresi = this.src.replace('/icerik/', '/icerik/buyuk/');
                    var replace1 = PageId.replace("L", ""); //window.location.pathname.substring(1, window.location.pathname.indexOf(".aspx"));
                    resim2 = yeniResimAdresi.replace(this.title, replace1).replace('.gif', '.jpg');
                    openPictureWindow(resim2, 'RMK Yachts');
                    return true;
                };
                resim[i].style.cursor = 'pointer';
                resim[i].title = arrBaslik[j];
            };

        };
    }
}


/* ---------------------------------------------------------------------------------------- */

// Galeri Resim Start

function GaleriResimAc(resimYolu)
{
    //	var arrBaslik = new Array('nazenin','jasmin','private_lives','caressa','cornelia','liman_2','gonca','lady_edith','forty_love','310','312','114','yachts00','484','119');


    if (resimYolu.indexOf("/UserFiles/yachts/") > -1)
    {

        var rsmYolu = resimYolu.replace("small", "big");

        if (rsmYolu.indexOf("_k.") > -1)
        {
            rsmYolu = rsmYolu.replace("_k", "_b");
        }
        openPictureWindow(rsmYolu, 'RMK Yachts');
    }
}

// Galeri Resim End


function Ara(lang)
{
    if (lang == 'tr')
        window.location = '/826.aspx?keyword=' + document.getElementById('arama').value;
    if (lang == 'en')
        window.location = '/827.aspx?keyword=' + document.getElementById('arama').value;
}