/************************************************************************************* * This script provides the profile pictures' effect. * * It consists of both PHP and JavaScript code for practical and protective reasons. * * No PHP or JavaScript libraries were used. * * * * Author: Viktor Varadi * * * * All rights reserved! * * * *************************************************************************************/ //------------ PHP generated variables START ------------ var l = new Array(184,192,197,201,203,203,201,197,192,184,175,164,153,140,126,112,98,84,70,57,45,34,24,15,9,4,1,0); height = 175; var uname = new Array('karlgeib77','d1kakf','bigeye101','ginamorgan85','sarahsmichlo','benny11','happyman1111','jennycool','viktoredem','carldina','happyprofgirl','samooll','blockzo','Luvthehoney1','Adorable4luv','pelly01','lovingxsoldier','queenandlovely','Hilarious','zinetl2','lovelearning','KathrynRJ','desire2forever','Gigi007','blessme100','FayeNeville2010','simpledimple7','masz4','jdt2010','Judy2010','cutewoman','drwilliamsmith'); var occ = new Array('Contractor','Self-employed Person','Creative Person','Accountant','Clerical Official','Accountant','Engineer','Accountant','Engineer','Sales Professional','Social Worker','Business Person','Computer Professional','Accountant','Retail Professional','Self-employed Person','Civil Engineer','Social Worker','Nurse','Writer','Psychologist','Student','Student','Administration Professional','Real Estate Professional','Social Worker','IT / Telecom Professional','Sales Professional','Nurse','Business Person','Student','Doctor'); var city = new Array('Orlando','Beverly hills','Miami','Decatur','Ohio','Indianapolis','Phoenix','Alameda','St. Louis','Albany','Fort lauderdale','Latham','LAKE WORTH','New York','San Francisco','Ghnet','Hinesville',' coldwater','Minneapolis','Alaska','Chicago','Amish Paradse','Elmwood park','Redlands','Medford','LA','Annapolis','Fresno','Vermont','Texas','Akron','Monahans'); var photo = new Array('../media/photographs/thumbnails/b2c25fda720ecd4cb33cc1b1c521774329ad3c66.jpg','../media/photographs/thumbnails/3325607989f1dbd976f37f5a854d69a3a35e3889.jpg','../media/photographs/thumbnails/74e24163cd530da59a6693a69bb20561b2b47bdd.jpg','../media/photographs/thumbnails/30e1b33166d19dee72bb82dcc8f499b2ce21a22c.jpg','../media/photographs/thumbnails/1b35cc0fde94de5c8355b3439476a7015089358a.jpg','../media/photographs/thumbnails/6a843f8751895c0d1d889fc3d876c1944dd03d14.jpg','../media/photographs/thumbnails/45f90fde4d14a03d2fa528a30361c14d3e5aae8d.jpg','../media/photographs/thumbnails/bb766b66eb1d13a4f9b5e89433ca9f3fe68dac78.jpg','../media/photographs/thumbnails/511740be5d90eb873d6d8fe465549e77dc0f8c8c.jpg','../media/photographs/thumbnails/8c884d30d29703fe7384e7193fa7f8d867a3a5e2.jpg','../media/photographs/thumbnails/611d2a0070a8176256d9da2a9625d7cafa61aa56.jpg','../media/photographs/thumbnails/b3ff423e18eb0aef2c427fee284a1331e812ff0e.jpg','../media/photographs/thumbnails/62335b0ef08ecf2f21ff35152b419f8ef56fb705.jpg','../media/photographs/thumbnails/b97312369b3448be41a78bd0e182bbbb37220c31.jpg','../media/photographs/thumbnails/6e87cf1d6982f1e3d23559f4370f823dc9026e77.jpg','../media/photographs/thumbnails/8a2ae73b40ba067796f5dd7af8ea25ee9117cd2a.jpg','../media/photographs/thumbnails/1c3fc6c761902a64a67d3050871820819e63db1b.jpg','../media/photographs/thumbnails/cb1a8d0a0cc3d889692358fa3a731a36e7db0146.jpg','../media/photographs/thumbnails/1e6d61a146ef652d41b7410c286e4497ef7318c7.jpg','../media/photographs/thumbnails/92ef51837d65dc8ab25cf8a2a57cc4b5c5fd95db.jpg','../media/photographs/thumbnails/c2b751ad05387d078d7f41cc00d4b54a5e7ec0fa.jpg','../media/photographs/thumbnails/a90c9c86ca8968652e1f24a09d6f6af1f4f6344e.jpg','../media/photographs/thumbnails/d842f1863221d42d27f2445fa98255a948754304.jpg','../media/photographs/thumbnails/cf8f36d2a67b8838edd8514dfe2120c5719d6a05.jpg','../media/photographs/thumbnails/b6ced92cbe7fbcc999c83d8b6ced6d29498374c3.jpg','../media/photographs/thumbnails/ca2b13e78176ee5153247f9fa6ea524222d34205.jpg','../media/photographs/thumbnails/1416e635db0636ab1427ad7330f341482934f16e.jpg','../media/photographs/thumbnails/5f6aef83769168483fe02219421002c2424e13c3.jpg','../media/photographs/thumbnails/e8420dcea58c0a8faabba783da2a11301460c9e2.jpg','../media/photographs/thumbnails/da83b05b4b41ee910dced8e06702544fb19eb550.jpg','../media/photographs/thumbnails/96b8fa9808ee3bda8e6bdda6facbdfe00d85081f.jpg','../media/photographs/thumbnails/064fb9f841932a694620a631652d8fa7b5114d15.jpg'); var num_of_places = 8; var num_of_sets = 4; var pause = 3000; var delta = 100; var first_line = Array(0,0,0,0,0,0,0,0,0); var second_line = Array(1,1,1,1,1,1,1,1,1); var step = new Array(0,0,0,0,0,0,0,0,0); last_prof = 0; //------------ PHP generated variables END ------------ function Scroll(col) { //alert(col+" + "+num_of_places+" * "+first_line[col]+" = "+(col+num_of_places*first_line[col])); document.getElementById("prof"+(col+num_of_places*first_line[col])).style['top'] = l[step[col]] - height + "px"; document.getElementById("prof"+(col+num_of_places*second_line[col])).style['top'] = l[step[col]] + "px"; step[col]++; if (step[col] < l.length) setTimeout(function(){Scroll(col)}, 30); else { step[col] = 0; first_line[col] = 1 - first_line[col]; second_line[col] = 1 - first_line[col]; document.getElementById("prof"+(col+num_of_places*second_line[col])).style['top'] = height + "px"; if (col == num_of_places) { Refresh(second_line[col]); setTimeout("Animator()", pause); } } } function Refresh(line) { for (var col=1; col < num_of_places+1; col++) { curr_place = col+num_of_places*line; curr_prof = (last_prof+col)%(num_of_places*num_of_sets); document.getElementById("prof"+curr_place+"_pic").innerHTML = ''; document.getElementById("prof"+curr_place+"_occ").innerHTML = occ[curr_prof]; //document.getElementById("prof"+curr_place+"_age").innerHTML = age[curr_prof]; document.getElementById("prof"+curr_place+"_city").innerHTML = city[curr_prof]; document.getElementById("prof"+curr_place+"_lnk").href = "/dating/view-profile-" + uname[curr_prof] + ".html"; } last_prof = (last_prof+num_of_places)%(num_of_places*num_of_sets); } function Animator() //PHP generated { setTimeout("Scroll(1)", pause+(1-1)*delta); setTimeout("Scroll(2)", pause+(2-1)*delta); setTimeout("Scroll(3)", pause+(3-1)*delta); setTimeout("Scroll(4)", pause+(4-1)*delta); setTimeout("Scroll(5)", pause+(5-1)*delta); setTimeout("Scroll(6)", pause+(6-1)*delta); setTimeout("Scroll(7)", pause+(7-1)*delta); setTimeout("Scroll(8)", pause+(8-1)*delta); } function InitScroller() { Refresh(first_line[1]); Refresh(second_line[1]); setTimeout("Animator()", pause); }