var bannerEnabled=1;

// System- & Browserabfrage
var is = new Object();
{
	is.ver = navigator.appVersion.substring(0,1);

	if (navigator.appName == "Netscape")
	{
		is.ns = true;
		eval("is.ns" + is.ver + " = true;")
		if (is.ver >= 3 && is.ver <= 4)
			is.ng3 = true;
		if (is.ver > 4)
			is.ng5 = true;
	}
	else if (navigator.appName.indexOf("Microsoft") >= 0)
	{
		is.ie = true;
		eval("is.ie" + is.ver + " = true;")
		if (is.ver >= 3)
			is.ig3 = true;
	}
	else
		is.bu = true;

	if (navigator.appVersion.indexOf("Win") > 0)
		is.win = true;
	else if (navigator.appVersion.indexOf("Mac") > 0)
		is.mac = true;
	else if (navigator.appVersion.indexOf("X11") > 0)
		is.x11 = true;
	else
		is.osu = true;
}

// Preloads images ;-)
function imgs()
{
	this.length = imgs.arguments.length;
	for (var i = 0; i < this.length; i++)
  	{
		this[i+1] = new Image();
		this[i+1].src = imgs.arguments[i];
    }
}

// BildTausch / Button-Highlights
function SwapImage()
{
	args_images_SI = SwapImage.arguments;
	document[args_images_SI[1]].src = args_images_SI[0];
}

// BildTausch / Button-Highlights bei Formularbuttons
function SwapFormImage()
{
	args_images_SFI = SwapFormImage.arguments;
	args_images_SFI[1].src = args_images_SFI[0];
}

// CusorTausch
function SwapCursor(obj,style)
{
	document[obj].style.cursor = style;
}

// Layer ausblenden
function hideLayer(layer_name)
{
	if (is.ns)
	{
		if(document.getElementById(layer_name))
			document.getElementById(layer_name).style.visibility = "hidden";
	}
	else
	{
		if(document.all[layer_name])
			document.all[layer_name].style.visibility = "hidden";
	}
}

// Layer einblenden
function showLayer(layer_name)
{
	if (is.ns)
	{
		if(document.getElementById(layer_name))
			document.getElementById(layer_name).style.visibility = "visible";
	}
	else
	{
		if(document.all[layer_name])
			document.all[layer_name].style.visibility = "visible";
	}
}

// Layer ausblenden und den eingenommenen Platz entfernen
function removeLayer(layer_name)
{
	if (is.ns)
	{
		if(document.getElementById(layer_name))
			document.getElementById(layer_name).style.display = "none";
	}
	else
	{
		if(document.all[layer_name])
			document.all[layer_name].style.display = "none";
	}
}

function showHelpLayer(e,layer_name,offsetX,offsetY)
{
	var screen_X = 0;
	var screen_Y = 0;
	
	if(offsetX == null){offsetX = 155;}
	if(offsetY == null){offsetY = 5;}
	
	screen_X = (is.ns) ? e.pageX : event.clientX + document.body.scrollLeft;
	screen_Y = (is.ns) ? e.pageY : event.clientY + document.body.scrollTop;
	
	screen_X = screen_X - offsetX;
	screen_Y = screen_Y - offsetY;
	
	if (is.ns){
		if(document.getElementById(layer_name)){ 
			document.getElementById(layer_name).style.top = screen_Y;
			document.getElementById(layer_name).style.left = screen_X;
		}
	}
	else{
		if(document.all[layer_name]){
			document.all[layer_name].style.top = screen_Y;
			document.all[layer_name].style.left = screen_X;
		}
	}	
	
	showLayer(layer_name);
}

function showHelpLayerOffset(e,layer_name,offsetX,offsetY)
{
	showHelpLayer(e,layer_name,offsetX,offsetY);
}

