<!--
var stay = ";expires=Thu, 31-Dec-2008 00:00:00 GMT;";
var portalname = "Sex-in";
var portalurl =	"www.livesex.nl";
var onlinename = "www.livesex.nl";
var lang = "EN";
var color= "29";
var query_url="http://" + onlinename + "/?lang=" + lang + "&styleid=" + color;

var pass_enter_question = "Fill in your password for parental control.";
var pass_connect_question = "Fill in the password and press OK to connect with ";
var pass_incorrect_alert = "Incorrect password, please try again.";
var gosexy_with_pass = "The followong links are for adults. Please fill in the password:";
var gosexy_without_pass = "De links op de volgende site verwijzen naar EROTISCHE\nwebsites en zijn ongeschikt voor minderjarigen.\nU kunt de pagina voor anderen afschermen door de\ngezins-beveiliging onderaan deze pagina in te schakelen.\n\nDoor te klikken op de OK knop verklaart u dat u ouder\nbent als 18 jaar.";
var gosexy_wrong_pass = "De gezinsbeveiliging is ingeschakeld. Het opgegeven wachtwoord is niet juist.";
var secure_disable = "De gezinsbeveiliging is ingeschakeld. Voer nogmaals uw wachtwoord in om de gezinsbeveiliging uit te schakelen:";
var secure_disabled_alert = "De gezinsbeveiliging is uitgeschakeld. Betaallinks en het erotiekgedeelte zijn nu zonder wachtwoord toegankelijk.";
var secure_not_disabled_alert = "Het opgegeven wachtwoord is niet correct. De gezinsbeveiliging is NIET uitgeschakeld.";
var secure_enable = "Voer een wachtwoord in om gezinsbeveiliging te activeren.\nSchrijf dit wachtwoord op!";
var secure_enabled_alert = "De gezinsbeveiliging is ingeschakeld. Uw wachtwoord is: ";
var secure_not_enabled_alert = "U heeft geen geldig wachtwoord opgegeven. De gezinsbeveiliging is NIET ingeschakeld.";

function today()
{
	var nu = new Date();
	var maand="";
	if (nu.getMonth()==0)
				maand ='januari';
	if (nu.getMonth()==1)
				maand ='februari';
	if (nu.getMonth()==2)
				maand ='maart';
	if (nu.getMonth()==3)
				maand ='april';
	if (nu.getMonth()==4)
				maand ='mei';
	if (nu.getMonth()==5)
				maand ='juni';
	if (nu.getMonth()==6)
				maand ='juli';
	if (nu.getMonth()==7)
				maand ='augustus';
	if (nu.getMonth()==8)
				maand ='september';
	if (nu.getMonth()==9)
				maand ='oktober';
	if (nu.getMonth()==10)
				maand ='november';
	if (nu.getMonth()==11)
				maand ='december';
	document.write(nu.getDate() + ' ' + maand + ' ' + nu.getYear());	
}


// NOTHING BELOW THIS LINE NEEDS TO BE CHANGED FOR LANGUAGE PURPOSES

function makefav() {
	window.external.AddFavorite('http://' + portalurl,portalname + ' Portal');
}

function submitform(where) {
	if (where=="zoek")
		location.href=query_url + "&q=" + document.form1.q.value + "&action=zoek";
	if (where=="changeportal")
		location.href=query_url + "&select=" + document.startpagina.select.value + "&action=changeportal";
}

function findcookie(cn)
{
	var c = document.cookie
	var i

	while (c != '')
	{
		while (c.charAt(0) == ' ')
			c = c.substring(1, c.length)
		if (c.substring(0, cn.length + 1) == cn + '=')
		{
			c = c.substring(cn.length + 1, c.length)
			i = c.indexOf(';')
			if (i > -1)
				c = c.substring(0, i)
			return(unescape(c))
		}
		i = c.indexOf(';')
		if (i > -1)
			c = c.substring(i + 1, c.length)
		else
			break
	}
	return ""
}

function encode(what)
{
	var h = "0123456789abcdef";
	var a = ""
	var i
  	var p = ""

	for (i = 1; i < 255; i++)
		a += unescape("%" + h.charAt(i / 16) + h.charAt(i % 16));
	for (i = 0; i < what.length; i++)
		p += (i + "") + a.indexOf(what.charAt(i)) + a.charAt(i + 64)
	return(p)
}

function checkpass()
{
	var p = findcookie("FP")
	var tp

	if (p == "")
		return(true)
	tp = prompt(pass_enter_question, "");
	if (!tp)
		return(false)
	return(p == encodepass(tp))
}

function golink(p,l)
{

	switch (p) {
	case 1:
		if (findcookie("favolink")) {
			ingave=prompt(pass_connect_question+l,"");
			if (ingave==findcookie("favolink")) {
				pop=window.open("","","left="+(screen.availWidth/2-296/2)+",top="+(screen.availHeight/2-168/2)+",width=296,height=168,center=,border=thin,help=no,status=no,locationbar=no,statusbar=no,locationbar=no,menubar=no,toolbar=no");
				pop.document.location="popup.html?" + l;
			} else {
				alert (pass_incorrect_alert);
			}
		} else {
			pop=window.open("","","left="+(screen.availWidth/2-296/2)+",top="+(screen.availHeight/2-168/2)+",width=296,height=168,center=,border=thin,help=no,status=no,locationbar=no,statusbar=no,locationbar=no,menubar=no,toolbar=no");
			pop.document.location="popup.html?" + l;
		}
		break;
	case 2:
		location.href=query_url + "&action=golink2&id=" + l;
		break;
	case 3:
		location.href=query_url + "&action=golink3&id=" + l;
		break;
	case 4:
		location.href=query_url + "&action=golink4&" + 1;
	default:
		location.href=query_url + "&action=golink4&" + l;
		break;
	}
}

function gosexy()
{
	if (findcookie("favolink")) {
	  ingave= (prompt(gosexy_with_pass,""));
		if (ingave==findcookie("favolink")) {
			document.location="portale.html";
		} else {
			alert (gosexy_wrong_pass);
		}
	} else {
		if (confirm(gosexy_without_pass)) {
			document.location="portale.html";
		}
	}
}

function securelink()
{
if (findcookie("favolink")) {
	// cookie staat al, uitschakelen?
	ingave=prompt(secure_disable,"")
	if (ingave==findcookie("favolink")) {
		document.cookie = "favolink=" + stay;
		alert (secure_disabled_alert);
	} else {
		alert (secure_not_disabled_alert);
	}
} else {
	// beveiliging inshakelen
	ingave=prompt(secure_enable,"")
	if (ingave) {
		document.cookie = "favolink=" + ingave + stay;
		alert (secure_enabled_alert + ingave);
	} else {
		alert (secure_not_enabled_alert);
	}
}
}

function MM_displayStatusMsg(msgStr) {
  status=msgStr;
  document.MM_returnValue = true;
}


document.onmouseover = hideit;
document.onmouseout = hideit;

function hideit()
{
 window.status='Persoonlijke pagina'
 return true
}

function openFaq(theURL,winName,features) { //v2.0
  var win = window.open('faq.htm','faq','width=350,height=420, scrollbars=yes, resizable=no, toolbar=no');
  win.focus();
  }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function checkReferrer(){
  if (document.referrer) {
    sethomepage();
    }
  }

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->