
//**********************************************************************
function showload()
{
var showwait= window.open("about:blank","wait","toolbar=no,width=220,height=200,directories=no,status=no,scrollbars=no,resize=no,menubar=no");

showwait.document.open(); 
showwait.document.writeln('<hmtl><head><title>www.xrise.ch</title></head>'); 
showwait.document.writeln('<body bgcolor="#FFFFFF"><br><center>'); 
showwait.document.writeln('<font face="Arial,Helvetica" size=3 color="#000080"><b>Die Filme werden gesucht, bitte warten...</b></font><center><br><br>');
showwait.document.writeln('</body></html>'); 
showwait.document.close(); 
}

//************************************************************************
  function chkfsk(clientis18,pageisfor18) 
  {
    if (clientis18=='0' && pageisfor18=='1')
    {
      window.open('/g/fskcheck.shtm','fsk','HEIGHT=500,resizable=yes,WIDTH=580'); 
    }

  }
//************************************************************************
  var name = navigator.appName;
  var vers = navigator.appVersion;
    vers = vers.substring(0,1); 
    if (name == "Netscape" && vers == "4")
      window.location = "netscape.htm";

//************************************************************************
	function ontable(a) 
	{
		a.style.backgroundImage = "url('/g/im/rollbg.jpg')";

	}	
	
//*************************************************************************
	function offtable(a) 
	{

		a.style.backgroundImage = "none";
	}
//************************************************************************
	function rollontableback(a) 
	{
		a.style.backgroundColor='#FF9933';
		a.style.cursor = 'hand';
	}	
	
//*************************************************************************
	function rollofftableback(a) 
	{
		a.style.backgroundColor='#FFFFFF';
		a.style.cursor = 'default';
	}
//*************************************************************************
	function ron(a) 
	{
		a.style.backgroundColor='#FF9933';
		a.style.borderTop = '#FFFFFF solid 0px';		
		a.style.borderBottom = '#FFFFFF solid 0px';		
		a.style.cursor = 'hand';
	}	
//*************************************************************************
	function rof(a) 
	{
		a.style.backgroundColor='#404080';	
		a.style.borderTop = '#404080 solid 1px';
		a.style.borderBottom = '#404080 solid 1px';				
		a.style.border = 'none';
	}	
//*************************************************************************
	function rollon(a) 
	{
		a.style.backgroundColor='#FF9933';
		a.style.borderTop = '#FFFFFF solid 0px';		
		a.style.borderBottom = '#FFFFFF solid 0px';		
		a.style.cursor = 'hand';
	}	
//*************************************************************************
	function rolloff(a) 
	{
		a.style.backgroundColor='#404080';	
		a.style.borderTop = '#404080 solid 1px';
		a.style.borderBottom = '#404080 solid 1px';				
		a.style.border = 'none';
	}
//*************************************************************************	
	function rollonbest(a) 
	{
		a.style.backgroundColor='#E0E0E0';
		a.style.cursor = 'hand';
	}	
//*************************************************************************	
	function rolloffbest(a) 
	{
		a.style.backgroundColor='#C0C0C0';	
	
    }
//*************************************************************************
var expDays = 1; 
// Anzahl der Tage, die das Cookie gültig sein soll

// Überprüfung, ob Cookie gesetzt:
function checkCount() 
{
  var count = GetCookie('coid');
  // Wenn der Zähler Null ist, das Cookie gesetzt
  if (self != top) top.location = self.location;
  if (count == null) 
  {
    count='';
    for(var i = 1; i <= 35; i++)
    {
      count1=Math.round(Math.random()*(10));
      position1=Math.round(Math.random()*(26));
      position2=Math.round(Math.random()*(26));
      s1='abcdefghijklmnopqrstuvwxyz';
      count=count + s1.charAt(position1) + s1.charAt(position2) + count1;
    }
    SetCookie('coid', count, exp);
  }
}

//Cookie lesen:
function GetCookie(name) 
{ 
  var arg = name + "="; 
  var alen = arg.length; 
  var clen = document.cookie.length; 
  var i = 0; 
  while (i < clen) 
  { 
    var j = i + alen; 
    if (document.cookie.substring(i, j) == arg) 
    return getCookieVal (j); 
    i = document.cookie.indexOf(" ", i) + 1; 
    if (i == 0) break; 
  } 
  return null;
}

// Cookie-Wert auslesen: 
function getCookieVal(offset) 
{
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
  endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}

// Cookie setzen:
function SetCookie (name, value) 
{
var argv = SetCookie.arguments; 
var argc = SetCookie.arguments.length; 
var expires = (argc > 2) ? argv[2] : null; 
var path = (argc > 3) ? argv[3] : null; 
var domain = (argc > 4) ? argv[4] : null; 
var secure = (argc > 5) ? argv[5] : false; 
document.cookie=name + '=' + escape (value) + ';expires=' + expires.toGMTString() + ';path=/';
}


