var strLogon = '
';
var bFrontPage = false;
function SetTop()
{
if ( bFrontPage )
{
//strLogon = strLogon.replace( 'word="Log på"', 'word="Log på UngesBoligService.dk"' );
document.body.insertAdjacentHTML( 'beforeEnd' , strLogon );
}
var objElement = document.createElement("DIV");
objElement.className = "brandnouser";
document.body.appendChild( objElement );
var objText = document.location.search;
if ( objText.charAt(0) == "?" )
{
objText = objText.substring( 1 , objText.length );
}
objText = objText.split("&");
var strText = "";
if ( objText.length > 0 )
{
for ( var i = 0 ; i < objText.length ; i++ )
{
if ( objText[ i ].substring( 0 , 3 ) == "c1=" || objText[ i ].substring( 0 , 3 ) == "c2=" )
{
if ( strText != "" )
{
strText += " > > ";
}
strText += objText[ i ].substring( 3 , objText[ i ].length );
}
}
}
var objElement = document.createElement("DIV");
objElement.innerText = unescape( strText );
objElement.className = "breadcrumb";
objElement.id = "breadcrumb";
document.body.appendChild( objElement )
}
function AddToBreadCrumb( strText )
{
var objBreadCrumb = document.getElementById( "breadcrumb" );
if ( objBreadCrumb )
{
objBreadCrumb.innerText += " " + strText;
}
}
AttachToLoad( "SetTop()" );