function showHelp(elem) {
	helpDiv = document.getElementById(elem);
	helpDiv.style.display = "block";
	document.onmousemove = get_mouse;
}
function hideHelp(elem) {
    helpDiv.style.display = "none";
}
function get_mouse(e){
	if(helpDiv.style.display == "block"){
		x = (is.ns) ? e.pageX : event.x + document.body.scrollLeft; 
		y = (is.ns) ? e.pageY : event.y + document.body.scrollTop; 
		helpDiv.style.left = x + 15;
		helpDiv.style.top = y - 10;
	}
}

// Allgemeingültiger PopUp-Aufruf
// BSP für Funktionsaufruf: <a href="Javascript:popWin('http://www.arcor.de','1','400','200')">Link</a>
// der Wert '1' steht für scrollbares Popup! Kann auch '0' sein, für nicht scrollbares Popup!
var wFlag;
function popWin(sUrl,bScroll,winW,winH,title,winPosx,winPosy,winToolbar,winStatus,winResizeable,winMenubar,winLocation)
{
	if(winPosx			== null){winPosx = 20;}
	if(winPosy			== null){winPosy = 20;}
	if(winToolbar		== null){winToolbar = 'no';}
	if(winStatus		== null){winStatus = 'no';}
	if(winResizeable	== null){winResizeable = 'no';}
	if(winMenubar		== null){winMenubar = 'no';}
	if(winLocation		== null){winLocation = 'no';}
	
	if(title == null)
	{
		title = document.location.href;
		endpos = title.lastIndexOf("?");
		if (endpos > 0)
			title = title.substring(0, endpos-1);
		slashpos = title.lastIndexOf("/");
		if (slashpos<0)
		{
		   title = "undef";
		}
		else
		{
		    title = title.substring(slashpos+1,title.length);
			endpos = title.indexOf(".");
			if (endpos>=0)
			{
				title = title.substring(0,endpos-1);
			}
		}
	}
				
	sTmp	=	"width="		+ winW			+
				",height="		+ winH			+
				",scrollbars="	+ bScroll		+
				",status="		+ winStatus		+
				",left="		+ winPosx		+
				",top="			+ winPosy		+
				",resizable="	+ winResizeable	+
				",toolbar="		+ winToolbar	+
				",menubar="		+ winMenubar	+
				",location="	+ winLocation;

	if(!window.newWin || window.newWin.closed || wFlag != title)
	{
		window.newWin = window.open(sUrl,title,sTmp);
	}
    else{
		window.newWin.close();
		window.newWin = null;
		window.newWin = window.open(sUrl,title,sTmp);
    }
	window.newWin.focus();
	wFlag = title;
}

