/*********************************************************************************** CellesriaArt.com                                                                ** Copyright (C) 2006-2009 By M.D. Varga                                           ************************************************************************************* FILENAME:     cellesria.js* BY:           Varga, Tanya** DESCRIPTION: *          Template Bootstrap JS**********************************************************************************/// Initialization =================================================================$(document).ready(PageReady);// ================================================================================// Callbacks ======================================================================// --------------------------------------------------------------------------------// Executes when the page is ready.function PageReady(){    // Initialize Drop-Down Menu    //$('ul.sf-menu').superfish();        // Initialize Image Zooming    //$('.zoomimg').zoomImgRollover();        $('.fancybox').fancybox    ({        'titlePosition': 'inside',        'transitionIn' : 'none',        'transitionOut': 'none'    });        $(".various1").fancybox({				'titlePosition'		: 'inside',				'transitionIn'		: 'none',				'transitionOut'		: 'none'	});        /*    $('.ajax-litebox').click(function(e)    {        var id = $(e.target).attr("href");        AjaxLitebox        (            $.trim($(id).children('.ajax-name'  ).text()),            $.trim($(id).children('.ajax-args'  ).text())        );	});    */        /*    $('.ajax-link').click(function(e)    {        var id = $(e.target).attr("href");        AjaxRender        (            $.trim($(id).children('.ajax-target').text()),            $.trim($(id).children('.ajax-name'  ).text()),            $.trim($(id).children('.ajax-args'  ).text())        );    });    */}// --------------------------------------------------------------------------------// ================================================================================// Utility ========================================================================// --------------------------------------------------------------------------------// Render the HTML content from the result of the AJAX content request into a// litebox.//// name:   (String) Content Renderer Name// args:   (String) Renderer Argumentsfunction AjaxLitebox(name, args){    // Setup Base and then Add Arguments    var dataArray = { '_n': name, '_a': args };    var ajaxPath  = $('#path').text() + '/ajaxLoad.php';        $.ajax(    {        url: ajaxPath,        data: dataArray,        cache: false,        success:            function(html)            {                $.fancybox(html);            },        error:            function(xhr, stat, exp)            {                // TODO: Better error message                $.fancybox('Error: ' + stat);            }    });}// --------------------------------------------------------------------------------// Render the HTML content from the result of the AJAX content request into the// target DOM element.//// target: (String) Target DOM Element ID// name:   (String) Content Renderer Name// args:   (String) Renderer Argumentsfunction AjaxRender(target, name, args){    // Setup Base and then Add Arguments    var dataArray = { '_n': name, '_a': args };    var ajaxPath  = $('#path').text() + '/ajaxLoad.php';        $.ajax(    {        url: ajaxPath,        data: dataArray,        cache: false,        success:            function(html)            {                $(target).empty();                $(target).append(html);            },        error:            function(xhr, stat, exp)            {                $(target).empty();                $(target).append('Error: ' + stat);                // TODO: Better error output            }    });}// --------------------------------------------------------------------------------// ================================================================================
