
/*******************************************************************************

    Theme for PHP-Fusion V7.01
    Theme Name: 2Minimalistic
    Description: Very minimal design, to bring out the content on the page.
    
    Author: SimpleVision
    Version: 1.0
    Tags:  white,black,red,two-columns,fixed-width,960px.
    Modification: instructions are inside of README file.
    
    email: design@simplevision.dk
    site: http://simplevision.dk
    
    Copyright (c) 2010 SimpleVision.dk
    Licences: AGPLv3 
    
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as
    published by the Free Software Foundation, either version 3 of the
    License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see  http://www.gnu.org/licenses/
    
 ******************************************************************************/
 
 $.fn.MakeFusion=function(options){var defaults={advSearchLocale:'Advanced Search',thumbsPerRow:5};var options=$.extend(defaults,options);return this.each(function(){if(jQuery.browser.msie){try{document.execCommand("BackgroundImageCache",false,true)}catch(err){}}var slidediv="<div id='php' style='min-width:350px;min-width:350px;background:#ffe;'></div>";var photos=$(".photogallery_album_photo_link");var info=$(".photogallery.css420");var title=info.find("div.tbl2").first();var thumbSize=(646-2*options.thumbsPerRow)/options.thumbsPerRow;title.hide();info.children(".panelcap").text(title.text()).append("   &#x25BC;").click(function(){$("#php").slideToggle(800)});$(".photogallery.css430").remove();info.find("td[valign*='bottom']").hide();info.find("table").width('100%');info.append(slidediv).find("#php").html(info.find("table")).hide();photos.each(function(){var name=$(this).parent().find("strong");$(this).append('<b>'+name.text()+'</b>');name.hide()});photos.each(function(){var img=$(this).children("img").first();img.css("min-width",thumbSize).css("min-height",thumbSize);img.css("max-width",thumbSize*1.5).css("max-height",thumbSize*1.5)});info.after(photos.width(thumbSize).height(thumbSize));$(".photogallery_album_photo_link").wrapAll('<div>').parent().addClass("gallery");var content=$(".panelbody.photos form[name='move_form'] td");content.each(function(){});$(".panelbody.photos form[name='move_form']").prepend(content);var search=$("#searchform");search.before("<a id='searchform_toggle'>"+options.advSearchLocale+"  &#x25BC;</a>");$("#searchform_toggle").click(function(){searchsearch.slideToggle()});$("#search_drop_menu").click(function(){$(".the_menu").slideToggle()});$(".the_menu li label").click(function(){$("#search_drop_menu").html($(this).text()+"   &#x25BC;");$("#searchtype").val($(this).attr("title"));$(".the_menu").slideToggle()});$("#main").css("min-height",($(".content").height()-10))})};
