var lingua='en';
function IsNumeric(sText)
{
var ValidChars = "0123456789.";
var IsNumber=true;
var Char;
for (i = 0; i < sText.length && IsNumber == true; i++)
{
Char = sText.charAt(i);
if (ValidChars.indexOf(Char) == -1)
{
IsNumber = false;
}
}
return IsNumber;
}
function trasferiscicredito(importo,id_prezzo) {
if(importo!=0) document.form_trasferiscicredito.importo.value=importo;
else document.form_trasferiscicredito.importo.value=document.form_trasferiscicredito.importo.value.replace(",",".")*1;
document.form_trasferiscicredito.id_prezzo=id_prezzo;
if(document.form_trasferiscicredito.importo.value<0.1) {
alert("With this payment system the minimum you can pay without registration is 0.10 euro");
document.form_trasferiscicredito.importo.value="";
document.form_trasferiscicredito.importo.focus();
return;
} else document.form_trasferiscicredito.submit();
}
function Trim(StrToTrim) {
if (typeof StrToTrim != "string") return StrToTrim;
var StrBlank = StrToTrim.substring(0, 1);
while (StrBlank == " ") {
StrToTrim = StrToTrim.substring(1, StrToTrim.length);
StrBlank = StrToTrim.substring(0, 1);
}
StrBlank = StrToTrim.substring(StrToTrim.length - 1, StrToTrim.length);
while (StrBlank == " ") {
StrToTrim = StrToTrim.substring(0, StrToTrim.length-1);
StrBlank = StrToTrim.substring(StrToTrim.length-1, StrToTrim.length);
}
while (StrToTrim.indexOf(" ") != -1) {
StrToTrim = StrToTrim.substring(0, StrToTrim.indexOf(" "));
StrToTrim += StrToTrim.substring(StrToTrim.indexOf(" ") + 1, StrToTrim.length);
}
return StrToTrim;
}
function urlencode(CODE){
var plaintext = CODE;
var SAFECHARS = "0123456789" +
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
"abcdefghijklmnopqrstuvwxyz" +
"-_.!~*'()’‘";
var HEX = "0123456789ABCDEF";
var encoded = "";
for (var i = 0; i < plaintext.length; i++ ) {
var ch = plaintext.charAt(i);
if (ch == " ") {
encoded += "+";
} else if (SAFECHARS.indexOf(ch) != -1) {
encoded += ch;
} else {
var charCode = ch.charCodeAt(0);
if (charCode > 255) encoded += "+";
else {
encoded += "%";
encoded += HEX.charAt((charCode >> 4) & 0xF);
encoded += HEX.charAt(charCode & 0xF);
}
}
}
return encoded;
}
function mostradiv(div) {
if(document.getElementById(div).style.display!="block") document.getElementById(div).style.display="block";
else document.getElementById(div).style.display="none";
}
function controlla_login() {
if(document.form_login.username.value=="" || document.form_login.password.value=="") {
alert("Inserire username e password");
return false;
}
return true;
}
function n_add() {
if(document.getElementById("n_email").value!="") location.href="https://www.mondocamgirls.com/"+lingua+"/newsletter.html?azione=iscriviti&email="+document.getElementById("n_email").value;
}
function n_del() {
if(document.getElementById("n_email").value!="") location.href="https://www.mondocamgirls.com/"+lingua+"/newsletter.html?azione=cancellati&email="+document.getElementById("n_email").value;
}
function comprafoto(id_foto) {
if(confirm('You sure you want to buy the photo?')) location.href="https://www.mondocamgirls.com/jumpfoto.php?id_foto="+id_foto+"&lingua="+lingua;
else return;
}
function data() {
var x=new Date;
var anno=x.getFullYear(), mese=x.getMonth()+1, giorno=x.getUTCDate(), ora=x.getHours(), minuti=x.getMinutes();
if(mese<10) mese="0"+mese;
if(giorno<10) giorno="0"+giorno;
if(ora<10) ora="0"+ora;
if(minuti<10) minuti="0"+minuti;
return anno+""+mese+""+giorno+""+ora+""+minuti;
}
(function(w){var F=w(window),u,f,G=-1,n,x,E,v,y,M,r,m=!window.XMLHttpRequest,s=[],l=document.documentElement,k={},t=new Image(),K=new Image(),I,a,g,p,J,d,H,c,B,z,L;w(function(){w("body").append(w([I=w('
')[0],a=w('')[0],H=w('')[0]]).css("display","none"));g=w('').appendTo(a).append(p=w('').append([J=w('').click(C)[0],d=w('').click(e)[0]])[0])[0];c=w('').appendTo(H).append([w('').add(I).click(D)[0],z=w('')[0],B=w('')[0],L=w('')[0],w('')[0]])[0]});w.slimbox=function(P,O,N){u=w.extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78],facebookContent:""},N);if(typeof P=="string"){P=[[P,O]];O=0}y=F.scrollTop()+(F.height()/2);M=u.initialWidth;r=u.initialHeight;w(a).css({top:Math.max(0,y-(r/2)),width:M,height:r,marginLeft:-M/2}).show();v=m||(I.currentStyle&&(I.currentStyle.position!="fixed"));if(v){I.style.position="absolute"}w(I).css("opacity",u.overlayOpacity).fadeIn(u.overlayFadeDuration);A();j(1);f=P;u.loop=u.loop&&(f.length>1);return b(O)};w.fn.slimbox=function(N,Q,P){Q=Q||function(R){return[R.href,R.title]};P=P||function(){return true};var O=this;return O.unbind("click").click(function(){var T=this,V=0,U,R=0,S;U=w.grep(O,function(X,W){return P.call(T,X,W)});for(S=U.length;R=0)?D():(N(O,u.nextKeys)>=0)?e():(N(O,u.previousKeys)>=0)?C():false}function C(){return b(x)}function e(){return b(E)}function b(N){if(N>=0){G=N;n=f[G][0];x=(G||(u.loop?f.length:0))-1;E=((G+1)%f.length)||(u.loop?0:-1);q();a.className="lbLoading";k=new Image();k.onload=i;k.src=n}return false}function i(){a.className="";w(g).css({backgroundImage:"url("+n+")",visibility:"hidden",display:""});w(p).width(k.width);w([p,J,d]).height(k.height);if(u.facebookContent){w(z).html(u.facebookContent.replace("{url}",f[G][0]))}w(B).html(f[G][1]||"");w(L).html((((f.length>1)&&u.counterText)||"").replace(/{x}/,G+1).replace(/{y}/,f.length));if(x>=0){t.src=f[x][0]}if(E>=0){K.src=f[E][0]}M=g.offsetWidth;r=g.offsetHeight;var N=Math.max(0,y-(r/2));if(a.offsetHeight!=r){w(a).animate({height:r,top:N},u.resizeDuration,u.resizeEasing)}if(a.offsetWidth!=M){w(a).animate({width:M,marginLeft:-M/2},u.resizeDuration,u.resizeEasing)}w(a).queue(function(){w(H).css({width:M,top:N+r,marginLeft:-M/2,visibility:"hidden",display:""});w(g).css({display:"none",visibility:"",opacity:""}).fadeIn(u.imageFadeDuration,h)})}function h(){if(x>=0){w(J).show()}if(E>=0){w(d).show()}w(c).css("marginTop",-c.offsetHeight).animate({marginTop:0},u.captionAnimationDuration);H.style.visibility=""}function q(){k.onload=null;k.src=t.src=K.src=n;w([a,g,c]).stop(true);w([J,d,g,H]).hide()}function D(){if(G>=0){q();G=x=E=-1;w(a).hide();w(I).stop().fadeOut(u.overlayFadeDuration,j)}return false}})(jQuery);
function checkmin(importo) {
if(importo<10) {
if(document.getElementById('pagpag_trustpay') !== null) document.getElementById('pagpag_trustpay').style.opacity = "0.4";
if(document.getElementById('pagpag_truevo') !== null) document.getElementById('pagpag_truevo').style.opacity = "0.4";
}else{
if(document.getElementById('pagpag_trustpay') !== null) document.getElementById('pagpag_trustpay').style.opacity = "1.0";
if(document.getElementById('pagpag_truevo') !== null) document.getElementById('pagpag_truevo').style.opacity = "1.0";
}
if(importo<5) {
if(document.getElementById('pagpag_centralpay') !== null) document.getElementById('pagpag_centralpay').style.opacity = "0.4";
if(document.getElementById('pagpag_paysafecard') !== null) document.getElementById('pagpag_paysafecard').style.opacity = "0.4";
if(document.getElementById('pagpag_bitcoin') !== null) document.getElementById('pagpag_bitcoin').style.opacity = "0.4";
}else{
if(document.getElementById('pagpag_centralpay') !== null) document.getElementById('pagpag_centralpay').style.opacity = "1.0";
if(document.getElementById('pagpag_paysafecard') !== null) document.getElementById('pagpag_paysafecard').style.opacity = "1.0";
if(document.getElementById('pagpag_bitcoin') !== null) document.getElementById('pagpag_bitcoin').style.opacity = "1.0";
}
if(importo<0.10) {
if(document.getElementById('pagpag_credito') !== null) document.getElementById('pagpag_credito').style.opacity = "0.4";
if(document.getElementById('pagpag_onshop') !== null) document.getElementById('pagpag_onshop').style.opacity = "0.4";
}else{
if(document.getElementById('pagpag_credito') !== null) document.getElementById('pagpag_credito').style.opacity = "1.0";
if(document.getElementById('pagpag_onshop') !== null) document.getElementById('pagpag_onshop').style.opacity = "1.0";
}
if(importo>350) {
if(document.getElementById('pagpag_trustpay') !== null) document.getElementById('pagpag_trustpay').style.opacity = "0.4";
if(document.getElementById('pagpag_truevo') !== null) document.getElementById('pagpag_truevo').style.opacity = "0.4";
if(document.getElementById('pagpag_centralpay') !== null) document.getElementById('pagpag_centralpay').style.opacity = "0.4";
}
}
function multi_video(importo,id_camgirl,id_prezzo) {
checkmin(importo);
document.form_pagamento.montant.value=importo;
document.getElementById('multi_importo').innerHTML=importo;
document.form_pagamento.divers.value="video|"+id_camgirl+"|"+id_prezzo+"|0";
//document.form_pagamento.posData.value="video|"+id_camgirl+"|"+id_prezzo+"|0||en|"+document.getElementById('multi_email').value;
}
function multi_allvideo(importo,id_camgirl,id_prezzo) {
checkmin(importo);
document.form_pagamento.montant.value=importo;
document.getElementById('multi_importo').innerHTML=importo;
document.form_pagamento.divers.value="allvideo|"+id_camgirl+"|"+id_prezzo+"|0";
//document.form_pagamento.posData.value="allvideo|"+id_camgirl+"|"+id_prezzo+"|0||en|"+document.getElementById('multi_email').value;
}
function multi_allfoto(importo,id_camgirl) {
checkmin(importo);
document.form_pagamento.montant.value=importo;
document.getElementById('multi_importo').innerHTML=importo;
document.form_pagamento.divers.value="allfoto|"+id_camgirl+"|0|0";
//document.form_pagamento.posData.value="allfoto|"+id_camgirl+"|0|0||en|"+document.getElementById('multi_email').value;
}
function multi_show(importo,id_camgirl,id_prezzo) {
if(importo!=0) document.form_pagamento.montant.value=importo;
else {
document.form_pagamento.montant.value=document.form_pagamento.montant.value.replace(",",".")*1;
if(document.form_pagamento.montant.value==0) document.form_pagamento.montant.value=15;
importo=document.form_pagamento.montant.value;
}
checkmin(importo);
document.getElementById('multi_importo').innerHTML=importo;
document.form_pagamento.divers.value="show|"+id_camgirl+"|"+id_prezzo+"|0";
//document.form_pagamento.posData.value="show|"+id_camgirl+"|"+id_prezzo+"|0||en|"+document.getElementById('multi_email').value;
}
function checkEmail(email) {
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (email=='' || !filter.test(email)) {
alert('Check the e-mail address');
return false;
}else return true;
}
function multi_utente() {
if(document.form_pagamento.montant.value<0.10) alert("With this payment system the minimum you can pay without registration is 0.10 euro");
else location.href="http://www.mondocamgirls.com/jumputente.php?divers="+document.form_pagamento.divers.value+"&importo="+document.form_pagamento.montant.value+"&lingua=en";
}
function multi_centralpay() {
document.getElementById('multi_email').value=document.getElementById('multi_email').value.trim();
if(document.form_pagamento.montant.value<5) {
alert("With this payment system the minimum you can pay without registration is 5 euro.\nIf you want to pay lower amounts you must register in the Client Area, recharge with the method you want, and then use the credit even for small purchases by clicking on Credit MondoCamGirls");
} else if(document.form_pagamento.montant.value>350) {
alert("With this payment system the maximum you can pay is 350 euro");
} else if(checkEmail(document.getElementById('multi_email').value)) {
document.form_pagamento.action="https://www.mondocamgirls.com/en/jumpcentralpay.php?email="+document.getElementById('multi_email').value;
document.form_pagamento.submit();
}
}
function multi_paysafecard() {
document.getElementById('multi_email').value=document.getElementById('multi_email').value.trim();
if(document.form_pagamento.montant.value<5) {
alert("With this payment system the minimum you can pay without registration is 5 euro.\nIf you want to pay lower amounts you must register in the Client Area, recharge with the method you want, and then use the credit even for small purchases by clicking on Credit MondoCamGirls");
} else if(document.form_pagamento.montant.value>300) {
alert("With this payment system the maximum you can pay is 300 euro");
} else if(checkEmail(document.getElementById('multi_email').value)) {
document.form_pagamento.action="https://www.mondocamgirls.com/en/paysafecard_execmulti.php?email="+document.getElementById('multi_email').value;
document.form_pagamento.submit();
}
}
function multi_bitcoin() {
document.getElementById('multi_email').value=document.getElementById('multi_email').value.trim();
if(document.form_pagamento.montant.value<5) {
alert("With this payment system the minimum you can pay without registration is 5 euro.\nIf you want to pay lower amounts you must register in the Client Area, recharge with the method you want, and then use the credit even for small purchases by clicking on Credit MondoCamGirls");
} else if(checkEmail(document.getElementById('multi_email').value)) {
document.form_pagamento.action="https://www.mondocamgirls.com/en/jumpbitcoin.php?email="+document.getElementById('multi_email').value;
document.form_pagamento.submit();
}
}
function multi_onshop() {
document.getElementById('multi_email').value=document.getElementById('multi_email').value.trim();
if(document.form_pagamento.montant.value<0.10) {
alert("With this payment system the minimum you can pay without registration is 0.10 euro.\nIf you want to pay lower amounts you must register in the Client Area, recharge with the method you want, and then use the credit even for small purchases by clicking on Credit MondoCamGirls");
} else if(checkEmail(document.getElementById('multi_email').value)) {
document.form_pagamento.action="https://www.mondocamgirls.com/en/jumponshop.php?email="+document.getElementById('multi_email').value;
document.form_pagamento.submit();
}
}
function multi_bitcoincoingate() {
document.getElementById('multi_email').value=document.getElementById('multi_email').value.trim();
if(document.form_pagamento.montant.value<5) {
alert("With this payment system the minimum you can pay without registration is 5 euro.\nIf you want to pay lower amounts you must register in the Client Area, recharge with the method you want, and then use the credit even for small purchases by clicking on Credit MondoCamGirls");
} else if(checkEmail(document.getElementById('multi_email').value)) {
document.form_pagamento.action="https://www.mondocamgirls.com/en/jumpbitcoincoingate.php?email="+document.getElementById('multi_email').value;
document.form_pagamento.submit();
}
}
function multi_regalo(id_camgirl,id_prezzo) {
document.form_pagamento.montant.value=document.getElementById("montant"+id_prezzo).value.replace(",",".")*1;
importo=document.form_pagamento.montant.value;
checkmin(importo);
document.getElementById('multi_importo').innerHTML=importo;
document.form_pagamento.divers.value="regalo|"+id_camgirl+"|"+id_prezzo+"|0";
//document.form_pagamento.posData.value="regalo|"+id_camgirl+"|"+id_prezzo+"|0||en|"+document.getElementById('multi_email').value;
}
var old_video, loop_video, i_video, array_video=new Array();
function slidevideo_on(id, f1,f2,f3,f4,f5) {
array_video = [];
if(f1 !== undefined) array_video.push(f1);
if(f2 !== undefined) array_video.push(f2);
if(f3 !== undefined) array_video.push(f3);
if(f4 !== undefined) array_video.push(f4);
if(f5 !== undefined) array_video.push(f5);
var num=array_video.length;
old_video=document.getElementById("antepvid"+id).src;
document.getElementById("antepvid"+id).src="https://www.mondocamgirls.com/allegati/"+array_video[0];
i_video=1;
loop_video = setInterval(function(){ document.getElementById("antepvid"+id).src="https://www.mondocamgirls.com/allegati/"+array_video[i_video]; if(++i_video==num) i_video=0; }, 500);
}
function slidevideo_off(id) {
document.getElementById("antepvid"+id).src=old_video;
clearTimeout(loop_video);
}
function cancnewsletter() {
document.form_newsletter.azione.value="cancella";
document.form_newsletter.submit();
}
function multi_trustpay2() {
document.getElementById('multi_email').value=document.getElementById('multi_email').value.trim();
if(document.form_pagamento.montant.value<10) {
alert("With this payment system the minimum you can pay without registration is 10 euro.\nIf you want to pay lower amounts you must register in the Client Area, recharge with the method you want, and then use the credit even for small purchases by clicking on Credit MondoCamGirls");
} else if(document.form_pagamento.montant.value>350) {
alert("With this payment system the maximum you can pay is 350 euro");
} else if(checkEmail(document.getElementById('multi_email').value)) {
document.form_pagamento.action="https://www.mondocamgirls.com/"+lingua+"/jumptrustpay2.php";
document.form_pagamento.submit();
}
}
function multi_truevo() {
document.getElementById('multi_email').value=document.getElementById('multi_email').value.trim();
if(document.form_pagamento.montant.value<10) {
alert("With this payment system the minimum you can pay without registration is 10 euro.\nIf you want to pay lower amounts you must register in the Client Area, recharge with the method you want, and then use the credit even for small purchases by clicking on Credit MondoCamGirls");
} else if(document.form_pagamento.montant.value>350) {
alert("With this payment system the maximum you can pay is 350 euro");
} else if(checkEmail(document.getElementById('multi_email').value)) {
const d = new Date();
let diff = d.getTimezoneOffset();
document.form_pagamento.action="https://www.mondocamgirls.com/"+lingua+"/jumptruevo.php?timezone="+diff+"&os="+detectOS();
document.form_pagamento.submit();
}
}
function flag(lingua) {
switch(lingua) {
case 'it':
document.getElementById("descrizione_it").style.display='block';
document.getElementById("bandiera_it").className='bandiera_si';
document.getElementById("descrizione_en").style.display='none';
document.getElementById("bandiera_en").className='bandiera_no';
document.getElementById("descrizione_es").style.display='none';
document.getElementById("bandiera_es").className='bandiera_no';
break;
case 'en':
document.getElementById("descrizione_it").style.display='none';
document.getElementById("bandiera_it").className='bandiera_no';
document.getElementById("descrizione_es").style.display='none';
document.getElementById("bandiera_es").className='bandiera_no';
document.getElementById("descrizione_en").style.display='block';
document.getElementById("bandiera_en").className='bandiera_si';
break;
case 'es':
document.getElementById("descrizione_it").style.display='none';
document.getElementById("bandiera_it").className='bandiera_no';
document.getElementById("descrizione_en").style.display='none';
document.getElementById("bandiera_en").className='bandiera_no';
document.getElementById("descrizione_es").style.display='block';
document.getElementById("bandiera_es").className='bandiera_si';
break;
}
}
function detectOS() {
let userAgent = window.navigator.userAgent,
platform = window.navigator.platform,
macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
iosPlatforms = ['iPhone', 'iPad', 'iPod'],
os = null;
if (macosPlatforms.indexOf(platform) !== -1) {
os = 'Mac OS';
} else if (iosPlatforms.indexOf(platform) !== -1) {
os = 'iOS';
} else if (windowsPlatforms.indexOf(platform) !== -1) {
os = 'Windows';
} else if (/Android/.test(userAgent)) {
os = 'Android';
} else if (!os && /Linux/.test(platform)) {
os = 'Linux';
}
return os;
}