/*!
 * Copyright (c) 2010 Liberty Concepts
 * http://www.libertyconcepts.com
 * All right reserved *
 * @version 1.5
 * @description Put all jQuery code into engine.structure.allBrowsers
 * engine.structure.ie is reserved only for IE lte 8.0 browsers
 */

var engine = {
    structure: {
        init : function(){
            if (!jQuery.support.opacity) { //Change this to jQuery.browser.msie when IE9 will be released.
                this.ie();
                this.allBrowsers();
            }
            else {
                this.allBrowsers();
            }
        },
        ie : function(){
        //HERE GOES jQUERY FOR IE BROWSERS ONLY!
        },
        allBrowsers : function(){
            if ($j("ul.sf-menu").length) {
                $j("ul.sf-menu").supersubs({
                    minWidth:15, //minimum width (in em units) of sub-menus
                    maxWidth:30, //maximum width (in em units) of sub-menus
                    extraWidth:1 //extra width can ensure lines don't sometimes turn over due to slight rounding differences and font-family
                }).superfish({delay:0}).find('ul').bgIframe({
                    opacity:false
                });
            }
        }
    }
}

$j(function(){
    $j.fn.formLabels() //optional: {excludeElts: 'elts to exclude'} see the source for more options
    engine.structure.init();
    plugins.pageTools.init("#contentHere"); //change #contentHere for the selector of block with the main page content
    plugins.externalLinks(); //When specified, browser will open external links in new tab (or window)
    /*
    plugins.flickrFeed({
            cont: "#flickr",
            type: "set",                    //anything other than 'set' will be treated as userID.
            set: "72157607183698849",       //put set number if type: "set", otherwise property will be ignored.
            userId : "",                    //leave blank when working with type: "set", otherwise put userID http://idgettr.com/
            num: 9,                         //how many photos to show on a page.
            limit: 15                       //how many photos to retrive from Flickr.
    });
    */
});
