/*
########################################################################
#	Javascript Setup
#	(c) 2007 datenwerk innovationsagentur GmbH
#
########################################################################
*/


var rolloverStateColor = "#DDDDDD";
var normalStateColor = "#FFFFFF";
function rolloverrow(rowObj) {
	rowObj.style.backgroundColor = rolloverStateColor;
}
function rolloutrow(rowObj) {
	rowObj.style.backgroundColor = normalStateColor;
}

function SearchFocused(f) {
	if(f.value == "SUCHE" || f.value == "SEARCH") {
		f.value="";
	}
	return true;
}
function TriggerServiceNavi(x,f) {
	var regexS = "/en/";
	var regex = new RegExp( regexS );
	var tmpURL = window.location.href;
	var results = regex.exec( tmpURL );
	if( results == null ) {
		L = "";
	} else {
		L = "&L=1";
	}    
	if (x == "") {
		return false;
	} else if(x == "731"){
		if( results == null ) {
			window.open("http://www.caimmointernational.com/service/bestellen/", "_blank");
		} else {
			window.open("http://www.caimmointernational.com/en/service/order_service/", "_blank");
		}
	} else if(x == "753"){
		if( results == null ) {
			window.open("http://www.caimmointernational.com/aktie/performancerechner/", "_blank");
		} else {
			window.open("http://www.caimmointernational.com/en/share/performance_calculator/", "_blank");
		}
	} else if(x == "754"){
		if( results == null ) {
			window.open("http://www.caimmointernational.com/aktie/depotmanager/", "_blank");
		} else {
			window.open("http://www.caimmointernational.com/en/share/depotmanager/", "_blank");
		}
	} else {
		document.location.href = "/?id=" + x + L;
		return false;
	}
}
