function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=800,height=600,scrollbars=yes,resizable=yes');
return false;
}//-->





<!--//--><![CDATA[//><!--
// required for suckerfish nav
var lastNum=0
sfHover = function() {
	if (!(document.getElementById("newNav")))
	   return false;

	var sfEls = document.getElementById("newNav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			/*if(lastNum!=0) this.timer.clearTimeout(lastNum);
			//this.timer = new Timer(this);
			lastNum=this.timer.setTimeout("out",550);*/
			//this.timer.clearTimeout(rtn);
		}
		/*sfEls[i].out=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}*/

	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
//if (window.addEventListener) window.addEventListener("load", sfHover, false);

//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject() {
    if (window.XMLHttpRequest)
        return new XMLHttpRequest();
    else if(window.ActiveXObject)
        return new ActiveXObject("Microsoft.XMLHTTP");
    else
        alert("Your Browser version does not support the requested function");
}   //function getXmlHttpRequestObject() 


//Our XmlHttpRequest object to get the auto suggest
var searchReq = getXmlHttpRequestObject();

//Called from keyup on the search textbox.
//Starts the AJAX request.
function clearDrpDwn(objNm){
    var bx=document.getElementById('search_suggest');

    bx.style.borderStyle = "";
    bx.style.borderWidth = "";
    bx.style.borderColor = "";
    bx.style.padding = "";
    bx.style.background="transparent";
    bx.style.display ="none";
}   //function clearDrpDwn(objNm)

function clrBkofSuggest(){
	document.getElementById("curntRw").value=-1;
	var acListTotal=document.getElementById("rwCnt").value;
	var ts="";
	for(i=0;i<acListTotal;i++) {
	 if(document.getElementById("ajx"+i).className=="suggest_link_over"){
		 document.getElementById("ajx"+i).className="suggest_link"; 
		 break;
	 }  //if(document.getElementById("ajx"+i).className="suggest_link")
	}  //for(var i=0;i<=acListTotal;i++)
} //function clrBkofSuggest()

function goToURL(vl){
   var prm=escape(vl);
   window.location=hstName+'/citySearch.html?___p=1&string='+prm;
}

function cntrlArrw(txt,evt){
  if(document.getElementById(txt).length<3) return false;

  var charCode = (document.getElementById(txt).which) ? document.getElementById(txt).which : evt.keyCode;
  var acListCurrent=parseInt(document.getElementById("curntRw").value);

  if(charCode==40 || charCode==38){ // if arrow down or arrow up keycodes
    var acListTotal=document.getElementById("rwCnt").value;
    if(charCode == 38){ // keyUp
        if(acListCurrent == 0 || acListCurrent == -1){
          acListCurrent = acListTotal;
        }
        else {
          acListCurrent--;
        }
    }  //if(charCode == 38){ // keyUp
    else {// keyDown
       if(acListCurrent == acListTotal){
          acListCurrent = 0;
       }
       else {
          acListCurrent++;
       } 
    }  //else {// keyDown

    document.getElementById("curntRw").value=acListCurrent;
    document.getElementById("ajx"+acListCurrent).className = 'suggest_link_over';
  }  //if(charCode==40 || charCode==38){
  else if(charCode==13){ //Enter key selected
    if(acListCurrent<0) acListCurrent=0;

    try 
    {
        var vl=document.getElementById("ajx"+acListCurrent).title;
        setSearch(vl);
    }
    catch(err) 
    {
        goToURL(document.getElementById("sCity").value);
    }
  }  //else if(charCode==13)
}  //function cntrlArrw(txt,evt)


function searchSuggest(ProcessFl, txt, evt) {

    if (searchReq.readyState == 4 || searchReq.readyState == 0) {
     var str = escape(document.getElementById(txt).value);
	 var bx=document.getElementById('search_suggest');
	 if (str.length>2){
        	searchReq.open("GET", ProcessFl+str, true);
        	searchReq.onreadystatechange = handleSearchSuggest; 
        	searchReq.send(null);
	}	//if (str.length>2)
	else {
		document.getElementById('search_suggest').innerHTML = '';
		if(bx.style.borderStyle!=null || bx.style.borderStyle!=""){
		    clearDrpDwn('search_suggest');
		}
	}
    }	//if (searchReq.readyState == 4 || searchReq.readyState == 0)       
    if (str.length>2){
        cntrlArrw(txt,evt);
    }
}   //function searchSuggest()


