$(document).ready(function(){ 

	var girls = ['Anastasia', 'Anna', 'Dasha', 'Dina', 'Elena', 'Evgeniya', 'Julia',
		'Karina', 'Katya', 'Kristina', 'Larisa', 'Lily', 'Ludmila', 'Marina', 'Masha',
		'Nastya', 'Natasha', 'Olga', 'Svetlana', 'Tatyana', 'Viktoria', 'Yana'];
	
	var phrases = [
		'Hello dear! I feel lonely. How are you doing?',
		'Hi baby, I want to have fun. And you?',
		'Sweetheart! Would you to talk to me now?',
		'Hello! If you and I like each other, will you agree me to come to visit you some day? Will you be free from work? Can you spend time with me?',
		'Hi Honey, I wish to get to know you. Please contact me now and tell me more about yourself. I\'ll tell you about me if you are interested. OK?',
		'I\'m alone for a long time. Maybe you are the man for me? Write me back right now!',
		'Hi Prince! Look into my eyes. Tell me what you see? I need a man. Can you help me with it?',
		'Nice to meet you! Give me your best kiss and I will tell you something special..',
		'I am attached another sexy pictures in my profile. Would you like to see?',
		'Hello, how are you today? I\'m really glad to meet you at this web-site :) I don\'t used to write to a stranger men first, but why not? And what about you? What can change your mood? Wish you a good day and waiting for your replay with impatience!',
		'Helooo.This message can be a surprise for you but it is a nice surprise I hope :) I\'m sensitive, caring person, womanly and gentle, a charming lady with easy-going character and open heart. Answer me now! Kiss kiss!',
		'Hi, my Dear! Look at me carefully! Maybe you are looking for me and I am looking for you? I\'d like to tell you a little more about me. If you wish to hear write me just now!',
		'Hello my darling!!! Do you need very sensual, passionate, sexy, loving, caring, honest girl? Don\'t waste your time and write me just now!',
		'Hello! What do you think about trip to my dream? I will show you a wonderful world. Are you ready to travel with me? I wait for your answer.',
		'Hi, the person I do not know yet!!! We have never met and we have never seen each other eyes but still I am sure that when we will there will be sparkles all around. This must be a bit weird for the woman to tell such things but I have the feeling that there is something great about you and me in case we will be together.The life is a risk and I am ready to give it a try. He who never risks never wins so lets do this. If you agree I wait for your answer now!',
		'Hi dear, I\'m enjoying life, like friendly, versatile and honest people. My friends said that I extraordinary and funny girl, people love me or not, but nobody become bored. :)) I would like to have communication with pleasant gentlemen from another country, it is very interesting and unusual for me to try finding my Love this way. Would you like communicate with me?',
		'I will make your heart beat faster... Are you ready to lose your mind and deeply fall in love? But what is "love" for me? In an easy way love can not be described. Love is a feeling. It is a mixture, some happiness, joy, fun, care, tenderness, devotion and passion.I want to find a real man to share my life with. ......who knows, it could be you..... What do you think about it?',
		'Hi darling, I am a woman who can understand loving man, even without words, understands his needs, without anything but seeing his eyes. I know when to laugh, when to be serious, or when to take care of you when you feel sad. It?s the most complicated instrument of all times, two people finding this indefinable link between them. And it is so overwhelmingly beautiful when it happens. We can have all that........lets make first steps to each other. Write me!',
		'Hi there dearest! What can you say about my photo?Hope we will find much in common! How about some chat with me now?',
		'My Dear! If you like me send me a kiss!',
		'I believe that every woman has her own mystery and she can\'t give you the key to her mystery at once but she can give you hints that will help you to guess this mystery. I think that it is quiet boring when woman tells that she is nice, kind, calm, easy-going etc, I want to tell you at once that I am different, I have passionate nature and strong character, I am ambitious and goal-oriented, I am hot and smart but what is hidden behind this image of strong lady? Do you want to know me better?',
		'Darling, I\'d like to meet you! Do you want?'
	];
	
	// Add popup div to page
	$('body').append(
		'<div id="popup_div">' +
			'<div class="popup_header">' +
				'<img class="popup_close" title="Close" src="/images/popup_banner/popup_close.png" />' +
			'</div>' +
			'<div class="popup_content">' +
				'<a href="/login"><img class="popup_photo" align="left" /></a>' +
				'<a class="popup_name" href="/login"></a>' +
				'<div class="popup_phrase"></div>' +
				'<div class="popup_answer">' +
					'<a href="/login">' +
						'<img src="/images/popup_banner/popup_answer.png" />' +
					'</a>' +
				'</div>' +
			'</div>' +
		'</div>'
	);

	var ind = Math.floor(Math.random() * girls.length);
	$('#popup_div img.popup_photo')
		.attr('src', '/images/popup_banner/' + girls[ind] + '.jpg')
		.load(function() {
			$('#popup_div').animate({'opacity': 'show', 'height': 'show'}, {duration: 1000});
		});
	$('#popup_div a.popup_name').text(girls[ind]);
	$('#popup_div div.popup_phrase').text(phrases[Math.floor(Math.random() * phrases.length)]);

	$('#popup_div img.popup_close').click(function() {
		$('#popup_div').animate({'opacity': 'hide', 'height': 'hide'}, {duration: 400});
	});
});
