					// global var for i.e.
					var _tabLock = 0;
	 				
					function checkURL() {
						
						if (_tabLock != 0)
							return;
							
						var hash = window.location.hash.match(/tabId=\d+/);
						
						// only for IE
						if (hash == 0 && /MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
							hash = window.frames["tab_nav_iframe"].window.location.search.match(/tabId=\d+/);
						} 	
						hash = String(hash);
						hash = hash.substr(6);
						
						if (hash != null && hash.length > 0) {
							if (parseInt(_id)!=parseInt(hash)) {
								gotoTab(hash);
							}	
						}							
					}
					
					function gotoTab(id, skip) {
						document.body.style.cursor='wait';
						
						// only for IE
						if (/MSIE (\d+\.\d+);/.test(navigator.userAgent) && !skip)
								createHistoryEntry( id );
	
						// navtabs						
						//jQuery('li.tabnav-active').hide();	
						//jQuery('li.tabnav').show();
						jQuery('#tabnav-active' + _id).hide();	
						jQuery('#tabnav' + _id).show();	
						jQuery('#tabnav-active' + id).show();	
						jQuery('#tabnav' + id).hide();
						
						// content
						//jQuery('div.tab-content:visible').hide();
						jQuery('#tab-content' + _id).hide();
						jQuery('#tab-content' + id).show();
	
						// right column			
						//jQuery('div.tab-right:visible').hide();
						jQuery('#tab-right' + _id).hide();
						jQuery('#tab-right' + id).show();
						
						// remember the id
						_id = id;
						
						// set document title
						// get the tab label from a attribute 'title' 
						var tab_title, tab_label;
						if ($('tabnav' + id)) {
							tab_name = $('tabnav' + id).readAttribute('title');
							tab_title = $('tabnav' + id).readAttribute('label');
							
							// store it temporary in a hidden field, than ectract the text only
							// CharmNT 3447 
							jQuery('#tabNavBrowserTitle').html(tab_title);
							document.title = jQuery('#tabNavBrowserTitle').text();	
						}	
						
						//reset mouse pointer
						document.body.style.cursor = 'default';
						if (skip) return;
							
						// submit to omniture
						omnitureTabTracking( id, tab_name );
										
					}
		
					function togglePlusCon( id ) {
					
						// toggle the icon (I.E. issue)
						var _img = id.getElementsByTagName('img')[0];				
						if ($(_img).hasClassName('plusCon_plus')) {
							// open +Con
							// hide all other +Container
							var e = $$('div.plusCon_minus');
										e.each(function(index, item ) {
							//	 		togglePlusCon( item );
							});						
							$(_img).removeClassName('plusCon_plus');
							$(_img).addClassName('plusCon_minus');
							$(id).addClassName('plusCon_open');
						}
						else {
							// close +Con 
							$(_img).removeClassName('plusCon_minus');	 	
							$(_img).addClassName('plusCon_plus');	
							$(id).removeClassName('plusCon_open'); 	
												
						}
						
						var pCB = $(id).getElementsBySelector('div.plusConBody');
						for (var i = 0; i < pCB.length; i++) {
							
								var el = pCB[i];
								jQuery(pCB[i]).slideToggle( 'fast', function() {
								//jQuery(pCB[i]).toggle( 1, function() {
								
									// define height of the +Container
									// min-heigth is a value, given by G02/G03.jsp
									if (jQuery(el).css('min-height')) {														
										if ($(el).getHeight() <=  jQuery(el).css('min-height').replace(/px/, '')) {
										
											var img = $(el).getElementsBySelector('div.image-wrapper-rechts');
											for (var j = 0; j < img.length; j++) {
												var image = img[j];
												jQuery(el).css('height', $(image).getHeight());
											}
											var img = $(el).getElementsBySelector('div.image-wrapper');
											for (var j = 0; j < img.length; j++) {
												var image = img[j];
												jQuery(el).css('height', $(image).getHeight());
											}
											
										} else {
											jQuery(el).css('height', $(el).getHeight());
										}
									}	 				  					 		
 							});					
						}
					}
							
							
					// open Container if the URL param is set
					jQuery(document).ready(function() {
						
							var contId = '';
							if(window.location.href.match(/_nc_Cont/)) {
								contId = window.location.href;
								contId = contId.substring( contId.lastIndexOf("_nc_Cont") + 9, contId.length); 
								if(!window.location.search) {
									if (contId.match(/~a_/))
										contId = contId.substring(2, contId.indexOf("~a_"));
									if (contId.match(/htm$/))
										contId = contId.substring(2, contId.indexOf(".htm"));
								} else {
									if (contId.match(/&/))
										contId = contId.substring(0, contId.indexOf("&"));
								}	 	
							} 	
							if(contId != null && contId.length > 0 ) {
								// truc the id to 15 chars
								if (contId.length > 15)
									contId = contId.substring(0, 15);
								openPlusCon(contId);
							} 
					});		
							
					function openPlusCon( id ) {
						if ($(id))
							togglePlusCon( $(id) );
					}
								
					function omnitureTabTracking( id, name )	{
												
						var smSendOmnitureRequest = 0;
						name = name.replace (/^\s+/, "").replace (/\s+$/, "");
						
						// Page URL: 
						if (s.prop12) 
						{
							// Get the page URL as it is in the browser: 
							s.prop12 = window.location.href;
							smSendOmnitureRequest = 1;
						}
						
						//short URL (included pageId)
						if(s.prop9)
						{
							var s_prop9_part1 = "";
							var s_prop9_part2 = "";
							var taString = "&ta=";
							var taStartPosition = s.prop9.indexOf(taString);
							if(0<taStartPosition) {
								s_prop9_part1 = s.prop9.substring(0, taStartPosition);
								var taEndPosition = s.prop9.indexOf(";", taStartPosition);
								if(0<taEndPosition) {
									s_prop9_part2 = s.prop9.substring(taEndPosition);
								}
								s.prop9 = s_prop9_part1 + taString + id + s_prop9_part2;
							} else {
								s.prop9 = s.prop9 + taString + id;
							}
							smSendOmnitureRequest = 1;
						}
						
						// Page Title for omniture (100 chars length): 
						if (s.prop3) {
							var s_prop3Helper = smOriginalOmniturePageTitle + " " + name;
							if(100 < s_prop3Helper.length) {
								s_prop3Helper = s_prop3Helper.substring(0, 100);
							}
							s.prop3 = s_prop3Helper;
						}
						
						
						// Omniture page name
						if (s.pageName) {
							var sPageNamePart2Start = s.pageName.indexOf("|");
							if(0 <= sPageNamePart2Start) {
								sPageNamePart2Start = s.pageName.indexOf("|", 1 + sPageNamePart2Start);
							}
							if(0 <= sPageNamePart2Start) {
								var sPageNamePart3Start = s.pageName.lastIndexOf("|");
								if(sPageNamePart2Start < sPageNamePart3Start) {
									var sPageNamePart1 = "";
									var sPageNamePart2 = "";
									var sPageNamePart3 = "";
									sPageNamePart2 = s.pageName.substring(sPageNamePart2Start, sPageNamePart3Start) + "|";
									sPageNamePart1 = "|" + s.prop3;
									sPageNamePart3 = s.prop9;
									
									var pageNameLength = sPageNamePart1.length + sPageNamePart2.length + sPageNamePart3.length;
									var maxOmnitureLength = 99;
									if(maxOmnitureLength < pageNameLength) {
										if( sPageNamePart1.length > (pageNameLength - maxOmnitureLength) ) {
											sPageNamePart1 = sPageNamePart1.substring(0, (sPageNamePart1.length - (pageNameLength - maxOmnitureLength)) );
											s.pageName = sPageNamePart1 + sPageNamePart2 + sPageNamePart3;
											
											smSendOmnitureRequest = 1;
										}
									} else {
										s.pageName = sPageNamePart1 + sPageNamePart2 + sPageNamePart3;
									}
								}
							}
							s.eVar13 = s.pageName; 
							
						} //of: if (s.pageName) 
						
						if(0 != smSendOmnitureRequest) {
							s_code = s.t();

							//if(s_code)document.write(s_code);
							//if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-');
						}						
					}
					
					function createHistoryEntry( id ) {
						//IE history tab navigation via iframe: 
						_tabLock = 1;
						window.frames["tab_nav_iframe"].window.location.search = "?tabId=" + escape( id );
						_tabLock = 0;
				    }
				    
				    function addTabId( obj )	{
				
						if ($(obj))  {
							var mailto = $(obj).readAttribute('href');
	
							//replace placeholder {0} with current url
							mailto = mailto.replace(/\{0\}/, escape(window.location));
							$(obj).writeAttribute("href", mailto );
								
							//replace placeholder {1} with current page title
							mailto = mailto.replace(/\{1\}/, escape(document.title));
							$(obj).writeAttribute("href", mailto );	
							
							//location.href = mailto;								
						}
					}
						

		