//Called when the AJAX response is returned.
function handleSearchSuggest() {
    if (searchReq.readyState == 4) {
        var ss = document.getElementById('search_suggest')
        ss.innerHTML = '';
        var str = searchReq.responseText.split("\n");
        var dsply="";

	if(str.length>1){
            for(i=0; i < str.length - 1; i++) {
                //Build our element string.  This is cleaner using the DOM, but
                //IE doesn't support dynamically added attributes.
                var suggest ='<div id="ajx'+i+'" onmouseover="javascript:suggestOver(this);" ';

                var dstr=str[i].split("*");
                dsply=dstr[0];
                clUrl=dstr[1];
                suggest += 'onmouseout="javascript:suggestOut(this);" ';
                suggest += 'onclick="javascript:setSearch(this.title);" ';
                //suggest += 'onclick="javascript:setSearch(this.innerHTML);" ';
                suggest += 'class="suggest_link" title="'+clUrl+'">' + dsply + '</div>';
                //suggest += 'class="suggest_link">' + str[i] + '</div>';
                ss.innerHTML += suggest;
            }	//for(i=0; i < str.length - 1; i++)

	     ss.style.borderStyle = "solid";
	     ss.style.borderWidth = "1px";
	     ss.style.borderColor = "#548ba8";
	     ss.style.display = "block";

             //Build input boxes for keyboard navigation
             document.getElementById('rwCnt').value=i;
	}	//if(str.length>1)
    }	//if (searchReq.readyState == 4)
}   //function handleSearchSuggest()

//Mouse over function
function suggestOver(div_value) {
    clrBkofSuggest();
    div_value.className = 'suggest_link_over';
    str=div_value.id;
    document.getElementById("curntRw").value=str.substring(3,str.length);
}
 
//Mouse out function
function suggestOut(div_value) {
    div_value.className = 'suggest_link';
}

//Click function
function setSearch(value) {
    document.getElementById('sCity').value = value;
    document.getElementById('search_suggest').style.display ="none";
    clearDrpDwn('search_suggest');

    //Go to page
    window.location=hstName+'/'+value+'/';
}	//function setSearch(value)

//Pass an object name [nm] to remove current text given by vl
function clearInputBx(nm, vl){
	var targetElement = document.getElementById(nm);
	if (targetElement.value=="") {
		if(nm=="password")
	   		targetElement.type ="text";
		targetElement.value=vl;
	}	//if (targetElement.value=="")

	if (targetElement.value==vl) {
		if(nm=="password")
	   		targetElement.type ="password";
		targetElement.value="";
	}	//if (targetElement.value==vl)
	targetElement.focus();
	targetElement.select();
}	//function chngDef(nm, vl)


