var debug = false; 

function trackSocialbookmark(service) {
	//check values
	if (debug) debugMsg(service+" : "+document.title);
	
	if (_tag) {
		trackWebtrends({ 
			'WT.cusBookmarkService' : service,
			'WT.cusBookmarkPage' : document.title
		});
	}		
}

function trackAccordionOpen (title, page) {
	var keyparam = "";
	if (page == 'international_availability') {
		keyparam = "WT.cusIntAvailibilyOpen";
		title = title.replace(/\*/g, "");
		pixel = { 
			"WT.cusIntAvailibilyOpen" : title
		}
	}
	
	if (debug) {
		debugMsg(keyparam+" : "+title);
	}
	
	if (keyparam != "" && title != "") {
		trackWebtrends(pixel);
	}
}

function trackInternationalLink (title, url) {
	if (debug) debugMsg(title+" : "+url);
	
	title = title.replace(/\*/g, "");
	if (_tag) {
		trackWebtrends({ 
			'WT.cusInternationalLink' : title+" / "+url
		});
	}	
}

function trackAnimationClick (title) {
	if (debug) debugMsg(_tag.WT.cg_n+" : "+title);
	
	if (_tag) {
		trackWebtrends({ 
			'WT.cusAnimationMore' : _tag.WT.cg_n+" / "+title
		});
	}	
}

function trackPatientBrochureChapter (chapter) {
	if (debug) debugMsg(chapter);
	
	if (_tag) {
		trackWebtrends({ 
			'WT.cusPatientBrochureChapter' : chapter
		});
	}	
}

function trackPatientBrochureZoom (page) {
	if (debug) debugMsg("Page: "+page);
	
	if (_tag) {
		trackWebtrends({ 
			'WT.cusPatientBrochureZoom' : page
		});
	}	
}

function trackFontsize (size) {
	if (debug) debugMsg("Fontsize");
	
	if (_tag) {
		trackWebtrends({ 
			'WT.cusFontsize' : 1
		});
	}	
}

function trackBlackandwhite() {
	if (debug) debugMsg("Blackandwhite");
	
	if (_tag) {
		trackWebtrends({ 
			'WT.cusBlackandwhite' : 1
		});
	}	
}

function trackBookmark(text) {
	if (debug) debugMsg("Bookmark: "+text);
	
	if (_tag) {
		trackWebtrends({ 
			'WT.cusBookmark' : text
		});
	}	

}

function trackRiskCalculator(modus) {
	if (debug) debugMsg("Risk Calculator: "+modus);
	
	if (_tag) {
		trackWebtrends({ 
			'WT.cusRiskCalculator' : modus
		});
	}	

}

function debugMsg(txt) {
	alert (txt);
}