// in Verwendung?
//
// Endlich eine gescheite allgemeine PopUp-Funktion, die (fast) alles kann
//
// Beispiel-Aufrufe:
// -----------------
// Vollausbau:
// 		<a href="javascript:openPopuphilfePKSC('https://www.arcor.de/hilfe/neu','FAQs',996,600,30,30,1,1,1,'yes','yes','yes')">Hilfe & Kontakt</a>
// Minimalausbau:
// 		<a href="javascript:openPopuphilfePKSC('https://www.arcor.de/hilfe/neu')">Hilfe & Kontakt</a>
// Extremausbau:
// 		<a href="javascript:openPopuphilfePKSC('https://www.arcor.de/hilfe/neu','FAQs',null,600,null,30,1,null,1,'yes',null,'yes')">Hilfe & Kontakt</a>
//
// Besonderheiten bei booleschen Parametern:
// -----------------------------------------
// winScrollbar		Werte:     0,     1
// winToolbar		Werte:     0,     1
// winStatus		Werte:     0,     1
// winResizeable	Werte:  'no', 'yes'
// winMenubar		Werte:  'no', 'yes'
// winLocation		Werte:  'no', 'yes'
//
var sicTitlePKSC;
function openUppoper (winUrl,winTitle,winWidth,winHeight,winPosX,winPosY,winScrollbar,winToolbar,winStatus,winResizeable,winMenubar,winLocation)
{
	if (winUrl			== null)	{	winUrl			= "https://www.arcor.de/hilfe/neu";	}
	if (winTitle		== null)	{	winTitle		= "NoTitle";						}

	if (winTitle == null)
	{
		winTitle = document.location.href;
		endpos = winTitle.lastIndexOf("?");

		if (endpos > 0)
		{
			winTitle = winTitle.substring(0,endpos - 1);
		}

		slashpos = winTitle.lastIndexOf("/");

		if (slashpos < 0)
		{
		   winTitle = "undef";
		}
		else
		{
		    winTitle = winTitle.substring(slashpos + 1,winTitle.length);
			endpos = winTitle.indexOf(".");

			if (endpos >= 0)
			{
				winTitle = winTitle.substring(0,endpos - 1);
			}
		}
	}

	sTmp = "";
	if (sTmp			!=   "")	{	sTmp += ",";								}
	if (winWidth		!= null)	{	sTmp += "width="		+ winWidth;			}
	if (sTmp			!=   "")	{	sTmp += ",";								}
	if (winHeight		!= null)	{	sTmp += "height="		+ winHeight;		}
	if (sTmp			!=   "")	{	sTmp += ",";								}
	if (winPosX			!= null)	{	sTmp += "left="			+ winPosX;			}
	if (sTmp			!=   "")	{	sTmp += ",";								}
	if (winPosY			!= null)	{	sTmp += "top="			+ winPosY;			}
	if (sTmp			!=   "")	{	sTmp += ",";								}
	if (winScrollbar	!= null)	{	sTmp += "scrollbars="	+ winScrollbar;		}
	if (sTmp			!=   "")	{	sTmp += ",";								}
	if (winToolbar		!= null)	{	sTmp += "toolbar="		+ winToolbar;		}
	if (sTmp			!=   "")	{	sTmp += ",";								}
	if (winStatus		!= null)	{	sTmp += "status="		+ winStatus;		}
	if (sTmp			!=   "")	{	sTmp += ",";								}
	if (winResizeable	!= null)	{	sTmp += "resizable="	+ winResizeable;	}
	if (sTmp			!=   "")	{	sTmp += ",";								}
	if (winMenubar		!= null)	{	sTmp += "menubar="		+ winMenubar;		}
	if (sTmp			!=   "")	{	sTmp += ",";								}
	if (winLocation		!= null)	{	sTmp += "location="		+ winLocation;		}

	if ((window.newWin) && (!window.newWin.closed) && (sicTitlePKSC != winTitle))
	{
		window.newWin.close();
		window.newWin = null;
	}

	window.newWin = window.open(winUrl,winTitle,sTmp);
	window.newWin.focus();
	sicTitlePKSC = winTitle;
}

function openWindow (myurl, mytitle, mytype, sTmp)
{
	if (mytitle == null)
	{	mytitle	= document.location.href;
		endpos	= mytitle.lastIndexOf("?");

		if (endpos > 0)
			mytitle = mytitle.substring(0,endpos - 1);

		slashpos = mytitle.lastIndexOf("/");

		if (slashpos < 0)
			mytitle = "undef";
		else
		{	mytitle	= mytitle.substring(slashpos + 1,mytitle.length);
			endpos	= mytitle.indexOf(".");

			if (endpos >= 0)
				mytitle = mytitle.substring(0,endpos - 1);
		}
	}

//		if (window.newWin && !window.newWin.closed)
//		{	window.newWin.close();
//			window.newWin = null;
//		}

	if ((opener != null) && (!opener.closed))
	{	try
		{	opener.document.location.href = myurl;
			opener.focus();
		}
		catch (e)
		{	window.newWin = window.open(myurl,"NeWmAiNwInDoW",sTmp);
			window.newWin.focus();
		}
	}
	else
	{	if (window.name == mytype)
			window.name = "NeWmAiNwInDoW";

		window.newWin = window.open(myurl,mytitle,sTmp);
		window.newWin.focus();
	}
}

function popWinTab(sUrl,bScroll,ix,iy)
{
	popWin(sUrl,bScroll,ix,iy);
}

