function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}

function vareside (){	
	var homepage = "http://www.simplythesearch.com/de";
	document.body.style.behavior='url(#default#homepage)';
	document.body.setHomePage( homepage );
}

function vareside2 (){	
	var homepage = "http://www.simplythesearch.com/en";
	document.body.style.behavior='url(#default#homepage)';
	document.body.setHomePage( homepage );
}

function vareside3 (){	
	var homepage = "http://www.simplythesearch.com/upb";
	document.body.style.behavior='url(#default#homepage)';
	document.body.setHomePage( homepage );
}

function switchbg () {
	
	document.getElementById('thesearch').style.backgroundImage="url(none)";
}


//für Enterknopf
function clickButton() {
if (event.keyCode == 13) {

return false;
}
}

function enterfocus (newent) {
ent = newent;
}

function enterPressed(evn) {
	var enterWasPressed = false;
if ((window.event) && (window.event.keyCode == 13)) {
	enterWasPressed = true;

} else if ((evn && evn.keyCode == 13)) {
enterWasPressed = true;
}
if (enterWasPressed) {
    doit(ent);
}

}


	
	
function checker () {	
	document.observe('dom:loaded', function() {
		var changeEffect;
		Sortable.create("sortlist", {tag:'img', overlap:'horizontal',constraint:false,

			onChange: function(item) {
				var list = Sortable.options(item).element;
				$('changeNotification').update(Sortable.serialize(list).escapeHTML());
				if(changeEffect) changeEffect.cancel();
				changeEffect = new Effect.Highlight('changeNotification', {restoreColor:"transparent" });
			},			
			onUpdate: function(list) {
				new Ajax.Request("saveImageOrder.php", {
					method: "post",
					onLoading: function(){$('activityIndicator').show()},
					onLoaded: function(){$('activityIndicator').hide()},
					parameters: { data: Sortable.serialize(list) }
					
					
				});
			}
		});	
	});
}	
	
<!--
		function attachCollapsible(collapsible)
		{
			var div = $(collapsible);
			var heading = div.select('h2')[0];
			var contents = div.select('div')[0];

			// initially hide it
			div.addClassName('closed');
			contents.hide();

			// add an anchor at run time,
			// that way non-js users won't see anchor, but js users will
			// still be able to use their keyboard for it.
			heading.innerHTML = '<a href="#">' + heading.innerHTML + '</a>';
			heading.firstDescendant().onclick = collapsibleOnClick(div, heading, contents);
			
		}

		/* function for generating event handler for anchor etc; returns function that returns bool */
		function collapsibleOnClick(div, heading, contents)
		{
			return function() {
				// clear the height; gets messy otherwise if a blind is already in progress
				// not perfect, but simple and huffy enough, and doesn't seem to be able to get into a bad state
				contents.style.height = '';

				// do we need to go up or down?
				if (div.hasClassName('closed')) {
					new Effect.BlindDown(contents,{duration:0.3, fps:100});
					Element.removeClassName(div,'closed');
					window.setTimeout("window.scrollBy(0,20)", 20);
					window.setTimeout("window.scrollBy(0,20)", 40);
					window.setTimeout("window.scrollBy(0,20)", 60);
					window.setTimeout("window.scrollBy(0,20)", 80);
					window.setTimeout("window.scrollBy(0,20)", 100);
					window.setTimeout("window.scrollBy(0,20)", 120);
					window.setTimeout("window.scrollBy(0,20)", 140);
					window.setTimeout("window.scrollBy(0,20)", 160);
					window.setTimeout("window.scrollBy(0,20)", 180);
					window.setTimeout("window.scrollBy(0,20)", 200);
					window.setTimeout("window.scrollBy(0,20)", 220);
					window.setTimeout("window.scrollBy(0,20)", 240);
					window.setTimeout("window.scrollBy(0,20)", 260);
					window.setTimeout("window.scrollBy(0,20)", 280);
					window.setTimeout("window.scrollBy(0,20)", 300);
					window.setTimeout("window.scrollBy(0,20)", 320);
					window.setTimeout("window.scrollBy(0,1000)", 400);

				} else {
					new Effect.BlindUp(contents,{duration:0.3, fps:100});
					Element.addClassName(div,'closed');
					

				}

				// event has been dealt with.
				return false;
			};
		}
	// -->

