var docID = '5CA8EFB8D1D0C745C1257633003FC4AC';
var formID = '';
var reloadUrl = '';
var actLanguage = 'it' ;
var addKey = '-' ;
var entryLevel = 2 ;
var docPath = 'stories_cases_20080109141346' ;
var path_1 = 'stories' ;
var path_2 = 'cases_20080109141346' ;
var path_3 = '' ;
var path_4 = '' ;
var path_5 = '' ;
var actContentArea = '1' ;
hasGermanyMap = 'false' ;
var gMapImage = new Array () ;
var actBrowser = 'w3c' ;
var loadImageA = 0 ;
var mOverDiv ;
var mOverPosDiv ;
if ( document.layers ) actBrowser = 'nn' ;
if ( document.getElementById ) actBrowser = 'w3c' ;
if ( document.all ) actBrowser = 'ms' ;
var r = 0 ;
// window.onresize = resize_content ;
function load_imageA () {
for ( var x in changeArray ) {
imgX [x] = document.images['img_'+x] ;
ri [x] = -1 ;
reload_imageA (x) ;
}
}
function preload_germanyMapImages () {
var gMapKey = new Array ('anhalt','baden','bayern','berlin','deutschland','brandenburg','bremen','hamburg','hessen','mecklenburg','niedersachsen','nrw','pfalz','saarland','schleswig','thueringen','sachsen') ;
for ( g = 0 ; g < gMapKey.length ; g++ ) {
gKey = gMapKey[g] ;
gMapImage[gKey] = new Image () ;
gMapImage[gKey].src = dbPath + '/resources/' + gKey + '.gif/$File/' + gKey + '.gif' ;
}
}
function switch_contentArea ( areaID ) {
if ( areaID == actContentArea ) return ;
document.getElementById ('ContentTab_' + actContentArea).style.display = 'None';
document.getElementById ('ContentTabN_' + actContentArea).className = 'naviArea' ;
actContentArea = areaID ;
document.getElementById ('ContentTab_' + actContentArea).style.display = '';
document.getElementById ('ContentTabN_' + actContentArea).className = 'naviAreaActive' ;
}
function change_referenceSelection ( rType , rObject ) {
rValue = rObject.options[rObject.selectedIndex].value ;
addUrl = '&refkey=' + rType + '~' + rValue ;
if ( rValue == 'all' || rValue == '' ) addUrl = '' ;
document.location.href = dbPath + '/root/stories_cases_20080109141346?Open' + addUrl ;
}
function show_map ( obj ) {
try {
mImage = document.images['MapImage'].src = gMapImage[obj.id].src ,
showTooltip(this,'event',' ' + bLandTitleArray[obj.id] + ' ') ;
}
catch (e) {}
}
function hide_map ( obj ) {
try {
mImage = document.images['MapImage'].src = gMapImage[mapD].src ;
hideTooltip();
}
catch (e) {}
}
function open_bland ( obj ) {
document.location.href = dbPath + '/root/stories_cases_20080109141346?Open&country=Germany&bland=' + obj.id ;
}
function reload_imageA (x) {
maxi = changeArray[x].length ;
if ( changeImage [x] == 'load' || changeImageRandom [x] == 'random' ) {
tX = parseInt((Math.random() * 100) % maxi );
while ( tX == ri[x] ) {
tX = parseInt((Math.random() * 100) % maxi );
}
ri[x] = tX ;
}
else {
if ( ri[x] > maxi - 2 ) ri[x] = 0 ;
else ri[x] += 1 ;
}
tXValue = changeArray[x][ri[x]] ;
imgSrcX = tXValue.split(' => ')[0] ;
imgSrcX = dbPath + '/resources/' + imgSrcX + '/$File/' + imgSrcX ;
if ( imgX[x] ) imgX[x].src = imgSrcX ;
imgHrefX[x] = tXValue.split(' => ')[1] ;
if ( changeImage [x] == 'timeout' ) {
sec = changeImageSec[x] ;
if ( sec == '' || sec == 0 ) sec = 1 ;
window.setTimeout ( 'reload_imageA('+x+')' , sec*1000 ) ;
}
}
function open_imageAHref (x) {
if ( !imgHrefX[x] || imgHrefX[x] == '' ) return ;
url = imgHrefX [x] ;
if ( url.indexOf ('\/') < 0 ) url = dbPath + '/root/' + url ;
document.location.href = url ;
}
function change_image ( imgObj , imgSrc ) {
nSrc = dbPath + '/resources/' + imgSrc + '/$File/' + imgSrc ;
imgObj.src = nSrc ;
}
function load_page () {
if ( reloadUrl != '' && redirectPage ) {
if ( reloadUrl.toLowerCase().indexOf ('javascript:') > -1 ) eval ( reloadUrl ) ;
else document.location.replace (reloadUrl) ;
return ;
}
if ( hasGermanyMap ) preload_germanyMapImages ()
selectionForm = document.forms['ReferenceSelectionForm'] ;
if ( selectionForm && refKey != '' ) {
fieldKey = refKey.split('~')[0] ;
fieldValue = refKey.split('~')[1] ;
sField = eval ( 'document.forms[\'ReferenceSelectionForm\'].Reference' + fieldKey ) ;
if ( sField ) {
for ( s = 0 ; s < sField.length ; s++ ) {
if ( sField.options[s].value == fieldValue ) sField.selectedIndex = s ;
}
}
}
if ( loadImageA == 1) load_imageA ();
if ( printMode == 1 ) {
if ( addKey == 'form' ) {
thisForm = document.forms[0] ;
openerForm = window.opener.document.forms[1] ;
for ( i = 0 ; i < thisForm.elements.length ; i++ ) {
cElement = thisForm.elements[i] ;
oElement = openerForm.elements[i] ;
switch (cElement.type) {
case "text" : case "textarea" : case "hidden" :
cElement.value = oElement.value ;
break ;
case "radio" : case "checkbox" :
cElement.checked = oElement.checked ;
break ;
case "select-one" : case "select-multiple" : case "select" :
for ( o = 0 ; o < cElement.length ; o++ ) {
cElement.options[o].selected = oElement.options[o].selected
}
break ;
default:
break ;
}
}
}
return window.print();
}
}
function do_search ( defaultValue , defaultStart ) {
searchStr = ( defaultValue ) ? defaultValue : document.forms['SearchForm'].SearchString.value ;
start = ( defaultStart ) ? defaultStart : 1 ;
if ( searchStr != '' ) {
var replaceArray = new Array ( '-nbsp;| ' , '-szlig;|ß' , '-auml;|ä' , '-Auml;|Ä' , '-ouml;|ö' , '-Ouml;|Ö' , '-uuml;|ü' , '-Uuml;|Ü' , '-amp;|&' )
for ( i = 0 ; i < replaceArray.length ; i ++ ) {
searchStr = replace_subString ( searchStr , replaceArray[i].split ('|')[1] , replaceArray[i].split ('|')[0] )
}
// url = dbPath + '/search.html?ReadForm&path=' + docPathS + '&start=' + start + '&searchstr=' + searchStr ;// Übergabe für die Statistik
url = dbPath + '/search.html?ReadForm&path=&start=' + start + '&searchstr=' + searchStr;
document.location.href = url ;
}
}
function replace_subString ( txt1 , txt2 , txt3 ) {
// @ReplaceSubstring ( txt1 ; txt2 ; txt3 )
indOf = txt1.indexOf ( txt2 )
tmp_txt = '' ;
while ( indOf > -1 ) {
tmp_txt += txt1.substr ( 0 , indOf ) + txt3 ;
tmp_len = txt1.length
txt1 = txt1.substring ( indOf + txt2.length , tmp_len )
indOf = txt1.indexOf ( txt2 )
}
tmp_txt += txt1;
return tmp_txt;
}
function write_serviceSelect () {
// if ( serviceCountryKey == '' ) return ;
if ( printMode == 1 ) return ;
document.write ( '
') ;
}
function write_serviceData () {
if ( serviceCountryKey == '' ) return ;
document.writeln('') ;
}
function open_serviceCountry () {
sForm = document.forms['ServiceCountryForm'].ServiceCountrySelection ;
sInd = sForm.selectedIndex ;
sCountry = sForm.options[sInd].value ;
if ( sCountry == '' ) return ;
document.location.href = '/sennheiser/guideport_it.nsf/root/service-partner?Open&country=' + sCountry ;
// if ( sCountry.toUpperCase() == 'GERMANY' && actLanguage != 'eng' ) switch_contentArea(1) ;
// else document.location.href = '/sennheiser/guideport_it.nsf/root/service-partner?Open&country=' + sCountry ;
}
function mouse_over(obj) {
clsName = obj.className.replace ( '_' , 'O_' ) ;
obj.className = clsName ;
}
function mouse_out (obj) {
clsName = obj.className.replace ( 'O_' , '_' ) ;
obj.className = clsName ;
}
function open_overview () {
pageTitle = 'Installazioni' ;
pageTitle = escape (pageTitle);
url = dbPath + '/HTMLOverview?ReadForm&path=stories_cases_20080109141346&level=2&title=' + pageTitle ;
oWindow=window.open( url,'','width=400,height=500,top=30,left=30,scrollbars=yes,status=no,toolbar=no,resizable=yes');
oWindow.focus();
}
function do_print () {
if ( printHref.indexOf ('&return') > -1 ) return window.print ();
url = dbPath + '/print/' + docID + '?Open&print=1' ;
window.open(url , '' , 'toolbar=yes,locationbar=no,menubar=yes,scrollbars=yes,status=no,toolbar=yes,resizable=yes,width=700,height='+(screen.height-200)+',top=20,left=50');
}