jQuery(document).ready(function()
{jQuery("a.js-ga").css("display","none");jQuery(".jaccordion").each(function(index)
{active_pane=jQuery(this).attr("active_pane");if(active_pane==undefined)
{active_pane=false;}
else
{active_pane=parseInt(active_pane);}
if(typeof jQuery(this).accordion=='undefined')
{return;}
jQuery(this).accordion({collapsible:true,autoHeight:false,active:active_pane});});jQuery(".jtabs").each(function(index)
{if(typeof jQuery(this).tabs=='undefined')
{return;}
jQuery(this).tabs();});jQuery(".jgallery ul").each(function(index)
{if(index==0)
{var ul_id=jQuery(this).attr('id');var params=window[ul_id];jQuery(this).galleryView(params);if(typeof params.jg_wrapper_css!='undefined')
{var curr_style=jQuery(".gv-gallery").attr("style");jQuery(".gv-gallery").attr("style",curr_style+';'+ params.jg_wrapper_css);}
if(typeof params.jg_frame_css!='undefined')
{var curr_style=jQuery(".gv-frame .gv-img_wrap").attr("style");jQuery(".gv-frame .gv-img_wrap").attr("style",curr_style+';'+ params.jg_frame_css);}}
else
{jQuery(this).parent().html('<div style="border:2px solid red;padding:5px;background-color:yellow;margin:25px 0;width:400px;">NOTE: Only one gallery per page is currently supported.</div>');}});jQuery(".jgallery").each(function(index)
{jQuery(this).css({'display':'block'});});});
