
/*******************************************************************************

        Theme for PHP-Fusion V7.01
        Theme Name: 2Dark
        Description: Very minimal design, to bring out the content on the page.
    
        Version: 1.0
        Tags:  dark, two-columns, fixed-width.
        Modification: instructions are inside of README file.
        
        Author: SimpleVision
        email: design@simplevision.dk
        site: http://simplevision.dk    

        Copyright (c) 2010 SimpleVision.dk
        Licences: AGPLv3     
    
******************************************************************************/


$.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;width:950px;margin:0 auto;padding:10px;padding-top:0'></div>";var photos=$(".photogallery_album_photo_link");var info=$(".photogallery.css420");var title=info.find("div.tbl2").first();var width=$("#main").width()-2;var thumbSize=(width-2*options.thumbsPerRow)/options.thumbsPerRow;title.hide();$(".photogallery.css430").remove();info.find("td[valign*='bottom']").hide();info.find("table").width('100%');$("#bannerdump").append(slidediv).find("#php").html(info.find("table"));photos.each(function(){var name=$(this).parent().find("strong");$(this).append('<b>'+name.text()+'</b>');name.hide();$(this).hover(function(){$(this).css("position","relative");var img=$(this).find("img");var margin=img.height()-(thumbSize/2);img.css("position","absolute").stop().animate({top:thumbSize-10},300)},function(){$(this).find("img").stop().animate({top:0},100)})});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").css("cursor","pointer").click(function(){search.slideToggle()});$("#main").css("min-height",($(".content").height()-10));$("#side .cssglobal_100 div").css("text-align","left");$("#side #navigation").parent().css("padding","0")})};
 
