<!--


function OpenFreeAccountWindow()
{
	var win = window.open('http://www.cam-content.com/LSPS/_PayPage/InsertFreeAccountData.aspx?SystemID=camgirlsex-net&BackLink=javascript%3awindow.close()%3b','PaymentWindow','width=530,height=640');
	if(win)
	{
		win.focus();
	}
}

function OpenPayByCallTimeWindow()
{
	var win = window.open('http://www.cam-content.com/LSPS/_PayPage/PayByCallTime.aspx?SystemID=camgirlsex-net','PaymentWindow','width=800,height=580,scrollbars=1');
	if(win)
	{
		win.focus();
	}
}

function OpenAlfaGewinnspielWindow()

{
 var win = window.open('http://www.cam-content.com/LSPS/_Gewinnspiel/AlfaGewinnspiel.aspx?SystemID=camgirlsex-net','GewinnspielWindow','width=620,height=600,scrollbars=1');
 if(win)
 {
  win.focus();
 }
}

function OpenTourWindow()
{
 var win = window.open('http://www.camgirlsex.net/promo/sexchat-rundgang1.html','TourWindow','width=640,height=550');
 if(win)
 {
  win.focus();
 }
}

function OpenNewsletterWindow()
{
 var win = window.open('http://www.cam-content.com/LSPS/_Newsletter/Subscribe.aspx?SystemID=camgirlsex-net','ImpressumWindow','width=280,height=280');
 if(win)
 {
  win.focus();
 }
}

function OpenChatWindow(Link)
	{
		win = window.open(Link,'ChatWindow','width=805,height=595,scrollbars=1');
		if(win)
		{
			win.focus();
		}
	}


// Delay in milliseconds for the growing headliner
growWait=90;

// Delay in milliseconds for the expanding headliner
expandWait=120;

// Delay in milliseconds for the scrolling headliner
scrollWait=140;

// Number of characters in scrolling zone for the scrolling headliner
scrollWidth=55;

// Number of lines, specify as much as you want to use
lineMax=4;
lines=new Array(lineMax);

// Define the lines (Text to display, url, effect, time to wait)


lines[1]=new Line("Kostenlosen Testzugang zum Hardcore Sexchat abgreifen und direkt zu den tabulosen Girls -> Klick hier!", "FreeAccount", Scroll, 1000);
lines[2]=new Line("von diesen scharfen Schnitten ziert sich keine einzige sich vor der Cam nackt zu zeigen und gemeinsam mit Dir, dem Dildo und anderen Spielsachen, scharfe Spielchen zu spielen ...", "Tour", Scroll, 1000);
lines[3]=new Line("Hol' Dir einen Gutschein für den Hardcore Sexchat - Einfach Newsletter abonnieren und sparen - Klick hier!", "Newsletter", Scroll, 1000);
//lines[4]=new Line("**NEU** Samstag ab 13:00 Uhr Crissy ein neues junges geiles Girl Live vor der Cam **NEU**", "", Scroll, 1000);
lines[4]=new Line("www.phalluserectus.com  ... die Lust am abspritzen", "", Expand, 3000);
//lines[3]=new Line("Learn how to program in JavaScript! Click Here!", "http://207.194.215.246", Static, 2500);
//lines[4]=new Line("Well, you can also email me...just click!", "mailto:nobody@nobody.com?subject=The Headliner&nobody@nobody.com", Grow, 3000);


// Some other variables (just don't change)
lineText="";
timerID=null;
timerRunning=false;
spaces="";
charNo=0;
charMax=0;
charMiddle=0;
lineNo=0;
lineWait=0;

// Define line object
function Line(text, url, type, wait) {
 this.text=text;
 this.url=url;
 this.Display=type;
 this.wait=wait;
}

// Fill a string with n chars c
function StringFill(c, n) {
 s="";
 while (--n >= 0) {
  s+=c;
 }
 return s;
}

function Static() {
 document.buttonFace.value=this.text;
 timerID=setTimeout("ShowNextLine()", this.wait);
}

function Grow() {
 lineText=this.text;
 lineWait=this.wait;
 charMax=lineText.length;
 TextGrow();
}

function TextGrow() {
 if (charNo <= charMax) {
  document.formDisplay.buttonFace.value=lineText.substring(0, charNo);
  charNo++;
  timerID=setTimeout("TextGrow()", growWait);
 }
 else {
  charNo=0;
  timerID=setTimeout("ShowNextLine()", lineWait);
 }
}

function Expand() {
 lineText=this.text;
 charMax=lineText.length;
 charMiddle=Math.round(charMax / 2);
 lineWait=this.wait;
 TextExpand();
}

function TextExpand() {
 if (charNo <= charMiddle) {
  document.formDisplay.buttonFace.value=lineText.substring(charMiddle - charNo, charMiddle + charNo)
;
  charNo++;
  timerID=setTimeout("TextExpand()", expandWait);
 }
 else {
  charNo=0;
  timerID=setTimeout("ShowNextLine()", lineWait);
 }
}

function Scroll() {
 spaces=StringFill(" ", scrollWidth);
 lineText=spaces+this.text;
 charMax=lineText.length;
 lineText+=spaces;
 lineWait=this.wait;
 TextScroll();
}

function TextScroll() {
 if (charNo <= charMax) {
  document.formDisplay.buttonFace.value=lineText.substring(charNo, scrollWidth+charNo);
  charNo++;
  timerID=setTimeout("TextScroll()", scrollWait);
 }
 else {
  charNo=0;
  timerID=setTimeout("ShowNextLine()", lineWait);
 }
}

function StartHeadliner() {
 StopHeadliner();
 timerID=setTimeout("ShowNextLine()", 1000);
 timerRunning=true;
}

function StopHeadliner() {
 if (timerRunning) { 
  clearTimeout(timerID);
  timerRunning=false;
 }
}

function ShowNextLine() {
 (lineNo < lineMax) ? lineNo++ : lineNo=1;
 lines[lineNo].Display();
}

function GotoUrl(url)
{
 if(url == "Tour")
 {
  OpenTourWindow();
 }
 else if(url == "FreeAccount")
 {
  OpenFreeAccountWindow();
 }
 else if(url == "Newsletter")
 {
  OpenNewsletterWindow();
 }
 else
 {
  top.location.href=url;
 }
}



function loadFunction()
{
StartHeadliner();
}

//-->
