// JavaScript Document



//tipsy objects
$(function() {    

	$(".login-tip").tipsy({gravity: "n"});
	$(".ajaxgalswitch").tipsy({gravity: "n"});
	$(".galimg").tipsy({gravity: "n"});
	$("img.tipup").tipsy({gravity: "s"});
	$("a.lang_switch").tipsy({gravity: "n"});
	

});

/*autogrow
$(document).ready(function() {
	
	$("textarea.comtextarea").autogrow();
	$("textarea.sbmsgtextarea").autogrow();
							
});*/

/*
Tilte:						Ajax gallery (sc)
Version:					v1.0.0
WS Version Compatibility:	v4.2.1b
--------------------------------------------------------- 
Copyright © 2009 By:
Mikkel Oscar Larsen, F1skr, OscarDev.net
mikkeloscar@hotmail.com
--------------------------------------------------------- */
$(function() {
	$(".ajaxgalswitch").click(function()
	{
		var picID = $("#picID").val();
		var move = $(this).attr("id");
		var dataString = 'picID='+ picID + '&move=' + move;

		$("#ajaxpic").html('<center><img src="images/ajax-loader.gif" style="margin:50px 0;" alt="loading" /></center>');
		$.ajax({
		type: "POST",
		url: "sc_ajaxgallery.php?action=ajaximg",
		data: dataString,
		cache: false,
		success: function(html){
			$("#ajaxpic").hide();
			$("#ajaxpic").html(html);
			$("#ajaxpic").fadeIn("fast");
			}
		});

	});
});