var exp = new Date(); 
  exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
//*****************************************************************************************************
function WaitHide()
{
document.getElementById("wait").style.display='none';
}
//*****************************************************************************************************
function showpastrentedfilmsclient()
{
document.getElementById("pastrentedfilmsclient").style.display='inline';
document.getElementById("pastrentedfilmsclientlink").style.display='none';
}
//*****************************************************************************************************
function shownotesolduser()
{
document.getElementById("notesold").style.display='inline';
document.getElementById("linkold").style.display='none';
}
//*****************************************************************************************************
function shownotesnewuser()
{
document.getElementById("notesnew").style.display='inline';
document.getElementById("linknew").style.display='none';
}
//*****************************************************************************************************
function navtofsk()
{
  document.location.href='/cgi/dvdmieten.exe/setfsk?url=' + document.URL;
}
//*****************************************************************************************************
function fskshow()
{
  document.getElementById("fsk18p").style.display='inline'; 
  document.getElementById("fsk18p1").style.display='inline';   
  document.getElementById("fsk18").style.display='none';
}
//*****************************************************************************************************
function fskhide()
{
 document.getElementById("fsk18p").style.display='none'; 
 document.getElementById("fsk18p1").style.display='none';  
 document.getElementById("fsk18").style.display='inline';
}
//*****************************************************************************************************
var Bannerbtn = new Array();
var BannerbtnLink = new Array(); 
var BannerbtnAlt  = new Array(); 


Bannerbtn[0] = '/images/ihrewerbunghier.jpg';
Bannerbtn[1] = '/images/banners/fremd/we02017/we02017_button.gif';

BannerbtnLink[0]  = "/werbung.shtm";
BannerbtnLink[1]  = "http://www.linkcity.ch";

BannerbtnAlt[0] = 'Werben bei Xrise.ch - [click für Infos!]';
BannerbtnAlt[1] = 'Linkcity.ch - Das Schweizer Linkverzeichnis';


function runBannerbtn()
{
  zufallbtn=Math.round(Math.random()*(Bannerbtn.length-1));
  document.images.BannerBoxbtn.src = Bannerbtn[zufallbtn];
  document.images.BannerBoxbtn.alt = BannerbtnAlt[zufallbtn];
  document.getElementById("imgbtn").style.display='inline'; 
  document.getElementById("BannerbtnLinkImg").href= BannerbtnLink[zufallbtn];
}

//*****************************************************************************************************
var Banner = new Array();
var BannerLink = new Array(); 


Banner[0] = 'http://www.thedealer.de/exchange/ads.pl?iframe;member=kuisli;zone=1+2+3+4+5+6+7+8';
Banner[1] = 'http://www.onlinetreff.ch/bannerwerbung/468x60/schnauze_voll.jpg';
Banner[2] = '/images/banners/fremd/we02016/we02016.jpg';
Banner[3] = '/images/banners/xrisebanners/xrise_akonto01_468_60.gif';
Banner[4] = 'http://www.werbeknoten.ch/ban_view.php?F=Reg|view|35zp&G=ABCD1234&H=468x60_2.&I=JPG&J=NT5F7X4O';
Banner[5] = 'http://www.werbeknoten.ch/ban_view.php?F=Reg|view|35zp&G=KLNB164G&H=468x60_1.&I=GIF&J=NT5F7X4O';
Banner[6] = 'http://www.werbeknoten.ch/ban_view.php?F=Reg|view|35zp&G=GHBAUI73&H=468x60_2.&I=JPG&J=NT5F7X4O';
Banner[7] = 'http://www.werbeknoten.ch/ban_view.php?F=Reg|view|35zp&G=GHBAUI73&H=468x60_1.&I=JPG&J=NT5F7X4O';
Banner[8] = '';
Banner[9] = '/images/banners/xrisebanners/xrise_akonto01_468_60.gif';



BannerLink[0]  = "0";
BannerLink[1]  = "http://www.onlinetreff.ch";
BannerLink[2]  = "http://www.corados.ch";
BannerLink[3]  = "/akontozahlung.shtm";
BannerLink[4]  = "http://www.werbeknoten.ch/klick.php?A=FirmaID|Reg|klick|&B=NT5F7X4O&C=012Zau12&D=ABCD1234&E=OadqQ";
BannerLink[5]  = "http://www.werbeknoten.ch/klick.php?A=FirmaID|Reg|klick|&B=NT5F7X4O&C=012Zau12&D=KLNB164G&E=OadqQ";
BannerLink[6]  = "http://www.werbeknoten.ch/klick.php?A=FirmaID|Reg|klick|&B=NT5F7X4O&C=012Zau12&D=GHBAUI73&E=OadqQ";
BannerLink[7]  = "http://www.werbeknoten.ch/klick.php?A=FirmaID|Reg|klick|&B=NT5F7X4O&C=012Zau12&D=GHBAUI73&E=OadqQ";
BannerLink[8]  = "";
BannerLink[9]  = "/cgi/advertisement.exe/navToAdv?id=1";


