');
setTimeout("$('#recentView_"+rV+"').slideDown(500)",100);
$('#recentViewImg_'+rV).fancybox();
}
}
}
$(document).ready(function() {
$.each($('#imgHolder').find('img'),function(){
holder = $(this).parent();
content = $(holder).html();
picSrc = $(this).attr('src').replace('_thumb','');
toput = ''+content+'';
$(holder).html(toput);
});
$("a[rel=fancybox]").fancybox({
'callbackOnShow': memorizePic
});
//if not (IE4+ or NS6+), then check different way:
if (typeof window.navigator.cookieEnabled == "undefined") {
document.cookie = "testcookie=val";
cookiesEnabled = (document.cookie.indexOf("testcookie=") != -1);
} else {
cookiesEnabled = window.navigator.cookieEnabled;
}
if ( cookiesEnabled === false ){
//
}else{
genFromCache();
}
});
function writeToCache( imgSrc ){
if( cookiesEnabled ){
parsedRecent = $.cookie(COOKIE_NAME);
if( parsedRecent == null || parsedRecent == "" ) parsedRecent = imgSrc;
else{
pieces = parsedRecent.split('|');
if( pieces.length >= 5 ){
parsedRecent = "";
for(i=0;i 5 ){ removeLastPic() }
}
function showPic(imgSrc,smallImgSrc){
$('#recentGalleryViews').prepend('');
setTimeout("$('#recentView_"+rV+"').slideDown(500)",100);
$('#recentViewImg_'+rV).fancybox();
}
function removeLastPic() {
pics = $('#recentGalleryViews').children();
lastPic = pics.length-1;
$(pics[lastPic]).slideUp(500);
setTimeout('$(pics['+lastPic+']).remove()',1000);
}