/*
* SimpleModal Basic Modal Dialog
* http://www.ericmmartin.com/projects/simplemodal/
* http://code.google.com/p/simplemodal/
*
* Copyright (c) 2009 Eric Martin - http://ericmmartin.com
*
* Licensed under the MIT license:
*   http://www.opensource.org/licenses/mit-license.php
*
* Revision: $Id: basic.js 185 2009-02-09 21:51:12Z emartin24 $
*
*/


$(document).ready(function () {
	$('#show_modal').click(function (e) {
		
		$('#basicModalContent').modal();

	});
});


var pos=0;
var need=0;
var smesh=140*4+(4*5.5);

function moveleft()
{
	if((pos+need)>0){ $('#move').css('margin-left',pos-smesh+"px"); pos=pos-smesh;}
}

function move () {moveleft();}

function move_stop() {clearInterval(int);}

function moveright() {if(pos<0){pos=pos+smesh; $('#move').css('margin-left',pos+"px");}}

function move2 () {moveright();}

function move_stop2() {clearInterval(int);}


/*////////////////////////////////*/
var pos_vert=0;
var need_vert=0;
var smesh_vert=140;

function move_top()
{
	if((pos_vert+need_vert)>0){ $('#move').css('margin-top',pos_vert-smesh_vert+"px"); pos_vert=pos_vert-smesh_vert;}
}


function move_down() {if(pos_vert<0){pos_vert=pos_vert+smesh_vert; $('#move').css('margin-top',pos_vert+"px");}}