function openPopuphilfe(myurl,mytitle,mytype)
{
	if (screen.availWidth > "996" && screen.availHeight > "720")
	{
		myWidth = "996";
		myHeight = "720";
	}
	else
	{
		myWidth = screen.availWidth - 50;
		myHeight = screen.availHeight - 100;
	}
	
	if ((mytitle == null) || (mytype == null))
	{
		popWin(myurl,'1',myWidth,myHeight,'hilfe','','','1','1','1','1','1');
		//window.open(myurl,'hilfe').focus();
	}
	else
	{
		if(mytype=="FAQs")
			sTmp	=	"width="+myWidth+",height="+myHeight+",status=1,scrollbars=1,toolbar=1,resizable=yes,menubar=yes,location=yes";
		else
			sTmp	=	"status=1,scrollbars=1,toolbar=1,resizable=yes,menubar=yes,location=yes";
		
		openWindow(myurl,mytitle,mytype,sTmp);
	}
}

function Extern_CityLocator_dsl(bereich,daten,produkt){
	var adr = NG_UFIX+"/privat/asb_forward_pop.jsp?style=";
	
	if(bereich=="privat"){
		if(produkt == "isdn") var style = "isdnshop";
		else var style = "dslshop";
		var winW = '796';
		var winH = '522';
	}
	else{
		if(produkt == "isdn"){
			var style = "isdnentgk";
			var winH = '580';
		}else{
			var style = "dslentgk";
			var winH = '580';
		}
		var winW = '592';
	}
	
	adr += style;
	if(daten) adr += daten;
	
	window.open(adr);
}

function Extern_CityLocator_isdn(bereich,daten){
	Extern_CityLocator_dsl(bereich,daten,'isdn');
}

function trackLink(path,name)
{
  if(typeof pageKat=='undefined') {
  	pageKat="";
	}
  if(typeof NG_UFIX=='undefined') {
  	NG_UFIX="";
	}

	var URL;

  if(path.indexOf(NG_UFIX)==0) {
  	path = path.substring(NG_UFIX.length,path.length);
  }
	if(path.indexOf("http")==0) {
		// assume extern
	  URL="http://www.arcor.de/home/extern_track.php?url="+escape(path)+"&name="+escape(name)+"&kat="+escape(pageKat);
	} else {
		// intern
	  URL=NG_UFIX+"/home/intern_track.php?path="+escape(path)+"&name="+escape(name)+"&kat="+escape(pageKat);
	}

	return URL;
}

function internTrack(path,name,popup)
{
  var URL=trackLink(path,name);
  
  if(popup) {
    window.open(URL);
  } else {
    document.location.href=URL;
  }
}

function externTrack(u, name, popup)
{
  var URL=trackLink(u,name);

  if(popup) {
    window.open(URL);
  } else {
    document.location.href=URL;
  }
}

function btTrack(bID,wmID,wtID,affID,name,popup)
{
  if(popup==null) {
    popup=false;
  }

  var path="/beemto/servlet/beemClick?beemID="+escape(bID)+"&wmID="+escape(wmID)+"&wtID="+escape(wtID)+"&affID="+escape(affID);

  internTrack(path, name, popup);
}

function cpTrack(bID,tracking,name,popup)
{
  if(popup==null) {
    popup=false;
  }

  var path="/beemto/servlet/beemClick?beemID="+escape(bID)+"&"+tracking;

  internTrack(path, name, popup);
}

// classTausch, z.B. bei Tabellen
function SwapClass(obj,newClass)
{
	if (!is.ng3){
		obj.className = newClass;
	}
}

function changeClass(obj,newClass)
{
	document.getElementById(obj).className = newClass;
}

// arcor business
function checkBusinessSuchesubmit()
{
	if( document.selecterBusinessSuche.selectBusinessSucheOptions.value != 'none')
	{
		document.selecterBusinessSuche.action = NG_UFIX + 
						document.selecterBusinessSuche.selectBusinessSucheOptions.value;
		document.selecterBusinessSuche.submit();
	}									
}

