var date = new Date();
		date.setTime(date.getTime()+(60*1000));
		var expires = "; expires="+date.toGMTString();
		document.cookie="gamtestcookie=enabled"+expires+"; path=/";
		cookieEnabled=(document.cookie.length>2)? true : false
		date.setTime(date.getTime()-(60*1000));
		var expires = "; expires="+date.toGMTString();
		document.cookie="gamtestcookie"+expires+"; path=/";
		if(!cookieEnabled){
			alert('Für die Benutzung unseres Webangebots muss Ihr Browser Cookies akzeptieren')
		}

/* EasyAccess go-Funktion */
function go(){ 
window.location=document.hsbcnetzwerk.hsbcnetzwerklinks.options[document.hsbcnetzwerk.hsbcnetzwerklinks.selectedIndex].value
}

sfHover = function() {
	var sfEls = document.getElementById("easyaccessliste").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"), "");
		}
	}
}

/* PopUp-Funktion Content/ Marginal-Bereich*/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
settings='width='+w+',height='+h+',top=100,left=100,scrollbars='+scroll+',location=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}

/* AddtoFavourite-Funktion Content/ Marginal-Bereich*/
function addToFav(){

var ver = navigator.appName
var num = parseInt(navigator.appVersion)
var url = "services.assetmanagement.hsbc.ch";
var who = "Global Asset Management in der Schweiz - Fondscenter";

if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
	window.external.AddFavorite(url,who);
}else{
	alert("Um diese Seite Ihren Favoriten hinzuzufügen drücken Sie bitte CTRL+D");
}

}

// Fonds-Suche Formular
function submitSearchForm( src ) {
	form = document.forms[0];
	form.dispatch.value = src;
	form.submit();
}

// Datumsfunktion Copyright
var jetzt = new Date();
var Jahr = jetzt.getFullYear();
function copyrightdatum(){
document.write(Jahr);
}

//Tooltip
window.addEvent('domready', function(){
	var divs = $$(['docs', 'js', 'html', 'css']);
	divs.each(function(div){
		var link = $(div.id + 'code');
		div.setStyle('display', 'none');
		link.addEvent('click', function(e){
			e = new Event(e);
			divs.each(function(other){
				if (other != div) other.setStyle('display', 'none');
			});
			div.setStyle('display', (div.getStyle('display') == 'block') ? 'none' : 'block');
			e.stop();
		});
	});
});

window.addEvent('domready', function(){
		var Tips1 = new Tips($$('.Tips1'), {
			initialize:function(){
				this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
			},
			onShow: function(toolTip) {
				this.fx.start(1);
			},
			onHide: function(toolTip) {
				this.fx.start(0);
			}
		});
			var Tips2 = new Tips($$('.Tips2'), {
			initialize:function(){
				this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
			},
			onShow: function(toolTip) {
				this.fx.start(1);
			},
			onHide: function(toolTip) {
				this.fx.start(0);
			}
		});
	});

//Glossar
window.addEvent('domready', function(){
			var accordion = new Accordion('h3.atStart', 'p.atStart', {
				start:'first-open',
				alwaysHide: true,
				opacity: false,
				onActive: function(toggler, element){
					toggler.setStyle('color', '#333333');
				},
				
				onBackground: function(toggler, element){
					toggler.setStyle('color', '#333333');
				}
			}, $('accordion'));
		});