function runBanner()
{
  zufall=Math.round(Math.random()*(Banner.length-1));


    if (zufall=='0')
    {
      document.getElementById("img").style.display='none'; 
      document.getElementById("ifr").src = Banner[0]; 
      document.getElementById("ifr").style.display='inline'; 
    }
    else
    if (zufall=='8')
    {
      document.getElementById("img").style.display='none'; 
      document.getElementById("ifr").style.display='none'; 
      document.getElementById("img2").style.display='inline'; 
    }
    else
    {
      document.getElementById("ifr").style.display='none'; 
      document.images.BannerBox.src = Banner[zufall];
      document.getElementById("img").style.display='inline'; 
    }
  
  document.getElementById("BannerLinkImg").href= BannerLink[zufall];
  runBannerbtn();
}
//*****************************************************************************************************
function loginhide()
{
document.getElementById("login").style.display='none';
document.getElementById("logged").style.display='inline';
}
//*****************************************************************************************************
function navTo(URL) 
{
document.location.href=URL;
}
//*****************************************************************************************************
function innerquickviewhide()
{
  document.getElementById("innerquickview").style.display='none';
  document.getElementById("hideWhenFilmQuickinfo").style.display='inline';
}     
//*****************************************************************************************************
function sq(id,tit,desc,genre)
{
  if (document.getElementById("innerquickview").style.display=='none')
  {
  document.getElementById("hideWhenFilmQuickinfo").style.display='inline';
  document.getElementById("quickview").style.display='none';
  }
  else
  {  
  document.getElementById("hideWhenFilmQuickinfo").style.display='none';
  document.getElementById("quickview").style.display='inline';
  document.getElementById("tit").innerHTML=tit;  
  document.getElementById("desc").innerHTML=desc;
  document.getElementById("genre").innerHTML='(Kat. ' + genre + ')';  
  }
}
//*****************************************************************************************************
function hq()
{
  document.getElementById("quickview").style.display='none';
  document.getElementById("hideWhenFilmQuickinfo").style.display='inline';  
}
//*****************************************************************************************************
function infopastrent()
{
  if (document.getElementById("infopastrent").style.display=='none')
{
  document.getElementById("infopastrent").style.display='inline';
}
else
{
  document.getElementById("infopastrent").style.display='none';
}
}
//*****************************************************************************************************
function infoquickinfo()
{
if (document.getElementById("infoquickinfo").style.display=='none')
{
  document.getElementById("infoquickinfo").style.display='inline';
}
else
{
  document.getElementById("infoquickinfo").style.display='none';
}
}
//*****************************************************************************************************
function browserwaitend()
{
  document.getElementById("browserwait").style.display='none';
}
//*****************************************************************************************************

function synobsisEnglishShow()
{
  document.getElementById("synEng").style.display='inline';
  document.getElementById("linkEng").style.display='none';
  document.getElementById("linkHide").style.display='inline';
}
//*****************************************************************************************************
function synobsisEnglishHide()
{
  document.getElementById("synEng").style.display='none';
  document.getElementById("linkEng").style.display='inline';
  document.getElementById("linkHide").style.display='none';
}
//*****************************************************************************************************
function randommsg()
{
var messagenumber = 1 ;	// Anzahl der Nachrichten
var randomnumber = Math.random() ;
var rand1 = Math.round( (messagenumber-1) * randomnumber) + 1 ;

messages = new Array
//messages[1] = '<p style="font-weight:bold;color:#FF0000;font-size: 8pt;margin-top:0px;margin-bottom:0px;">' +
//              '» DVDs mieten schon ab 2.90sFr.! ' + 
//              '<a href="/g/tbonus.shtm" style="font-weight:normal;">(mit Turbo-Bonus)</a>';
messages[1] = '<a href="/g/ausland.shtm" style="font-size: 7pt">Lieferung in der Schweiz & Liechtenstein. Für andere Länder hier klicken. <b>Not living in Switzerland?</b> Click here.</a>';                        
              
//messages[1] = '<p style="margin-top:0px;margin-bottom:0px;">' +
//              '<a href="http://forum.xrise.ch/viewtopic.php?t=174" target="_blank" ' +
//              'style="color:#FF0000;font-size: 8pt;font-weight:bold;">» //Alle Gewinner der Oscar-Verleihungen 2006 [mehr...]</a>';
          
              
var message = messages[rand1];
document.write(message);
}
