try {
    $j(document).ready(function() {
	try {
	    divFooter.style.display = 'block';
	}
	catch (e) { 

	}
	var href = window.location.href;
	if ((window.name.indexOf('f_') >= 0 && href.indexOf('ispopupwin') <= 0) || (top.frames["win_u"])) {
	    $j('head').append('<link rel="stylesheet" href="/templates/general/css/hideborders.css" type="text/css" />');
	    $j("#topmenu").next("div").remove();
	    $j("#container").css("width", "600px");
	}
    });
}
catch(e)
{

}
function OpenWinProfil(cTarget, cTitle) {
    popup = window.open(cTarget, cTitle, ' toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=690, height=480, left=22, top=22 ');
}
function OpenPopupWindow(cTarget, cTitle, cProperties) {
	popup = window.open(cTarget, cTitle, cProperties);
}
function setAllias(aValue) {
    var test = $j('#Alias');
    $j('#Alias')[0].value = aValue;
}

function OpenFavList(additionalQuery) {
    var URL = '/fav/index.html' + additionalQuery;
    var WindowObj = window;
    if (window.opener || parent.window) {
        if (window.opener) WindowObj = window.opener

        if (parent.window.opener) {
            try {
                if (opener.parent.window.opener) {
                    WindowObj = opener.parent.window.opener;
                }
            }
            catch (e) {
                WindowObj = parent.window.opener;
            }
        }

    }
    WindowObj.location.href = URL;
    WindowObj.focus();
}


function preLoadpics(picObj) {
    var preImages = [];

    for (var i = 0; i < picObj.length; i++) {
        preImages[i] = new Image();
        preImages[i].src = picObj[i];
    }
}

function AddtoFav() {
    //GCA
    var url = 'http://www.datingcafe.de';
    var title = 'Dating Cafe - Singlebörse, Singlereisen & Events';

    if (window.sidebar) { // Mozilla Firefox Bookmark
        window.sidebar.addPanel(title, url, "");
       
    }
    else if (window.external) { // IE Favorite
        window.external.AddFavorite(url, title);
        
    }
    else if (window.opera && window.print) { // Opera Hotlist
        var elem = document.createElement('a');
        elem.setAttribute('href', url);
        elem.setAttribute('title', title);
        elem.setAttribute('rel', 'sidebar');
        elem.click();
        
    }
    return;

}



function gotoURL(cUrl)
{
    window.location.href = cUrl;
}


function OpenInMainWindow(URL,additionalQuery) {

    var WindowObj = window;
    try {
        var w = window.opener;
    }
    catch (e) {
        var w = false;
    }
    try {
        var x = parent.opener;
    }
    catch (e) {
        var x = false;
    }
    try {
        var y = parent.window.opener;
    }
    catch (e) {
        var y = false;
    }
    if (w || x) {
        try {
            if (window.opener) WindowObj = window.opener
        }
        catch (e) {
        }
        

        if (parent.window.opener) {
            try {
                if (opener.parent.window.opener) {
                    WindowObj = opener.parent.window.opener;
                }
            }
            catch (e) {
                WindowObj = parent.window.opener;
            }
        }

    }

    WindowObj.location.href = URL + additionalQuery;
    WindowObj.focus();
    top.window.close();
}
try {
    if (document.URL.indexOf('ispopupwin=true') > -1) {
        document.getElementById('navi-footer').style.display = 'none';
    }
}
catch (e)
{ }


