/*
 * SimpleModal Basic Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2010 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: basic.js 254 2010-07-23 05:14:44Z emartin24 $
 */

jQuery(function ($) {
	// Load dialog on page load
	/*$('#active-registration').modal({
		opacity:75,
		overlayCss:{ backgroundColor:"#b5dfab" },
		containerCss:{
			backgroundColor:"#e3f6de",
			borderColor:"#68AF59",
			borderStyle:"dashed",
			borderWidth:1,
			height:120,
			padding:0,
			width:500
		},
		overlayClose:false
	});*/
	

	// Load dialog on click
	
	$('#basic-modal .basic').click(function (e) {
		
		/*$('<div></div>').load('http://' + window.location.hostname + '/login/forgot_pass.php').modal({
			opacity:50,
			overlayCss:{ backgroundColor:"#b5dfab" }
		});*/
		
		var src = 'http://' + window.location.hostname + '/login/forgot_pass.php';
		$.modal('<iframe src="' + src + '" scrolling="no" height="100" width="484" style="border:0">', {
			closeHTML:"<a class='modalCloseImg' title='Uždaryti'></a>",
			containerCss:{
				backgroundColor:"#eae5e1",
				borderColor:"#51463f",
				borderStyle:"dashed",
				borderWidth:1,
				height:120,
				padding:0,
				width:500
			},
			overlayClose:false,
			opacity:70,
			overlayCss:{ backgroundColor:"#51463f" }
		});
		
		return false;
	});
});