// IE-Formular-Button-Highlight
ieButtonHover = function() {
	//vf-buttons
	var INPUTBUTTONs = document.getElementsByTagName("span");
	for (i=0; i<INPUTBUTTONs.length; i++) {
		if (INPUTBUTTONs[i].getAttributeNode("class") && INPUTBUTTONs[i].getAttributeNode("class").nodeValue.search("iButton") != -1)
		{
			INPUTBUTTONs[i].onmouseover = function() {
				this.className += " iButton_h";
			}
			INPUTBUTTONs[i].onmouseout = function() {
				this.className = this.className.replace(new RegExp(" iButton_h"), "");
			}
		}
	}
}
if(window.attachEvent && !window.opera) window.attachEvent("onload", ieButtonHover);

// ReiterNavigation
function SwapTab(obj,content) {
	var TabBox = obj.parentNode.parentNode.id;
	var TabBoxNav = document.getElementById(TabBox).getElementsByTagName("li");
	var TabBoxParent = obj.parentNode.parentNode.parentNode;
	
	for (i=0; i<TabBoxNav.length; i++) {
		if(i==0)
		{
			TabBoxNav[i].className = TabBoxNav[i].className.replace("on-first",""); //ar
			TabBoxNav[i].className = TabBoxNav[i].className.replace("selected",""); //vf
		}
		TabBoxNav[i].className = TabBoxNav[i].className.replace("on","");
		if(content)
		{
			var cDiv = document.getElementById(content+(i+1));
			cDiv.className = cDiv.className.replace(new RegExp("show"), "hide");
			if(TabBoxNav[i] == obj.parentNode)
			{
				cDiv.className = cDiv.className.replace(new RegExp("hide"), "show");
			}
			else
			{
				TabBoxNav[i].className = TabBoxNav[i].className.replace("on-first",""); //ar
				TabBoxNav[i].className = TabBoxNav[i].className.replace("selected",""); //vf
			}
		}
	}
	
	obj.parentNode.className += " on";
	if(TabBoxNav[0] == obj.parentNode)
		TabBoxNav[0].className += " on-first";
}

// banner-functions

var bannertag_server="ad.de.doubleclick.net";
var bannertag_rnumber=Math.round(1000000*Math.random());
var bannertag_sol="";
if (screen.width >= 1000) {bannertag_sol = "yes";} else {bannertag_sol = "no";}
var bannertag_tile=1;

function AdTagHorizontal(proto,t)
{
	if(!bannerEnabled || t=='' || t=='none') {
		return '';
	} else {
		var bannertag_kw='';
		if(typeof(wlrcmd)!='undefined') {
			if(wlrcmd!='') {
				bannertag_kw=wlrcmd+';';
			}
		}
		return '<script src="'+proto+'://'+bannertag_server+'/adj/arcor-rubriken/'+t+';pg='+t+';dcopt=ist;!category=stop;ind=yes;sz=468x60;tile='+(bannertag_tile++)+';'+bannertag_kw+'ord='+bannertag_rnumber+'?"></script>';
  	}
}

function AdTagVertical(proto,t)
{
	if(!bannerEnabled || t=='' || t=='none') {
		return '';
	} else {
		var bannertag_kw='';
		if(typeof(wlrcmd)!='undefined') {
			if(wlrcmd!='') {
				bannertag_kw=wlrcmd+';';
			}
		}
		return '<script src="'+proto+'://'+bannertag_server+'/adj/arcor-scroll_sky/'+t+';pg='+t+';!category=stop;res='+bannertag_sol+';ind=yes;sz=1x1;dcopt=ist;tile='+(bannertag_tile++)+';'+bannertag_kw+'ord='+bannertag_rnumber+'?"></script>';
	}
}

function AdTagMedium(proto,t)
{
	if(!bannerEnabled || t=='' || t=='none') {
		return '';
	} else {
		var bannertag_kw='';
		if(typeof(wlrcmd)!='undefined') {
			if(wlrcmd!='') {
				bannertag_kw=wlrcmd+';';
			}
		}
		return '<script src="'+proto+'://'+bannertag_server+'/adj/arcor-contentad/'+t+';pg='+t+';!category=stop;res='+bannertag_sol+';ind=yes;sz=1x1;tile='+(bannertag_tile++)+';'+bannertag_kw+'ord='+bannertag_rnumber+'?"></script>';
	}
}

