/* Flashback Data Functions
----------------------------------------------------------------*/

/*
* On Page Load
* 
*/

$(document).ready(function() 
{

	/*
	* IE only Stuff
	* 
	*/
	jQuery.each(jQuery.browser, function(i) 
	{
		if($.browser.msie)
		{
			/*
			* Curvy Corners Settings
			* 
			*/
			var settings = 
			{
				tl: { radius: 10 },
				tr: { radius: 10 },
				bl: { radius: 10 },
				br: { radius: 10 },
				antiAlias: true
			}
		
			/*
			* Curvy Corners Listener/Constructor 
			* Set on all elements with .rounded class
			*/
            
			curvyCorners(settings, ".rounded");

		}
	});
	
	/*
        There is nothing to initialize, just start using the script. 
        The TINY.box.show function takes 6 parameters: 
        
        1. the HTML content for the box or the relative path to the AJAX source
        2. a toggle (true/false or 1/0) if the content is via AJAX
        3. the width of the window (use 0 for auto)
        4. the height of the window (use 0 for auto)
        5. a toggle (true/false or 1/0) to animate the window
        6. and the time in seconds to wait before auto hiding the popup (optional)
	*/
	
	
	$(".modal").click(function()
	{
		// debugger;
		var url = $(this).attr("href");
        TINY.box.show(url,true,300,300,true);
        return false;
	});
	
});