function showLinkToAllNews(targetId, link){
	var elem = $('newsSearchContainer');
	var target = $(targetId);


	var content = elem.innerHTML;
	var content = content.strip();
	if(content){
		target.innerHTML = link;
	}else{
		target.remove();
	}	

}




function fakeLinks(){
    prepareShopLink(); 
    prepareUrlaubsKatalog(); 
}


function prepareShopLink(){
    var linkId = 'lnkNav_9';
    var link = $(linkId);

    if (document.getElementById("shopLink") != null) {
    var linkId2 = 'shopLink';
    var link2 = $(shopLink);
}

    var url  =  "http://shop.naheland.net";

    link.href = '#';
    Event.observe(link, 'click', function(){
        var newwin = window.open(url, "Shop", "width=950,height=600,scrollbars=yes");
    });

if (link2 != null) {
    link2.href = '#';
    Event.observe(link2, 'click', function(){
        var newwin = window.open(url, "Shop", "width=950,height=600,scrollbars=yes");
    });    
    }
}

function prepareUrlaubsKatalog(){
    var linkId = 'quicklink_62';
    var link = $(linkId);
    
    var url = link.href;
    link.href = '#';
    Event.observe(link, 'click', function(){
        var newwin = window.open(url, "Katalog", "width=1000,height=600");
    });    
}




var naheland = new Object();

naheland.init = function(){
    //Event.observe(window, "load", );
}


naheland.showTip = function(id){
    var elem = $('colorLinksText_' + id);
    if(elem!=null){
        var target = $('colorLinkCurrentTip');
        if(target!=null){
            target.innerHTML =  elem.innerHTML;
            target.className = 'colorLinkCurrentTipDisplayed';
            
		    Position.clone(
		        'colorLinks_' + id, 
		        target, 
		        {setLeft: true, setTop: true, setWidth: false, setHeight: false}
		    );

            var top = target.getStyle('top').replace(/px/gi, "");
            top = parseInt(top) + 30;
            
            var left = target.getStyle('left').replace(/px/gi, "");
            left = parseInt(left) - 50;
            
            
            

            target.setStyle(
                {
                    //'position': 'relative',
                    'top': top+'px',
                    'left': left+'px'
                }
            )
            
            
            target.show();
            
            
        }
    }
}

naheland.hideTip = function(id){
	var target = $('colorLinkCurrentTip');
	if(target!=null){
	    target.innerHTML =  '';
	    target.hide();
	}
}



//main
naheland.init();


























 