/*
// The constructor should be called with
// the parent object (optional, defaults to window).

function Timer(){
    this.obj = (arguments.length)?arguments[0]:window;
//alert("this is a test "+arguments[0]);
    return this;
}

// The set functions should be called with:
// - The name of the object method (as a string) (required)
// - The millisecond delay (required)
// - Any number of extra arguments, which will all be
//   passed to the method when it is evaluated.

Timer.prototype.setInterval = function(func, msec){
    var i = Timer.getNew();
    var t = Timer.buildCall(this.obj, i, arguments);
    Timer.set[i].timer = window.setInterval(t,msec);
    return i;
}
Timer.prototype.setTimeout = function(func, msec){
    var i = Timer.getNew();
    Timer.buildCall(this.obj, i, arguments);
    Timer.set[i].timer = window.setTimeout("Timer.callOnce("+i+");",msec);
    return i;
}

// The clear functions should be called with
// the return value from the equivalent set function.

Timer.prototype.clearInterval = function(i){
    if(!Timer.set[i]) return;
    window.clearInterval(Timer.set[i].timer);
    Timer.set[i] = null;
}
Timer.prototype.clearTimeout = function(i){
    if(!Timer.set[i]) return;
//alert("clear time out "+Timer.set[i]);
	
    window.clearTimeout(Timer.set[i].timer);
    Timer.set[i] = null;
}

// Private data

Timer.set = new Array();
Timer.buildCall = function(obj, i, args){
    var t = "";
    Timer.set[i] = new Array();
    if(obj != window){
        Timer.set[i].obj = obj;
        t = "Timer.set["+i+"].obj.";
    }

    t += args[0]+"(";
    if(args.length > 2){
        Timer.set[i][0] = args[2];
        t += "Timer.set["+i+"][0]";
        for(var j=1; (j+2)<args.length; j++){
            Timer.set[i][j] = args[j+2];
            t += ", Timer.set["+i+"]["+j+"]";
    }}
    t += ");";
    Timer.set[i].call = t;
    return t;
}
Timer.callOnce = function(i){
    if(!Timer.set[i]) return;
    eval(Timer.set[i].call);
    Timer.set[i] = null;
}
Timer.getNew = function(){
    var i = 0;
    while(Timer.set[i]) i++;
    return i;
}

/*********************************************** /
/**  * @param {String} $selektor CSS-Selektor des Elements, welches die ungeordnete Navigationsliste umgibt  * @param {String} $navlistType optionaler Listentype z.B. ol (default = ul) * / 
function DickerFisch($selektor,$navlistType) {
	var $navlistType = $navlistType || 'ul';     
	_DF_obj = this;     
	var _waitingnavclass = 'DF_waitlis', _activnavclass = 'DF_activelis';     
	_DF_obj.$navstatus = function(_eventobj,$action){
		_DF_obj._eventobj = _eventobj;         
		switch($action){
			case "hide":
			  $($selektor+' li.'+_waitingnavclass).removeClass(_waitingnavclass);             
			  if( _eventobj.className.indexOf(_activnavclass) != -1){  
			      _DF_NavTimeID = window.setTimeout('_DF_obj._hide(_DF_obj._eventobj)',_DF_navtimer);             
			  }            
			  break;         
			case "show":           
			  if(typeof $($selektor+' li.'+_activnavclass).get(0) == "undefined" || _eventobj.className.indexOf(_activnavclass) != "-1") {              
			    _DF_obj.$show(_eventobj);                 
				$(_eventobj).addClass(_activnavclass);                 
				window.clearTimeout(_DF_NavTimeID);             
			  } 
			  else {                 
			    $(_eventobj).addClass(_waitingnavclass);             
			  }         
			  break;         
			};             
		};         
		_DF_obj.$show = function(_eventobj){
			$(_eventobj).addClass('over').ancestors("li").addClass('over');     
		};     
		_DF_obj._hide = function(_eventobj){
			$($selektor+' li.over').removeClass('over');                 
			$($selektor+' li.'+_activnavclass).removeClass(_activnavclass);        
			if(_eventobj.className.indexOf(_waitingnavclass) != -1) {             
			  _DF_obj.$navstatus($($selektor+' li.'+_waitingnavclass).get(0),"show");         
			}    
		};              
		
		//Init     
		$($selektor+" li").filter("["+$navlistType+"]").each(function(i){
		  $(this).hover( function() {
				_DF_obj.$navstatus(this,'show');        
		  }, function() {
			  _DF_obj.$navstatus(this,'hide');         
		  } );     
		});     
		$($selektor+" li "+$navlistType+" a").focus( function() {         
          $(this).ancestors("li").addClass('navfocus');     
		} );     
		$($selektor+" li "+$navlistType+" a").blur( function() {         
          $(this).ancestors("li").removeClass('navfocus');     
		} );     
		$($selektor+">"+$navlistType).addClass("navfxenabled"); 
		};
/*********************************************** /
*/
//--><!]]>