function blankScripts(obj)
{
	var child=obj.firstChild;
	var blankScr=document.createElement("script");

	while(child) {
		if(child.nodeName=="SCRIPT") {
			var currentChild=child;
			child=child.nextSibling;
			obj.replaceChild(blankScr,currentChild);
		} else {
			child=child.nextSibling;
		}
	}
	return obj;
}

function moveBanner()
{
	var sourceObject=document.getElementById("adBannerTmp");
	var targetObject=document.getElementById("adBanner");
	if(typeof LeaderBoard=="undefined") {
		LeaderBoard=0;
	}
	if(typeof fullsize=="undefined") {
		fullsize=0;
	}

	if(targetObject && sourceObject && (LeaderBoard || fullsize)) {
		sourceObject=blankScripts(sourceObject);
		var child=targetObject.firstChild;
		while(child && child.nodeName!="IMG") {
			child=child.nextSibling;
		}
		if(child) {
			targetObject.replaceChild(sourceObject,child);
			sourceObject.style.display = "block";
		}
	}
	
	sourceObject=document.getElementById("adMediumTmp");
	targetObject=document.getElementById("adMedium");
	if(typeof contentad=="undefined") {
		contentad=0;
	}

	if(targetObject && sourceObject && contentad) {
		sourceObject=blankScripts(sourceObject);
		targetObject.appendChild(sourceObject);
		sourceObject.style.display = "block";
	}
}

function init_moveBanner()
{
	if(bannerEnabled) {
		jQuery(document).ready(function() {
		  moveBanner();
		});
	}
}

function AdTagLigatus(proto,t)
{
	if(!bannerEnabled || t=='' || t=='none') {
		return '';
	} else {
		return '<script src="'+proto+'://'+bannertag_server+'/adj/arcor-linkboxen/'+t+';pg='+t+';!category=stop;sz=1x1;ord='+bannertag_rnumber+'?"></script>';
	}
}

function BeTargetPixel(proto,c,u)
{
	if(proto=='https') {
		return '';
	} else {
		return '<img id="btpx" src="http://tr.btt.ems.betarget.de/Cnt/betarget/CP/arcor/'+c+'/'+u+'?d='+(Math.random()*100000)+'" width="1" height="1" name="betarget" alt="">';
	}
}

function BeTargetKeywords(proto,c,u)
{
	if(proto=='https') {
		return '';
	} else {
		return '<script type="text/javascript" src="http://rc.btt.ems.betarget.de/Get/betarget/JS/GetRcmd.js?d='+(Math.random()*100000)+'"></script>';
	}
}

var ivwURL;
var incr=0;
var prevElement;
function incrementIVW(elem)
{
	var ivwPixel=document.getElementById('ivwPixel');
	if(typeof ivwPixel!='undefined') {
		if(typeof ivwURL=='undefined') {
			ivwURL=ivwPixel.src;
		}
		if(elem!=prevElement) {
  		ivwPixel.src=ivwURL+incr++;
	  	prevElement=elem;
		}
	}
	countClick(elem,'topteaser');
}

function IvwFraboInclude()
{
	var currentURL = document.URL;
	if(currentURL.substr(0,6)=='https:') {
		return '';
	} else {
		return '<script type="text/javascript" src="http://arcor.ivwbox.de/2004/01/survey.js"></script>';
	}
}

