// This has been autogenerated by \lib\JSMin\jsmin.exe, do not modify manually

$(window).load(function(){var $links=$('p#share-options a.more, p#wallpaper a.more');$('div.show').each(function(){$(this).removeClass('show');});$($links).click(function(){return reveal(this);});$($links).hover(function(){$(this).addClass('roll');},function(){$(this).removeClass('roll');});$('p.close-box a').click(function(){return contract(this);});$('.error, .confirm').each(function(){revealCorrespondingPanel(this);});$('input#embededCode').focus(function(){$(this).select();});$('input#embededCode').click(function(){$(this).select();});});function revealCorrespondingPanel(source){var div=getParentDiv(source);var correspondingLinkHref='#'+div.id;$('a[href='+correspondingLinkHref+']').click();}
function reveal(source){var id=source.href.split("#");var id=id[1];$('p#share-options a.more, p#wallpaper a.more').removeClass('roll active');$(source).addClass('active');if($('div#see-options div').is(':visible')||$('div#see-wallpaper').is(':visible')){if(!$('div#'+id).is(':visible')){$('div#see-options div:visible').slideUp("slow",function(){expand(id);});$('div#see-wallpaper:visible').slideUp("slow",function(){expand(id);});}else if($('div#'+id).is(':visible')){$('div#'+id).slideUp('slow');$(source).removeClass('active');}}else{expand(id);}
return false;}
function expand(id){$('#'+id).slideDown("slow");}
function contract(source){var div=getParentDiv(source);$('#'+div.id).slideUp();$("p#share-options a.more, #wallpaper a.more").removeClass('roll active');return false;}
function getParentDiv(source){return $(source).parents('div')[0];}