/*
JavaScripts für Webseiten
(c) 2002 by ZANA digital | Gordon Axmann (http://www.unbeirrbareinenwegverfolgen.de/)

Einbindung im Header:
<script language="JavaScript" src="/framework.js" type="text/javascript"></script>
<script language="JavaScript" src="/critic.js" type="text/javascript"></script>
</head>
<body text="#000000" bgcolor="#000000" link="#0000FF" vlink="#0000FF" alink="#FF0000">
<script language="JavaScript">
<!--
framebutton();
//-->
</script>
<noscript><div id="winbutton" style="position: absolute; bottom: 18px; right: 16px;"><link rel="stylesheet" href="/PublishedFiles/std-style.css" type="text/css"><table border="0" cellpadding="6" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="97" background="http://www.aktivraum.de/agentur/aktivrad.gif" height="97"><tr><td width="100%"><p class="MsoNormal" align="center" style="margin-top: 1; margin-bottom: 1"><a href="/home.html"><b><span style="font-size: 9.0pt; font-family: Arial; letter-spacing:1">&nbsp;Seiten-</span></b><p class="MsoNormal" align="center" style="margin-top: 1; margin-bottom: 1"><b><span style="letter-spacing: 1; font-size:9.0pt; font-family:Arial">Übersicht</span></b></a></td></tr></table></div></noscript>
*/

var domainnm='www.tanzundfarbe.de';

function butvor()
{
document.write('<div id=\"winbutton\" style=\"position: absolute; bottom: 18px; right: 16px;\"><link rel=\"stylesheet\" href=\"/PublishedFiles/std-style.css\" type=\"text/css\"><table border=\"0\" cellpadding=\"6\" cellspacing=\"1\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"97\" background=\"http://www.aktivraum.de/agentur/aktivrad.gif\" height=\"97\"><tr><td width=\"100%\"><p class=\"MsoNormal\" align=\"center\" style=\"margin-top: 1; margin-bottom: 1\">');
}

function butnach()
{
document.write('</td></tr></table></div>');
document.write('<div style=\"display:none;\"><IMG SRC=\"http://www.webhits.de/cgi/Count.cgi?sh=0&df=16581.dat\" WIDTH=\"1\" HEIGHT=\"1\"></div>');
}

function buttonsingle()
{
butvor();
document.write('&nbsp;<a href=\"/britta_rodenkirchen.html\" ONCLICK=\"doframe();return false;\" onmouseover=\"window.status=\'Fehlende Navigationselemente einblenden...\';return true;\" onmouseout=\"window.status=\' \';return true;\"><b><span style=\"font-size: 9.0pt; font-family: Arial\">Navigations-</span></b><p class=\"MsoNormal\" align=\"center\" style=\"margin-top: 1; margin-bottom: 1\"><b><span style=\"letter-spacing: 5; font-size:9.0pt; font-family:Arial\">MENÜ</span></b><p class=\"MsoNormal\" align=\"center\" style=\"margin-top: 1; margin-bottom: 1\"><span style=\"font-size: 9.0pt; font-family: Arial\"><b>einblenden</b></span></a>');
butnach();
}

function buttonfremd()
{
butvor();
document.write('<a href=\"/home.html\" ONCLICK=\"doframe();return false;\" onmouseover=\"window.status=\'Anzeigen dieser Seite im Original-Kontext...\';return true;\" onmouseout=\"window.status=\' \';return true;\"><b><span style=\"font-size: 9.0pt; font-family: Arial\">Original</span></b><p class=\"MsoNormal\" align=\"center\" style=\"margin-top: 1; margin-bottom: 1\"><b><span style=\"letter-spacing: 1; font-size:9.0pt; font-family:Arial\">Navigation</span></b><p class=\"MsoNormal\" align=\"center\" style=\"margin-top: 1; margin-bottom: 1\"><span style=\"font-size: 9.0pt; font-family: Arial\"><b>einblenden</b></span></a>');
butnach();
}

function ownframe()
{
check=false;
if (top.SN_Banner_top) check=true;
return check;
}

function friends()
{
check=false;
// if (top.PartnerShop) check=true;
return check;
}

function unframed()
{
check=false;
if (top.frames.length==0) check=true;
if (document.location.href.substr(0,26).toLowerCase().indexOf('google.')>-1) check=false;
if (document.location.href.substr(0,26).toLowerCase().indexOf('216.239.')>-1) if (document.location.href.substr(0,26).toLowerCase().indexOf('.120')>-1) check=false;
if (document.location.href.substr(0,37).toLowerCase().indexOf('/translate_c?')>-1) check=false;
return check;
}

function moveto(adr)
{
if (document.images != null) top.location.replace(adr); else top.location.href=adr;
}

function framebutton()
{
if (document.location.href.substr(0,4)!='http') return; // zum offline bearbeiten
if (unframed()) doframe(); // oder: buttonsingle();
   else if ((friends()==false) && (!ownframe())) buttonfremd();
}

window.onerror=error;

function error()
{
check=false;
// buttonfremd();
return (true);
}

function doframe()
{
check2 = false;
check = false;
if (ownframe()) return;

if (!unframed()) {
  if (friends()) return;
  check = true;
  if (check == true) top.location.href='http://'+domainnm+'/?'+document.location.href;
  return;
  }

check=check2;
if (location.search.length==0) {
  if (check2 == false) check = true;
  if (check == false) return;
  moveto('/?'+document.location.pathname.substring(1,document.location.pathname.length)+document.location.hash);
  }

else if (location.search.length > 0) {
  if (check2 == false) check = true;
  if (check == false) return;
  moveto('http://'+domainnm+'/?'+document.location.pathname.substring(1,document.location.pathname.length)+location.search);
  }
}

function MM_swapImgRestore()
{ //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d)
{ //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImg()
{ //v3.0+
  var i=0,j=0,x,a=MM_swapImg.arguments; document.MM_sr=new Array;
// for(i=0;i<(a.length-2);i+=4)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=x.src.replace(/_a./,"_b.");}
}

function MM_preloadImg()
{ //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImg.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i].replace(/_a./,"_b.");}}
}

var click=false;
function noret()
{ click=true; }