// zoomin.tv
function ftvlaunchold(video,quality,pid) {
	  var LeftPosition = (screen.width) ? (screen.width-670)/2 : 0;
	  var TopPosition = (screen.height) ? (screen.height-500)/2 : 0;
	  var popwin = window.open('http://bongo.zoomin.tv/videoplayer/index.cfm?id='+video+'&mode=normal&quality='+ quality +'&pid='+ pid,'MTV6_window','toolbar=no,width=670,height=500,top='+TopPosition+',left='+LeftPosition+',directories=no,status=no,statusbar=0,scrollbars=no,resizable=no,menubar=no');
      popwin.focus();
}
function ftvlaunch(video,quality,pid) {
	
	  var LeftPosition = (screen.width) ? (screen.width-670)/2 : 0;
	  var TopPosition = (screen.height) ? (screen.height-500)/2 : 0;
	  var popwin = window.open('http://bongo.zoomin.tv/videoplayer/index.cfm?id='+video+'&mode=normal&quality='+ quality +'&pid='+ pid,'MTV6_window','toolbar=no,width=670,height=500,top='+TopPosition+',left='+LeftPosition+',directories=no,status=no,statusbar=0,scrollbars=no,resizable=no,menubar=no');
      popwin.focus();
}

var countElement;

function countClick(elem,boxname)
{
	var tabText;
	try {
		tabText=elem.childNodes[0].data.toLowerCase().replace(/[^a-z0-9]/g, "_").replace(/__/g,"_");
	}
	catch(ex) {
		tabText="tab";
	}
	var name="homepage-"+boxname+"-"+tabText;
	var bodytag=document.getElementsByTagName("body")[0];
	var newCountElement=document.createElement("script");
	newCountElement.src='/home/intern_track.php?path=dummy&name='+escape(name)+'&kat='+escape(pageKat)+'&r='+Math.random();
	if(!countElement) {
		bodytag.appendChild(newCountElement);
	} else {
		bodytag.replaceChild(newCountElement, countElement);
	}
	countElement=newCountElement;
}

function switchFormValue(obj,valueTxt)
{
	if (obj.value == valueTxt) {
		obj.style.color = "#000000";
		obj.value = obj.value.replace(new RegExp(valueTxt), "");
	}
}
function checkFormValue(obj,valueTxt)
{
	if (obj.value == "") {
		obj.style.color = "#445058";
		obj.value = valueTxt;
	}
}
function switchFormPW(obj1,obj2)
{
	obj1.style.display = "none";
	obj2.style.display = "";
	obj2.focus();
}
function checkFormPW(obj1,obj2)
{
	if (obj1.value == "") {
		obj1.style.display = "none";
		obj2.style.display = "";
	}
}

function plista1()
{
	var pwidget=document.getElementById('plistawidget');
	if(typeof(pwidget)!="undefined" && pwidget != null) {
		pwidget.style.display="block";
	}

        var file = "arcor_v1.js";
        var host = (("http:" === document.location.protocol) ?
                "http://static.plista.com/" :
                "https://plista.s3.amazonaws.com/");
        document.write("<script src='" + host + file + "' type='text/javascript'></script>");
}
function plista2()
{
	try {
		plista.arcor = {
			// the next two lines are neither mandatory nor mutually exclusive
			// they tell plista where to put the widgets
			sidebar: document.getElementById('plistawidget')
		};
	
		plista.init();
	
	} catch (e) {
		if (typeof plista !== 'undefined') {
			document.write('<script type="text/javascript" src="' + plista.path + 'errorreport.js?error=' + encodeURIComponent(e) + '"></script>');
		}
	}
}
// omniture-vars
function setupOmniturePageName(s)
{
var pn="";
var bct = document.getElementById("pBreadcrumb");
if (bct != null && bct.getElementsByTagName("ul")[0]!=null) {
var bcl = bct.getElementsByTagName("ul")[0].getElementsByTagName("li");
for (i=1; i<bcl.length; i++) {
var elem = bcl[i];
var nv;
if (i==bcl.length-1) {
nv=elem.childNodes[0].nodeValue;
pn=pn+nv;
} else {
nv=elem.childNodes[0].childNodes[0].nodeValue;
pn=pn+nv+":";
}
if (i==1) {s.channel=nv;}
else if (i==2) {s.prop21=nv;}
else if(i==3) {s.prop22=nv;}
else if(i==4) {s.prop23=nv;}
}
}
else {pn = document.title;}
s.pageName=pn;
}


