






var fb_resources = '/wild/export/system/modules/de.wild.opencms/resources';
var fb_language  = 'de';

//############################## FLASH CONFIGURATION - START ############################################################

Flash = {};
Flash.anniversary_d = {name: 'anniversary_d', width: 250, height: 85};
Flash.anniversary_e = {name: 'anniversary_e', width: 250, height: 85};
Flash.include = function(flash) {
  includeFlash(flash.name, flash.width, flash.height);
}
//############################## FLASH CONFIGURATION - END ##############################################################


//############################## CONTENT FUNCTIONS - START ##############################################################

function goURL_select(){
	targetURL = document.form.select_box[document.form.select_box.selectedIndex].value;
	document.location.href = targetURL;
} 


//############################## CONTENT FUNCTIONS - END ################################################################

//############################## INTERNAL FUNCTIONS - START #############################################################


function login(email, password) {
  var email = $F('loginName');
  var password = $F('loginPW');
  if (email == "" || email == "Ihre Email") {
    $('loginName').select();
    return false;
  }
  if (password == "" || password == "Ihr Password") {
    $('loginPW').select();
    return false; 
  }
  if(!/^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$/.test(email)) {
    $('loginName').select();
    alert("Please provide a valid email address!");
    return false;
  }
  $('loginForm').submit();
  return false;
}

function w(s) {
  document.writeln(s);
}

function includeFlash(flashBaseName, width, height) {
  if (!useRedirect) {
    if(hasRightVersion) {
      w('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + width + '" height="' + height + '" id="personal_loan" align="middle">');
      w('<param name="allowScriptAccess" value="sameDomain" />');
      w('<param name="movie" value="/wild/export/system/modules/de.wild.opencms/resources/flash/de/' + flashBaseName + '.swf" />');
      w('<param name="wmode" value="transparent" />');
      w('<param name="quality" value="high" />');
      w('<param name="bgcolor" value="#ffffff" />');
      w('<embed src="/wild/export/system/modules/de.wild.opencms/resources/flash/de/' + flashBaseName + '.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="' + width + '" height="' + height + '" name="personal_loan" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
      w('</object>');
    } else {
      w('<img src="/wild/export/system/modules/de.wild.opencms/resources/flash/de/' + flashBaseName + '.jpg" />');
    }
  }
}
