var area,fmstartnumber,grange,optimizemenu,overflowtype,pixperpage,resized,showcaptionview,showphotographer,showfilesize,showrelease,viewmode,winH;var Builder,color,date,MACIE5,method,orient,pagetype,q_args,q_id,scriptname,searchinclude,sort,spec_idx,ucats,vcdbrowse;var global=new Object();var afInitObj=new afInit();var afDateObj=new afDate();var afCookieObj=new afCookie();var afCartObj=new afCart();var afLightboxObj=new afLightbox();var afImageObj=new afImage();var afHTMLObj=new afHTML();var afMouseObj=new afMouse();var afPreviewObj=new afPreview();var afSearchObj=new afSearch();var afSystemObj=new afSystem();var afLegalObj=new afLegal();var afInfoObj=new afInfo();var afWindowObj=new afWindow();var afDispatchObj=new afDispatch();var afPageObj=new afPage();gfixDate=afDateObj.fixDate;setCurrentTime=afDateObj.setCurrentTime;gsetCookie=afCookieObj.setCookie;gsetCookie2=afCookieObj.setCookie2;ggetCookie=afCookieObj.getCookie;gGetCookieDom=afCookieObj.getCookieDomain;gdeleteCookie=afCookieObj.deleteCooke;gwhichindex=afCookieObj.setCookieGwhichindex;greleasedselect=afCookieObj.setCookieGreleasedselect;cart_addto=afCartObj.addToCart;cart_build=afCartObj.buildCart;cart_build_act=afCartObj.cart_build_act;cart_check_act=afCartObj.cart_check_act;cart_delete_license=afCartObj.deleteLicenseFromCart;cart_delete_image=afCartObj.deleteImageFromCart;cart_display=afCartObj.displayCart;cart_mod_act=afCartObj.cart_mod_act;cart_reprice=afCartObj.repriceImagesInCart;cart_away=afCartObj.cartAway;cart_check=afCartObj.checkCart;dispatchCart_display=afCartObj.displayDispatchedCart;topcartrefresh=afCartObj.refreshTopCart;lightbox_add2cart=afLightboxObj.addLightboxToCart;lightbox_addto=afLightboxObj.addImageToLightbox;lightbox_build=afLightboxObj.buildLightbox;lightbox_new=afLightboxObj.newLightBox;lightbox_new_send=afLightboxObj.registerLightbox;lightbox_email=afLightboxObj.emailConfirmation;lightbox_email_send=afLightboxObj.emailLightbox;lightbox_mod_act=afLightboxObj.lightbox_mod_act;lightbox_delete=afLightboxObj.deleteLightbox;lightbox_delete_image_enl=afLightboxObj.deleteLightboxFromEnlargeView;lightbox_delete_image=afLightboxObj.deleteImageFromLightbox;lightbox_rename=afLightboxObj.renameLightbox;lightbox_rename_send=afLightboxObj.registerLightboxRename;lightbox_change=afLightboxObj.changeLightbox;make_lightbox_string=afLightboxObj.makeLightboxString;polllb=afLightboxObj.saveLightbox;showhideLB=afLightboxObj.toggleLightbox;simplemessage=afLightboxObj.simpleMessage;test_valid_name=afLightboxObj.validateLightboxName;toplightboxrefresh=afLightboxObj.refreshTopLightbox;fitMeTo=afImageObj.sizeImageToContainer;price_image_act=afImageObj.price_image_act;price_image=afImageObj.priceImage;prloadimg=afImageObj.preLoadImage;twidle_price_img=afImageObj.twidleImagePrice;twidle_price_img_delay=afImageObj.twidlePriceImagedelay;buildpages=afHTMLObj.buildPagination;center_panel=afHTMLObj.centerPanel;coveroff=afHTMLObj.hideCoverLayer;createCoverLayer=afHTMLObj.createCoverLayer;createDisplayPanel=afHTMLObj.createDisplayPanel;dispatchBuildimages=afHTMLObj.dispatchBuildImages;divshim=afHTMLObj.divShim;hidedisplaypanel=afHTMLObj.hideDisplayPanel;html_share_con_opts=afHTMLObj.html_share_con_opts;html_weight_con_opts=afHTMLObj.html_weight_con_opts;html_combined_con_opts=afHTMLObj.html_combined_con_opts;htmlit=afHTMLObj.imageProfile;init_share_radios=afHTMLObj.initShareRadios;showDisplayPanel=afHTMLObj.showDisplayPanel;footer=afHTMLObj.getFooter;mouseSnap=afMouseObj.mouseSnap;pfindmouse=afMouseObj.findMouse;getMouseXY=afMouseObj.getMouseCoordinates;previewset=afPreviewObj.previewSet;g=afSearchObj.findSearchType;g_standard=afSearchObj.standardSearch;fsearchprefs=afSearchObj.searchPreferences;writesearch=afSearchObj.writeSearch;writesearch_standard=afSearchObj.writeStandardSearch;hovercopyright=afLegalObj.copyrightNotice;license=afLegalObj.licenseCostWindow;enlarge2=afInfoObj.enlarge2;dispatchEnlarge2=afInfoObj.dispatchEnlarge2;enlarge2_act__generateTierRows=afInfoObj.enlarge2_act__generateTierRows;enlarge2_act=afInfoObj.enlarge2_act;launchwin=afWindowObj.popUp;displayWindow=afWindowObj.displayWindow;displayWindow2=afWindowObj.displayWindow2;maxscreen=afWindowObj.maximizeScreen;dispatchAll=afDispatchObj.dispatchAll;reDispatch=afDispatchObj.reDispatch;checkpageresize=afPageObj.checkPageResize;currentpage=afPageObj.currentPage;setuppagesize=afPageObj.setupPageSize;nextpage=afPageObj.nextPage;prevpage=afPageObj.previousPage;debug=afSystemObj.debug;getVars=afSystemObj.getVars;nada=afSystemObj.empty;afInitObj.init();var MACIE5=global.macIE5;var q_args=global.qArgs;var searchinclude=global.searchInclude;var color=global.color;var method=global.method;var orient=global.orient;var sort=global.sort;var date=global.currentDate;var vcdbrowse=global.VCDBrowse;var spec_idx=global.specIdx;var q_id=global.qID;var scriptname=global.scriptName;var nextlink;var narrowurl;var firstpictureonpage=global.firstPicOnPage;var snum=global.sNum;var tset=global.tSet;var showstartnumber_trap=global.showStartNumberTrap;var currentlbname=global.currentLbName;var currentlblist=global.currentLbList;var feat_requestview=global.featureRequestView;var typeoflbaction=global.typeOfLbAction;var sphotog=global.sPhotog;var pre_q_args=global.preQArgs;var winW=global.winW;var baseurl=global.baseURL;var carnit=global.carnIt;var currentLbdivMode=global.currentLbdivMode;var gloCrop=global.gloCrop;var currentLayer1Mode=global.currentLayer1Mode;var cartview=global.cartView;var enlargeview=global.enlargeView;var viewmode=global.viewMode;var lightbox_built=global.lightBoxBuilt;var currMousedOverObj=global.currentMousedOverObject;var suspendpreviews=global.suspendPreviews;var scr=global.scr;var d=global.currentDate;var currentYear=(typeof(global.currentYear)!='undefined'?global.currentYear:(new Date()).getFullYear());var now=global.currentTime;var bad=global.bad;var agt=global.userAgent;var yourOS=global.userOS;var yourBrowse=global.userBrowser;var ver5=global.netscapeVersion5;var dynimagesname=global.dynamicImagesName;document.currentlbstash="";var lbexpansionspace=global.lbExpansionSpace;var pmousedelta=global.pMouseDelta;var loadImg=new Image();loadImg.src=global.loadImage;var detect=global.userAgentLowerCase;var OS=global.userOSName;var browser=global.userBrowserName;var version=global.userBrowserVersion;var total,thestring;var getpost=global.getPost;var pngsupport=global.pngSupport;var gsession=global.gSession;var debugmode=global.gDebugMode;var gusert=global.gUserT;var gcartimages=global.gCartImages;var gusername=global.gUserName;var gcurrency=global.gCurrency;var gfirstname=global.gFirstName;if(global.scriptName!=""){pixperpage=global.pixPerPage;grange=global.gRange;winH=global.winH;area=global.area;resized=global.resized;c=-1;fmstartnumber=global.fmStartNumber;overflowtype=global.overflowType;optimizemenu=global.optimizeMenu;showphotographer=global.showPhotographer;showrelease=global.showRelease;showfilesize=global.showFileSize;showcaptionview=global.showCaptionView;var output=_handleNonSearch({color:color,date:date,enlargeview:enlargeview,method:method,orient:orient,preQArgs:global.preQArgs,q_args:global.qArgs,qID:global.qID,scriptName:global.scriptName,searchInclude:global.searchInclude,sort:global.sort,specIdx:global.specIdx,ucats:ucats,VCDBrowse:global.VCDBrowse});nextlink=output["nextlink"];narrowurl=output["narrowurl"];}var tempW=global.winW;if(global.featureRequestView){document.thisIsFeatureView=true;}var lbdisplaymode=global.lbDisplayMode;var nodeTree=global.nodeTree;function _globals(){var d=afDateObj.getCurrentDate();global={firstPicOnPage:(typeof (firstpictureonpage)!="undefined"?firstpictureonpage:0),sNum:(snum?snum:0),tSet:(tset?tset:"on"),showStartNumberTrap:0,currentLbName:undefined,currentLbList:undefined,featureRequestView:undefined,typeOfLbAction:undefined,sPhotog:undefined,preQArgs:undefined,qArgs:typeof (q_args)=="undefined"?undefined:q_args,baseURL:undefined,carnIt:1,gloCrop:"",currentLayer1Mode:document.currentLayer1Mode?currentLayer1Mode:"searchresults",currentLbdivMode:undefined,cartView:(cartview?cartview:""),cartViewLocation:"/bin/Cklb?ref=/SwishSearch?cartview=1",enlargeView:(enlargeview?enlargeview:""),lightBoxBuilt:0,currentMousedOverObject:undefined,suspendPreviews:0,scr:"",currentDate:d,currentTime:setCurrentTime(d),currentYear:d.getFullYear(),dynamicImagesName:typeof (dynimagesname)=="undefined"?"dyn_images":"",bad:undefined,userAgent:navigator.userAgent,userAgentLowerCase:navigator.userAgent.toLowerCase(),userOS:navigator.userAgent.indexOf("Mac")!=-1?"Mac":"PC",userOSName:undefined,userBrowser:navigator.appName=="Netscape"?"NS":"IE",userBrowserName:undefined,userBrowserVersion:undefined,netscapeVersion5:navigator.appVersion.substr(22,1)>="5"?"Yes":"",lbExpansionSpace:0,pMouseDelta:[20,-30],loadImage:"/graphics/loading.png",pngSupport:1,getPost:"POST",gSession:ggetCookie("gmpsess"),debugMode:ggetCookie("debugmode"),gUserT:ggetCookie("usert"),gCartImages:ggetCookie("gcartimages"),gUserName:ggetCookie("username")||ggetCookie("gwhichuser"),gCurrency:ggetCookie("currency"),gFirstName:ggetCookie("firstname"),scriptName:typeof (scriptname)=="undefined"?undefined:scriptname,viewMode:(typeof (viewmode)!="undefined")?viewmode:((typeof (scriptname)!="undefined")?ggetCookie("gviewmode"):""),pixPerPage:(typeof (scriptname)!="undefined")?12:pixperpage,gRange:(typeof (scriptname)!="undefined")?"legal":grange,winW:(typeof (scriptname)!="undefined")?700:winW,winH:(typeof (scriptname)!="undefined")?460:winH,area:(typeof (scriptname)!="undefined")?12:area,resized:(typeof (scriptname)!="undefined")?0:resized,fmStartNumber:(typeof (scriptname)!="undefined")?0:fmstartnumber,overflowType:(typeof (scriptname)!="undefined")?"hidden":overflowtype,macIE5:((navigator.userAgent.indexOf("Mac")!=-1)&&(navigator.appName.indexOf("Microsoft")!=-1))?"true":"false",optimizeMenu:(typeof (scriptname)!="undefined")?0:optimizemenu,showPhotographer:(typeof (scriptname)!="undefined")?1:showphotographer,showRelease:(typeof (scriptname)!="undefined")?1:showrelease,showFileSize:(typeof (scriptname)!="undefined")?1:showfilesize,showCaptionView:(typeof (scriptname)!="undefined")?1:showcaptionview,pageType:typeof (pagetype)=="undefined"?undefined:pagetype,lbDisplayMode:ggetCookie("ghidelightbox"),cartPic:"/graphics/cart_enabled_02.gif",searchInclude:searchinclude,builderClass:Builder,nodeTree:undefined,color:color,method:method,orient:orient,sort:sort,qID:q_id,specIdx:spec_idx,VCDBrowse:vcdbrowse};}function _handleNonSearch(_2){var _3=_2["enlargeview"];var _4=_2["method"];var _5=_2["q_args"];var _6=_2["qID"];var _7=_2["ucats"];var _8=_2["color"];var _9=_2["date"];var _a=_2["orient"];var _b=_2["preQArgs"];var _c=_2["scriptName"];var _d=_2["searchInclude"];var _e=_2["sort"];var _f=_2["specIdx"];var _10=_2["VCDBrowse"];var _11=String(_c+"?"+(_8?"&color="+_8:"")+(_a?"&orient="+_a:"")+(_f?"&spec_idx="+_f:"")+(_e?"&sort="+_e:"")+(_9?"&date="+_9:"")+(_d?"&searchinclude="+_d:"")+((typeof (_10)!="undefined"&&_10)?"&VCDBrowse="+_10:""));if(typeof (_5)!="undefined"){if(_5.match(/lb_view=1/)){_11+="&n=1&lb_view=1";}else{if(_5.match(/rid=/)){var rid=_5.match(/rid=([^\&]+)/);if(rid[1]){_11+="&n=1&rid="+rid[1];}}else{if(_5.match(/fn=/)){var fid=_5.match(/fn=([^\&]+)/);if(fid[1]){_11+="&n=1&fn="+fid[1];}}}}}var _14=_11+"&snum=0";if(typeof (_b)!="undefined"){var _15=_b.match(/vmo=([^&]+)/);if(_15&&_15[1]){_11+="&vmo="+escape(_15[1]);}}_11+="&method="+_4+"&q_id="+_6+"&"+_7;if(_3){setTimeout("enlarge2('"+_3+"', 0)",500);}return ({narrowurl:_14,nextlink:_11});}function make_share_control_string(id,_17){if(typeof id==="object"&&id.length){id=id.join("|");}var _18=id+"|||"+_17;return _18;}function switch_share_control(_19){var _1a=ggetCookie(gusername+"sc_on");if(!_1a||_19){viewmode="editing";_1a=1;}else{viewmode="";_1a="";}gsetCookie("gviewmode",viewmode,"","/",gGetCookieDom());gsetCookie(gusername+"sc_on",_1a,"","/",gGetCookieDom());if(!_19){var s=self.location.href;self.location.href=s.replace(/\&sc_boot\=1/g,"");}}function EAD(_1c){if($(_1c)&&$F(_1c)&&!$F(_1c).match(/^\-\- .* \-\-$/)){return true;}else{return false;}}function sos(dex,_1e){if(!_1e||_1e=="share"){var _1f=$F("sharecontrol"+dex);ajax_JSON("/AjaxHandlers/ShareSetShare/"+make_share_control_string(id[dex],_1f)+".json",getpost,"");}if(!_1e||_1e=="weight"){var _20=$F("weightcontrol"+dex);ajax_JSON("/AjaxHandlers/ShareSetWeight/"+make_share_control_string(id[dex],_20)+".json",getpost,"");}if($("cellwrapper"+dex)){$("cellwrapper"+dex).style.backgroundColor="orange";}}function sor(dex){var _22=$A();var _23=unescape(relcon[dex]).toString().replace(/checked="?checked"?/gi,"");$A($("releasecontrol"+dex)).each(function(itm){if(itm.checked){_22.push(itm.value);var _25=new RegExp("value=\""+itm.value+"\"");_23=_23.replace(_25,"value=\""+itm.value+"\" checked=\"checked\"");}});relcon[dex]=escape(_23);_22=_22.join("|");ajax_JSON("/AjaxHandlers/ShareSetRelease/"+make_share_control_string(id[dex],_22)+".json",getpost,"");if($("cellwrapper"+dex)){$("cellwrapper"+dex).style.backgroundColor="orange";}}function validaterad(_26){if(!$(_26)&&!$F(_26)){return;}var _27=_26.name;_27=_27.replace(/(cocon|shcon)/,"");var pix=$F(_26);var dex=$F($(_26).form.dexer);var brd="white";var _2b="pending";if(pix=="n"||pix=="r"||pix.match(/^(notshared|rejected)/)){if(pix=="n"||pix=="notshared"){_2b="notshared";}else{_2b="rejected";}brd="#DF0000";}else{if(!isNaN(pix)||pix=="a"||pix.match(/^shared/)){_2b="shared";brd="#77BB33";}else{if(pix.match(/^hold/)){_2b="hold";}}}if($("d"+_27)){$("d"+_27).style.background=brd;}var _2c=unescape(shsync[dex]);_2c=_2c.split("|");shsync[dex]=escape(_2b+"|"+_2c[1]);var _2d="";if(_26.name.match(/shcon/)){_2d="ShareSetShare";}else{_2d="ShareSetCombined";}ajax_JSON("/AjaxHandlers/"+_2d+"/"+make_share_control_string(_27,pix)+".json",getpost,"");}function share_set_page(_2e){if(_2e==""){return;}var _2f=$A();var _30=_2e+$F("share_control_view")+$F("share_control_home_sphotog");var _31="";if(typeof (cocon)=="object"&&cocon[0]){_31=_2e.toString().substring(0,1);}for(var cnt=showstartnumber_trap;cnt<endnumber;cnt++){if(id[cnt]){_2f.push(id[cnt]);if(_2e.match(/pending|hold/)){$("d"+id[cnt]).style.background="white";}else{if(_2e.match(/notshared|rejected/)){$("d"+id[cnt]).style.background="#DF0000";}else{if(_2e.match(/^shared/)){$("d"+id[cnt]).style.background="#77BB33";}}}var _33=$("shf"+id[cnt]);if(_33){$A(_33.elements).each(function(rad){if(rad.value==_30){rad.checked=true;}else{if(_31&&(rad.value==_31||(_31=="s"&&rad.value.match(/^[a1-4]$/)))){rad.checked=true;}else{rad.checked=false;}}});}var _35=unescape(shsync[cnt]);_35=_35.split("|");shsync[cnt]=escape(_2e+"|"+_35[1]);}}ajax_JSON("/AjaxHandlers/ShareSetShare/"+make_share_control_string(_2f,_30)+".json",getpost,"");return false;}function save_all_releases(){for(var cnt=showstartnumber_trap;cnt<endnumber;cnt++){sor(cnt);}return false;}function release_set_page(_37){if(_37==""){return;}var _38=$A();for(var cnt=showstartnumber_trap;cnt<endnumber;cnt++){if(id[cnt]){_38.push(id[cnt]);var _3a=$("releasecontrol"+cnt);if(_3a){$A(_3a.elements).each(function(chx){var val=chx.value;if(val&&chx.type=="checkbox"){if(val==_37||(_37=="MODEL AND PROPERTY RELEASED"&&(val=="MODEL RELEASED"||val=="PROPERTY RELEASED"))){chx.checked=true;}else{chx.checked=false;}}});}if($("shortrel"+cnt)){var _3d=_37;_3d=_3d.substring(0,16)+(_37.length>16?"...":"");$("shortrel"+cnt).innerHTML="Release: "+_3d;}sor(cnt);}}return false;}function validatechx(_3e){var cc=0;var _40="";$A(_3e.form.elements).each(function(chx){if(chx.checked){cc++;_40=chx.value;}});if(cc>1){var _42=new Object;if(_3e.form.elements["MODEL RELEASED"].checked&&_3e.form.elements["PROPERTY RELEASED"].checked&&_3e.name.toString().match(/(MODEL|PROPERTY) RELEASED/)){_42["MODEL RELEASED"]=1;_42["PROPERTY RELEASED"]=1;_40="MODEL AND PROPERTY RELEASED";}else{_42[_3e.name]=1;_40=_3e.name;}$A(_3e.form.elements).each(function(chx){if(chx.checked&&_42[chx.value]!=1){chx.checked=false;}});}if($("shortrel"+_3e.form.shdex.value)){var _44=_40;_44=_44.substring(0,16)+(_40.length>16?"...":"");$("shortrel"+_3e.form.shdex.value).innerHTML="Release: "+_44;}}function buildimages(_45,_46,_47){if(typeof (cartview)!="undefined"&&cartview){return;}if(typeof (id)=="undefined"){return;}var _48=parseInt(_45)+parseInt(snum)+1;var _49=$H({showstart:_48,snum:_45,viewmode:viewmode,buildmode:_46,resized:_47}).toJSON();try{YAHOO.util.History.navigate("nav",_49);}catch(e){dispatchAll(_49);}}function iconstatus(){if(viewmode&&typeof (iconbackground)!="undefined"){if($("iconlist")){$("iconlist").style.background="none";}if($("iconbig")){$("iconbig").style.background="none";}if($("icontiny")){$("icontiny").style.background="none";}if($("iconmed")){$("iconmed").style.background="none";}if($("iconhuge")){$("iconhuge").style.background="none";}if($("iconlarge")){$("iconlarge").style.background="none";}if(viewmode=="table"){if($("iconbig")){$("iconbig").style.background=iconbackground;}}else{if(viewmode=="list"){if($("iconlist")){$("iconlist").style.background=iconbackground;}}else{if(viewmode=="tiny"){if($("icontiny")){$("icontiny").style.background=iconbackground;}}else{if(viewmode=="med"){if($("iconmed")){$("iconmed").style.background=iconbackground;}}else{if(viewmode=="huge"){if($("iconhuge")){$("iconhuge").style.background=iconbackground;}}else{if(viewmode=="large"){if($("iconlarge")){$("iconlarge").style.background=iconbackground;}}}}}}}}}function writesimilar(_4a,_4b,_4c,_4d,_4e,_4f,_50,_51){if(typeof (writesimilar_custom)=="function"){return writesimilar_custom(_4a,_4b,_4c,_4d,_4e,_4f,_50,_51);}else{return writesimilar_standard(_4a,_4b,_4c,_4d,_4e,_4f,_50,_51);}}function writesimilar_standard(_52,_53,_54,_55,_56,_57,_58,_59){_58=(_58||"");_59=(_59||"");var _5a=st[_53];var _5b=_5a.split(" ");var _5c=_5b[1].split(",");if(_5c.length>1){_5c=_5b[0]+" "+_5c.join(" ");_5b=_5c.split(" ");}var _5d=_5b.length;if(_57=="normal"||_57=="huge"){if(parseInt(_5d)<5){simindicator=_5d;}else{simindicator=4;}}else{if(parseInt(_5d)<4){simindicator=_5d;}else{simindicator=3;}}var _5e="";var _5f=_52;var _60=_52;var _61=15;var _62=15;if(_56=="next"){var n=sw[_53];n++;sw[_53]=n;if(sw[_53]>=_5d){sw[_53]=0;n=0;}_5f=_5b[n];}else{if(_56=="prev"){var n=sw[_53];n--;sw[_53]=n;if(sw[_53]<0){sw[_53]=_5d-1;n=_5d-1;}_5f=_5b[n];}}if(isNaN((sw[_53]+1))){sw[_53]=0;}var _64=172+adminheight;if(_57=="list"||_57=="editing"){_5e+="<TABLE width=298 cellspacing=2 cellpadding=0 border0 height="+_64+"><TR><TD valign=top width=149 align=center>";}_5e+="<table cellpadding=0 cellspacing=0 border=0><TR><TD colspan=2 align=right valign=bottom bgcolor=#c9c9c9 width=18 height=18>";_5e+="<a href=\"javasc"+"ript:enlarge2('"+_52+"'"+","+"'"+_53+"', '"+_5f+"');\" TITLE=\"ID:"+_5f;if(showphotographer==1){"  \r&copy; "+_54;}if(showfilesize){_5e+="  \rSIZE: "+myfilesize;}_5e+="  \r"+"CAPTION: "+_55;if(_57=="huge"){_5e+="\"><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/420/60/"+_5f+".JPG\" border=\"0\" alt=\"loading...\" height=\"190\"></a></TD>";}else{if(_57=="med"){_61=10;_62=14;_5e+="\"><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+_5f+".JPG\" border=\"0\" vspace=\"0\" hspace=\"0\" alt=\"loading...\" height=72></a></TD>";}else{if(_57=="tiny"){_61=8;_62=12;_5e+="\"><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+_5f+".JPG\" border=\"0\" vspace=\"0\" hspace=\"0\" alt=\"loading...\" height=45></a></TD>";}else{_61=12;_62=16;_5e+="\"><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+_5f+".JPG\" border=\"0\" vspace=\"0\" hspace=\"0\" alt=\"loading...\"></a></TD>";}}}_5e+="<TD background=/graphics/similars_rc"+simindicator+".gif valign=top width=9><IMG SRC=/graphics/similars_ru"+simindicator+".gif width=12 height=9></TD></TR><TR height=8>";if(_57=="normal"||_57=="huge"||_57=="large"){_5e+="<TD background=/graphics/similars_ll"+simindicator+".gif height=8 width=12></TD><TD background=/graphics/similars_lc"+simindicator+".gif height=8><div style=\"width: 18px;height:8px;padding:0;margin:0;\"></DIV></TD>";}else{_5e+="<TD colspan=2 background=/graphics/similars_lc"+simindicator+".gif height=8></TD>";}_5e+="<TD width=12 height=8 background=/graphics/similars_lr"+simindicator+".gif></TD></TR></TABLE>";if(_57=="normal"||_57=="med"||_57=="tiny"||_57=="large"){_5e+="<Table cellpadding=0 cellspacing=0 border=0><TR><TD valign=top align=center>";}if(_57!="editing"){_5e+="<DIV class=icons><a href=\"\" onclick=\"lightbox_addto('"+_5f+"'); return false;\" class=iconlink title=\"Add to your current lightbox\">LB+</a>";_5e+="<a href=\"\" onclick=\"return price_image('"+_5f+"','"+rm[_5f]+"');\" class=iconlink Title=\"Price Image\">$</a>";_5e+="<a href=\"javasc"+"ript:enlarge2('"+_5f+"'"+","+"'"+_53+"');\" class=iconlink title=\"Enlarge image and more info\"><font class=eye>i</font></a>";if(_57=="huge"){}else{if(_57=="list"){_5e+="&nbsp;&nbsp;"+(_58?"<a href=\""+_58+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>":"")+"</DIV>";}else{_5e+="</DIV>";}}}if(_57=="med"||_57=="tiny"){_5e+="<font class=xsmall>"+_5f+"</font>";_5e+="</TD><TD valign=top align=center width=40><nobr>";}if(_57=="list"||_57=="normal"||_57=="large"||_57=="editing"){_5e+="</TD><TD valign=\"top\">";}_5e+="<A HREF=\"\" onclick=\"writesimilar('"+_60+"','"+_53+"','";_5e+=_54+"','";_5e+=_55+"','prev','"+_57+"', '"+_58+"','"+_59+"'); return false;\" TITLE=\"show similars\">";_5e+="<IMG SRC=\"/graphics/similars_prev.gif\" border=\"0\" hspace=\"1\" height=\""+_61+"\" width=\""+_62+"\" align=\"absmiddle\"></A>";if(_57=="list"||_57=="huge"||_57=="normal"||_57=="large"||_57=="editing"){_5e+="<font class=xsmall>"+(sw[_53]+1)+" of "+_5d+"</font>";}_5e+="<A HREF=\"\" onclick=\"writesimilar('"+_60+"','"+_53+"','";_5e+=_54+"','";_5e+=_55+"','next','"+_57+"', '"+_58+"','"+_59+"'); return false;\" TITLE=\"show similars\">";_5e+="<IMG src=\"/graphics/similars_next.gif\" border=\"0\" hspace=\"1\" height=\""+_61+"\" width=\""+_62+"\" align=\"absmiddle\"></A></nobr><BR>";if(_57=="med"||_57=="tiny"){_5e+="<font class=xsmall>"+(sw[_53]+1)+" of "+_5d+"</font>";}if(_57=="list"||_57=="editing"){_5e+="<font class=xsmall>ID:"+_5f;if(showphotographer==1){_5e+="  <BR>&copy; "+currentYear+" "+_54;}if(showfilesize){_5e+="<nobr>"+myfilesize+"</nobr>";}_5e+=_59+"<BR>CAPTION: "+_55+"</font><BR>";if(_57=="editing"){_5e+="<br/><a href=\"\" onclick=\"launchwin('/SwishSearch?show_all=1&similar_to="+_5f+"', 'edit sims', 600, 800, 100, 100); return false;\" title=\"Edit Similar Images\">Edit&nbsp;Similar&nbsp;Images</a>";}}if(_57=="huge"){_5e+="</DIV>";}_5e+="</td></TR></TABLE>";if(_58){_5e+="<a href=\""+_58+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>";}if(_56=="start"){return _5e;}if(_56=="prev"){MM_setTextOfLayer("d"+_60,"",_5e);}if(_56=="next"){MM_setTextOfLayer("d"+_60,"",_5e);}}function preloadnextpage(){preloadcurrent=prestart;preloadnextimg();}function preloadnextimg(){preloadcurrent++;if(preloadcurrent<preend&&endnumber<preend){objImage=new Image();Event.observe(objImage,"load",function(){setTimeout("preloadnextimg();",10);});objImage.src="http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+id[preloadcurrent]+".JPG";}}function tellme(){setuppagesize();alert($F("pixperpage")+" browser is "+browser+" and os is "+OS+" width="+document.body.offsetWidth+","+self.innerWidth+","+winW+" winH="+winH+", truevertHeight="+truevertHeight);}function sp(_65,_66,_67,_68){if(_65.id){currMousedOverObj=_65.id;}if(currMousedOverObj!=id[_67]){ajax_JSON("/AjaxHandlers/ImageInfo/"+_66+".json",getpost,null);}sp_act(_65.id,_66,_68,_67,0);}function sp_act(_69,_6a,_6b,dex,_6d){if((!$("previewsSel").selectedIndex||$("previewsSel").selectedIndex!=1)&&suspendpreviews==0){if(_6b=="on"){Event.observe(document,"mousemove",mouseSnap);setTimeout("Event.stopObserving(document, 'mousemove', mouseSnap)",200);Event.observe(document,"mousemove",pfindmouse);if((_69==currMousedOverObj)&&((document.ajaxLoaded&&_6a==document.JSONobj.getImgDat("id"))||_6a==id[dex])){var _6e=true;gloCrop=(_6a==id[dex]?crp[dex]:document.JSONobj.getImgDat("crop"));gloCrop=(gloCrop?gloCrop:"horizontal");var _6f=gloCrop;if(smallscreen=="1"&&(_6f=="panoramic"||_6f=="vertical")){prloadimg(_6a,_6f);}var _70=(_6a==id[dex]?fs[dex]:document.JSONobj.getImgDat("file_size"));if(_70<5){_70="";}else{if(!_70.toString().match(/[A-Za-z]/)){_70+="Mb";}}var _71=(typeof (showdimensions)!="undefined"?(_6a==id[dex]?dim[dex]:document.JSONobj.getImgDat("dimensions")):"");if(_71){var _72=_71.match(/^(\d+)x(\d+)$/);if(_72!=null&&_72.length>1){_71="[&nbsp;"+_72[1]+"px&nbsp;x&nbsp;"+_72[2]+"px&nbsp;]";}}var _73=(_6a==id[dex]?unescape(scp[dex]):document.JSONobj.getImgDat("short_caption"));if(_73&&_73.length>130){var tsc="";for(z=0;z<170;z++){var c=_73.charAt(z);if(_6e==true){if((z>130)&&(c==".")){_6e=false;tsc+=c+" ...";}else{if((z>150)&&(c==" ")){_6e=false;tsc+=" ...";}else{tsc+=c;}}}}_73=tsc;}var _76="";if(typeof (o)=="object"&&typeof (o[dex])!="undefined"){_76=(_6a==id[dex]?o[dex]:document.JSONobj.getImgDat("orig_id"));}else{_76=_6a;}var _77=(_6a==id[dex]?rm[dex]:document.JSONobj.getImgDat("rmrftype"));var _78=(_6a==id[dex]?unescape(pho[dex]):document.JSONobj.getImgDat("photographer"));var _79=(_6a==id[dex]?imr[dex]:document.JSONobj.getImgDat("image_restrictions"));_79=(_79?" :: <span style=\"color:#990000\"> This image has restrictions. Click to View </span>":"");var _7a={imageid:_6a,displayimageid:_76,rmrftype:_77,filesize:_70,shortcaption:_73,dimensions:_71,photographer:_78,imagerestrictions:_79};$("previewpane_metdat_"+_6a).innerHTML=Templates.sp_act__metadata.evaluate(_7a);$("pimid").style.visibility="visible";new Effect.Appear($("pimid"),{duration:0.1});}else{if(_6d<10){_6d++;setTimeout("sp_act('"+_69+"', '"+_6a+"', '"+_6b+"', '"+dex+"', '"+_6d+"')",250);}}}}}function hpoff(){if(currMousedOverObj==""||!currMousedOverObj){if(typeof (mouseX)!="undefined"&&mouseX>parseInt(portSize()[0]/2)){$("pimid").style.left="-500px";}else{$("pimid").style.top="-750px";}}else{new Effect.Appear("pimid",{duration:0.1,from:Element.getOpacity($("pimid"))});}}function hp(){currMousedOverObj="";Event.stopObserving(document,"mousemove",pfindmouse);if(!$("pimid")){return;}new Effect.Fade("pimid",{duration:0.3,from:Element.getOpacity($("pimid"))});setTimeout("hpoff()",300);}function portSize(){var _7b=parseInt(document.body.offsetHeight-20);var _7c=parseInt(document.body.offsetWidth-20);var iX=window.innerWidth;var iY=window.innerHeight;_7c=(iX<_7c?iX:_7c);_7b=(iY<_7b?iY:_7b);return [_7c,_7b];}function MM_setTextOfLayer(_7f,x,_81){var obj=$(_7f);if(obj!=null){if($("pagingrow")&&document.currentLayer1Mode!="searchresults"){$("pagingrow").innerHTML="";}if(document.layers){document.write(unescape(_81));document.close();}else{obj.innerHTML=unescape(_81);}}}function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p){d.MM_p=new Array();}var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++){if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}}function optimize(){var _87=60;var _88="";if(optimizemenu==1&&pagetype=="search"){if(_87<results_total){_88+="<TABLE cellspacing=0 cellpadding=1 border=0>";_88+="<FORM name=\"optimizer\" action=\"#\">";_88+="<TR><TD>";_88+="<SELECT NAME=\"narrow\" ONCHANGE=\"narrowit(this.form.narrow.options[this.form.narrow.selectedIndex].value);\" class=\"smallmenu\">";_88+="<OPTION VALUE=\"#\">Narrow your search results";_88+="<OPTION VALUE=\"colorgray\">Remove black and white images";_88+="<OPTION VALUE=\"colorrgb\">Remove color images";_88+="<OPTION VALUE=\"imagehasrestrictions\">Remove restricted images";_88+="<OPTION VALUE=\"orientationvertical\">Remove verticals";_88+="<OPTION VALUE=\"(orientationhorizontal+OR+orientationpanoramic)\">Remove horizontals";if(spec_idx!="ed"){_88+="<OPTION VALUE=\"lowres\">Remove small scans (< 30 Mb)";}_88+="<OPTION VALUE=\"agefiveyears\">Only show recent images (<5 yrs)";_88+="<OPTION VALUE=\"agetenyears\">Remove very old images (>10 yrs)";_88+="</SELECT></td></tr></form></table>";_88+="";}else{_88+="";_88+="<FORM name=\"optimizer\" action=\"#\"><SELECT NAME=\"narrow\" ONCHANGE=\"expandit(this.form.narrow.options[this.form.narrow.selectedIndex].value);\" class=\"smallmenu\">";_88+="<OPTION VALUE=\"#\">Expand your search results";_88+="<OPTION VALUE=\"deep\">Have IPN members perform a deep search";if(spec_idx!="ne"){_88+="<OPTION VALUE=\"expand\">Show me the broadest set of images";}_88+="</SELECT></form>";_88+="";}}return (_88);}function narrowit(url){if(url=="#"){alert("please select an item from the list");}else{var _8a="/SwishSearch?spec_idx="+spec_idx+"&Keywords="+ukeys+"+NOT+"+url;self.location=_8a;}}function expandit(url){if(url=="#"){alert("please select an item from the list");}else{if(url=="deep"){var _8c="/deepsearch.shtml";self.location=_8c;}else{var _8c="/SwishSearch?synsearch=true&spec_idx=ne&Keywords="+ukeys;self.location=_8c;}}}function checkIt(_8d){place=detect.indexOf(_8d)+1;thestring=_8d;return place;}function popkeys2(oId,_8f,_90){var _91=$(oId);if(_91){if(_91.style.display=="none"){_91.style.display="block";var _92;if($("lbbuttons")){_92=Position.cumulativeOffset($("lbbuttons"))[1];}else{_92=winH;}var _93=_92-Position.cumulativeOffset(_91)[1]+"px";_91.style.maxHeight=_93;_91.style.overflowY="auto";}else{_91.style.display="none";}}if(_90){_8f=$(_90);}if(_8f){if(_8f.innerHTML=="Show keywords"){_8f.innerHTML="Hide keywords";}else{if(_8f.innerHTML=="Hide keywords"){_8f.innerHTML="Show keywords";}}}}function gSetBackpage(){}function afCart(){this.addToCart=addToCart;this.awayCart=awayCart;this.buildCart=buildCart;this.checkCart=checkCart;this.deleteLicenseFromCart=deleteLicenseFromCart;this.deleteImageFromCart=deleteImageFromCart;this.displayCart=displayCart;this.displayDispatchedCart=displayDispatchedCart;this.cart_build_act=cart_build_act;this.cart_mod_act=cart_mod_act;this.cart_check_act=cart_check_act;this.refreshTopCart=refreshTopCart;this.repriceImagesInCart=repriceImagesInCart;function addToCart(id,_95){if(gsession){if(document.JSONobj.getCartDat&&typeof (_95)=="undefined"){for(var cti=0;cti<document.JSONobj.getCartDat("total");cti++){if(id==document.JSONobj.getCartDat("image_id",cti)){alert("That image is already in your Cart");return;}}}if(typeof (_95)=="undefined"){_95=$H({callback:"cart_mod_act(0)"});}else{if(_95.callback&&_95.callback.toString().length>1){_95.callback+=" cart_mod_act(0);";}else{_95.callback="cart_mod_act(0)";}}document.TEXTresp=null;simplemessage("Adding image to Shopping Cart <blink>.</blink>","","LB");if(typeof (_95)=="object"&&_95.Size_opname){Object.extend(_95,{calc_rate:1});}if(typeof (debugmode)!="undefined"){ajax_JSON("/AjaxHandlers/CartAdd/"+id+".json","GET",_95);}else{ajax_JSON("/AjaxHandlers/CartAdd/"+id+".json","POST",_95);}debug("args to json /AjaxHandlers/CartAdd/"+id,_95);}else{window.location="/bin/Cklb?ref=/SwishSearch%3FKeywords%3D"+escape(ukeys)+"%26cartview%3D1&atct="+id;}}function deleteLicenseFromCart(id,_98){if(typeof (_98)!="object"){return;}simplemessage("Removing License from Image<blink>.</blink>","","LB");var _99=$A(_98.opts).join("|");if(_99.toString().length){_98.opts=_99;}if(_98.callback&&_98.callback.toString().length>1){_98.callback+=" cart_mod_act(0);";}else{_98.callback="cart_mod_act(0)";}ajax_JSON("/AjaxHandlers/CartDelLicense/"+id+".json","POST",_98);}function deleteImageFromCart(id){simplemessage("Deleting image from Shopping Cart <blink>.</blink>","","LB");ajax_JSON("/AjaxHandlers/CartDel/"+id+".json","POST","callback=cart_mod_act(0)");}function cart_mod_act(_9b){_9b++;if(!document.JSONobj&&!document.TEXTresp&&_9b<10){setTimeout("cart_mod_act('"+_9b+"')",500);}else{hidedisplaypanel(1);cart_build();if(document.currentLayer1Mode=="cartview"){cart_display("view");}}}function repriceImagesInCart(_9c){if(typeof (_9c)=="undefined"){_9c=$H({callback:"cart_mod_act(0)"});}else{if(_9c.callback&&_9c.callback.toString().length>1){_9c.callback+=" cart_mod_act(0);";}else{_9c.callback="cart_mod_act(0)";}}ajax_JSON("/AjaxHandlers/CartReprice/all.json","POST",_9c);}function awayCart(){top.location="/bin/Cart?op=ckout";}function checkCart(){simplemessage("<a style=\"cursor:pointer; text-decoration:underline;\" title=\"click here if you find you are waiting too long to load.\" onclick=\"cart_check();\">Tabulating Shopping Cart <blink>.</blink> </a>","","LB");ajax_JSON("/AjaxHandlers/CartInfo/open.json","POST",{"callback":"cart_check_act(); cart_display();"});}function cart_check_act(){if(document.JSONobj&&typeof (document.JSONobj.getCartDat)=="function"){var _9d=1;if(document.JSONobj.getCartDat("total")>0){for(cti=0;cti<document.JSONobj.getCartDat("total");cti++){if(document.JSONobj.getCartDat("price",cti)){if(!(document.JSONobj.getCartDat("price",cti)!="null"&&document.JSONobj.getCartDat("price",cti)>0)){_9d=0;}}else{_9d=0;}}}else{_9d=0;}if(_9d==1){cart_away();}else{alert("There are unlicensed images in your cart, or it is empty.  To license image(s) first click the 'specify usage and calculate fee' link for each image in your cart and use the Rate calculator. Rates vary based on usage.");topcartrefresh();}}}function displayCart(_9e){if(document.cart_display_lock){return;}var _9f=$H({showstart:"cartview",snum:firstpictureonpage,viewmode:"cartview",flp:_9e}).toJSON();if(_9e){dispatchAll(_9f);}else{try{YAHOO.util.History.navigate("nav",_9f);}catch(e){dispatchAll(_9f);}}}function buildCart(_a0){currentLbdivMode="cart";$("LBdiv").style.height="130px";if(_a0=="changing"){simplemessage("<a style=\"cursor:pointer; text-decoration:underline;\" title=\"click here if you find you are waiting too long to load.\" onclick=\"cart_build('changing_again');\"> Loading Shopping Cart <blink>.</blink></a>","","LB");}ajax_JSON("/AjaxHandlers/CartInfo/open.json",getpost,"callback=cart_build_act()");currMousedOverObj="shop_cart";}function cart_build_act(){if(!$("LBdiv")){return;}if(!isNaN(document.JSONobj.getCartDat("total"))){hidedisplaypanel(1);var _a1=$A([]);var _a2=document.JSONobj.getCartDat("total");_a1.push(Builder.node("div",{id:"lbbuttons",style:"padding:0px; margin:0px; width:127px; height:16px; overflow:hidden"},[nodeTree.cart_build_act__buttons,]),Builder.node("div",{className:"lbname",style:"padding:3px 0px 0px 3px; margin:0px;"},[Builder.node("b",{},"Shopping Cart  "+(_a2?_a2:0)+" images "),nodeTree.cart_build_act__actions,]));if(document.JSONobj.getCartDat("total")>0){var _a3=parseInt((winW*0.65)/document.JSONobj.getCartDat("total"));if(winH<340){vlim=25;}else{if(winH<450){vlim=35;}else{vlim=58;}}if(_a3>vlim){_a3=vlim;}else{if(_a3<18){_a3=18;}}var _a4=$A([]);for(cti=0;cti<document.JSONobj.getCartDat("total");cti++){ctimid=document.JSONobj.getImgDat("id",cti);ctid=document.JSONobj.getCartDat("id",cti);_a4.push(Builder.node("div",{align:"center",id:"dct"+cti+"s",name:"dct"+cti+"s",valign:"bottom",style:"float:left; height:"+(_a3+18)+"px; overflow:hidden;"},[Builder.node("a",{href:"",onclick:"hp(); return false",id:"dct"+cti+"s_cti"},[Builder.node("img",{id:"ctimage_"+ctimid,onmouseover:"prloadimg(\""+ctimid+"\"); sp(this, \""+ctimid+"\", \"1\", \""+tset+"\");",onmouseout:"hp();",src:"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+ctimid+".JPG",height:_a3,border:0,className:"lbimg",hspace:2})]),Builder.node("div",{style:"padding:2px"},[Builder.node("a",{href:"",onclick:"cart_delete_image(\""+ctid+"\"); return false;",className:"ctlink",title:"Remove this image from the cart"},"X")])]));}_a1.push(Builder.node("div",{id:"LBimgdiv",style:"padding:6px 0 0 3px; height: 100%"},[_a4,Builder.node("br",{style:"clear:both"})]));var _a5=new Date();_a5.setTime(_a5.getTime()+(60*24*60*60*1000));gsetCookie("gcartimages",cti,_a5,"/",gGetCookieDom());}$("LBdiv").replace("<DIV id=\"LBdiv\"></DIV>");_a1.each(function(_a6){$("LBdiv").appendChild(_a6);});}}function displayDispatchedCart(_a7){if(typeof (_a7)!="object"){return;}var _a8=_a7["flp"];document.cart_display_lock=1;document.currentLayer1Mode="cartview";if($("cdheader")){$("cdheader").style.display="none";}if(!_a8){_a8="view";}ajax_HTML("Layer1","/bin/Cart?op="+_a8,"GET");$("Layer1").style.height=truevertHeight+"px";$("Layer1").style.overflow="scroll";$("Layer1").style.overflowX="hidden";if($("pagingrow")&&document.currentLayer1Mode!="searchresults"){$("pagingrow").innerHTML="";}document.cart_display_lock=0;}function refreshTopCart(){if(gsession){self.location.replace((typeof (baseurl)!="undefined"?baseurl:"")+"/SwishSearch?n=1&cartview=1&random="+Math.random(100));}else{self.location=(typeof (baseurl)!="undefined"?baseurl:"")+"/bin/Cklb?ref=%2FSwishSearch?cartview=1";}}}function afCookie(){this.setCookie=setCookie;this.setCookie2=setCookie2;this.getCookie=getCookie;this.deleteCookie=deleteCookie;this.getCookieDomain=getCookieDomain;this.setCookieGwhichindex=setCookieGwhichindex;this.setCookieGreleasedselect=setCookieGreleasedselect;function setCookie(_a9,_aa,_ab,_ac,_ad,_ae){var _af=_a9+"="+escape(_aa)+((_ab)?"; expires="+_ab.toGMTString():"")+((_ac)?"; path="+_ac:"")+((_ad)?"; domain="+_ad:"")+((_ae)?"; secure":"");document.cookie=_af;}function getCookie(_b0){var dc=document.cookie;var _b2=_b0+"=";var _b3=dc.indexOf("; "+_b2);if(_b3==-1){_b3=dc.indexOf(_b2);if(_b3!=0){return null;}}else{_b3+=2;}var end=document.cookie.indexOf(";",_b3);if(end==-1){end=dc.length;}return unescape(dc.substring(_b3+_b2.length,end));}function deleteCookie(_b5,_b6,_b7){if(getCookie(_b5)){document.cookie=_b5+"="+((_b6)?"; path="+_b6:"/")+((_b7)?"; domain="+_b7:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}function setCookie2(_b8,_b9){setCookie(_b8,_b9,"","/",getCookieDomain());}function getCookieDomain(){var _ba=document.domain;var _bb=_ba.split(".");var end=_bb.length-1;var _bd=_bb.length-2;var _be=_bb[end];var _bf=_bb[_bd];var _c0=_bf+"."+_be;return _c0;}function setCookieGwhichindex(_c1){gsetCookie("gwhichindex",_c1,"","/",gGetCookieDom());}function setCookieGreleasedselect(_c2){gsetCookie("greleasestatus",_c2,"","/",gGetCookieDom());}}function afDate(){this.getCurrentDate=getCurrentDate;this.setCurrentTime=setCurrentTime;this.fixDate=fixDate;function getCurrentDate(){return (new Date());}function setCurrentTime(_c3){var _c4=_c3||this.getCurrentDate();var now=_c4;fixDate(_c4);now.setTime(now.getTime()+365*24*60*60*1000);return (now);}function fixDate(_c6){var _c7=new Date(0);var _c8=_c7.getTime();if(_c8>0){_c6.setTime(_c6.getTime()-_c8);}}}function afDispatch(){this.dispatchAll=dispatchAll;this.reDispatch=reDispatch;function dispatchAll(_c9,_ca){var oC=(typeof (_c9)=="object"?_c9:_c9.evalJSON());var _cc=(typeof (firstpictureonpage)!="undefined"?firstpictureonpage:0);if(oC.viewmode=="ss"){dispatchEnlarge2(oC);}else{if(oC.viewmode=="cartview"||cartview){document.currentLbdivMode="cart";document.currentLayer1Mode="cartview";viewmode="cartview";currMousedOverObj="shop_cart";dispatchCart_display(oC);}else{if(oC.snum<_cc){document.currentLayer1Mode=oC.viewmode;viewmode=oC.viewmode;oC["buildmode"]=oC["buildmode"]||"prev";dispatchBuildimages(oC);}else{if(oC.snum>_cc){document.currentLayer1Mode=oC.viewmode;viewmode=oC.viewmode;oC["buildmode"]=oC["buildmode"]||"next";dispatchBuildimages(oC);}else{if(oC.snum==_cc){document.currentLayer1Mode=oC.viewmode;viewmode=oC.viewmode;oC["buildmode"]=oC["buildmode"]||"current";dispatchBuildimages(oC);}}}}}}function reDispatch(){dispatchAll(YAHOO.util.History.getCurrentState());}}function afHTML(){this.buildPagination=buildPagination;this.imageProfile=imageProfile;this.centerPanel=centerPanel;this.createCoverLayer=createCoverLayer;this.createDisplayPanel=createDisplayPanel;this.dispatchBuildImages=dispatchBuildImages;this.divShim=divShim;this.getFooter=getFooter;this.hideCoverLayer=hideCoverLayer;this.hideDisplayPanel=hideDisplayPanel;this.html_share_con_opts=html_share_con_opts;this.html_weight_con_opts=html_weight_con_opts;this.html_combined_con_opts=html_combined_con_opts;this.initShareRadios=initShareRadios;this.showDisplayPanel=showDisplayPanel;function centerPanel(x,y,_cf,tp){if(typeof (winH)=="undefined"){setuppagesize();}var _d1=(typeof (popupYoffset)!="undefined")?popupYoffset:0;if((winW-x)<0){panelx=0;}else{panelx=parseInt((winW-x)/2);}if((winH-y)<0){panely=41;}else{panely=parseInt((winH-y)/2);}if(tp){var tx=Position.cumulativeOffset($("scontainer"));var ty=Position.cumulativeOffset($("row2"));panelx=tx[0];panely=ty[1];}createDisplayPanel();createCoverLayer();$("displaypanellayer").style.top=(panely+_d1)+"px";$("displaypanellayer").style.left=panelx+"px";$("displaypanellayer").style.width=x+"px";$("displaypanellayer").style.height=y+"px";$("coverlayer").style.visibility="visible";$("displaypanellayer").style.visibility="hidden";new Effect.Appear("coverlayer",{duration:0.3,from:0,to:0.7});$("displaypanellayer").innerHTML=_cf;setTimeout("displaypanelshow();",320);}function imageProfile(_d4){var _d5="";switchpage=false;if(id[_d4]){var _d6=rm[_d4];myid=id[_d4];if(typeof (suspendsimilars)=="undefined"){mysimilarto=st[_d4];}else{mysimilarto="";}if(typeof (scp)!="undefined"&&(viewmode=="list"||viewmode=="editing")){myshortcaption=unescape(scp[_d4]);}else{myshortcaption="n/a";}var _d7=true;var _d8="";var _d9="";if(!relcon[_d4]){_d9=rel[_d4];}if(typeof (relcon)!="undefined"&&relcon[_d4]&&mysimilarto.length<13){var _da=_d9;_da=_da.substring(0,16)+(_d9.length>16?"...":"");_d9="<div id=\"shortrel"+_d4+"\">Release: "+_da+"</div> <div>  <form id=\"releasecontrol"+_d4+"\" > "+relcon[_d4]+" <input type=\"hidden\" name=\"shdex\" value=\""+_d4+"\"/></form> <a href=\"\" onclick=\"sor("+_d4+"); return false;\" >Save Release</a></div>";}else{if(showrelease){if(!(_d9=="MODEL RELEASED"||_d9=="MODEL AND PROPERTY RELEASED"||_d9=="PROPERTY RELEASED")){_d9="Release: "+_d9;}if(typeof (relcon)!="undefined"&&relcon[_d4]&&mysimilarto.length<13){_d9="<br/>"+_d9;}}else{_d9="";}}if(myshortcaption.length>90){for(z=0;z<130;z++){var c=myshortcaption.charAt(z);if(_d7==true){if((z>90)&&(c==".")){_d7=false;_d8+=c+" ...";}else{if((z>110)&&(c==" ")){_d7=false;_d8+=" ...";}else{_d8+=c;}}}}myshortcaption=_d8;}var _dc="yes";myphotographer=pho[_d4];myrglobaldynf=rm[_d4];myfilesize=fs[_d4];var _dd=hrdl[_d4];var _de=html_share_con_opts(_d4);var _df=html_weight_con_opts(_d4);var _e0=html_combined_con_opts(_d4);var _e1="";if(rfcd[_d4].match(myid)){var pm=unescape(rfcd[_d4]).match(/SwishSearch\?n\=1\&fn\=(.*)\&supst\=cd/);if(pm!=null){_e1=pm[1];}}adminheight=0;if(_dd){if(viewmode!="editing"){adminheight=11;}}if(myfilesize<5){myfilesize="Scan on Demand";}if(myid.length>9){if(o[_d4]){displayid=o[_d4];}else{displayid=myid;}if(viewmode=="editing"){var _e3=160+adminheight;var _e4=unescape(shsync[_d4]);_e4=_e4.split("|");var _e5="white";if(_e4[0]=="shared"){_e5="#77BB33";}else{if(_e4[0].toString().match(/notshared|rejected/)){_e5="#DF0000";}}var _e6="white";if(parseInt(_e4[1])){_e6="orange";}if(mysimilarto.length<13){_d5+="<span id=\"cellwrapper"+myid+"\" valign=bottom style=\"float:left;background-color:"+_e6+"; padding:0 6px; 0 6px\">";_d5+="<div id=\"d"+myid+"\" align=center valign=bottom style=\" background-color:"+_e5+"; width:288px; height:"+_e3+"px;\">";_d5+="<TABLE width=298 cellspacing=2 cellpadding=0 border=0><TR><TD valign=top><div style=\"position:relative;height:160px;\"><a href=\"javasc"+"ript:enlarge2('"+myid+"'"+","+"'"+_d4+"');\"><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+myid+".JPG\" border=0 class=pimg vspace=2 hspace=3";_d5+=" onmouseover=\"prloadimg('"+myid+"'); sp(this, '"+myid+"','"+_d4+"','"+tset+"');";_d5+="\" onmouseout=\"hp();\" id="+myid+">";_d5+="</a>";_d5+=_e0+_de;_d5+="</div></TD><TD valign=\"top\"><font class=xsmall>ID:"+myid;if(typeof (suppressrmrftype)=="undefined"){_d5+="  <font class=rmrfindicator>"+rm[_d4]+"</font>";}_d5+="<DIV class=icons>";if((typeof (pre_q_args)!="undefined"&&pre_q_args.match(/fn=/))||(typeof (q_args)!="undefined"&&(q_args.match(/vmo=/)||q_args.match(/rid=/)||q_args.match(/lb_view=1/)||q_args.match(/fn=/)))){_d5+="<A href=\"javascript:lightbox_delete_image_enl('"+myid+"');\" class=\"lblink\" TITLE=\"Remove this image from the lightbox\">X</A>";}_d5+="</DIV>";myphotographer=unescape(myphotographer);if(myphotographer.length>18){myphotographer=myphotographer.substring(0,18)+"...";}if(showphotographer==1){_d5+="&copy; "+currentYear+" "+myphotographer;}_d5+="  <nobr>";if(showfilesize){_d5+=myfilesize;}_d5+="</nobr><br/>CAPTION: "+myshortcaption+"<div>"+_d9+"</div></font>";_d5+=_df;if(_dd){_d5+="<br/><NOBR><a href=\""+_dd+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a></NOBR>";}_d5+="<br/><a href=\"\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add to your current lightbox\">LB+</a>";_d5+="</TD></TR></TABLE></DIV></span></SPAN>";}else{_d5+="<span id=\"cellwrapper"+myid+"\" valign=bottom style=\"float:left;background-color:"+_e6+"; padding:0 6px; 0 6px;\">";_d5+="<div id=\"d"+myid+"\" align=center valign=bottom style=\" background-color:"+_e5+"; width:288px; height:"+_e3+"px;\">";_d5+=writesimilar(myid,_d4,myphotographer,myshortcaption,"start","editing",_dd,_d9);_d5+="</DIV></span></SPAN>";}}else{if(viewmode=="list"){var _e3=172+adminheight;if(mysimilarto.length<13){_d5+="<span id=\"cellwrapper"+_d4+"\" valign=bottom style=\"float:left;\">";_d5+="<div align=center valign=bottom style=\"width:305px; height:"+_e3+"px;\">";_d5+="<TABLE width=298 cellspacing=2 cellpadding=0 border0><TR><TD valign=top>";if(_e1){_d5+="<a href=\"/SwishSearch?n=1&fn="+_e1+"&supst=cd\" >";}else{_d5+="<a href=\"\" onclick=\"hp(); enlarge2('"+myid+"'"+","+"'"+_d4+"'); return false;\">";}_d5+="<img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+myid+".JPG\" border=0 class=pimg vspace=2 hspace=3";_d5+=" onmouseover=\"prloadimg('"+myid+"'); sp(this, '"+myid+"','"+_d4+"','"+tset+"');";_d5+="\" onmouseout=\"hp();\" id="+myid+">";_d5+="</a><BR>";if(_dd){_d5+="<center><a href=\""+_dd+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a></center>";}_d5+="</TD><TD valign=\"top\"><font class=xsmall>ID:"+displayid;if(typeof (suppressrmrftype)=="undefined"){_d5+="  <font class=rmrfindicator>"+rm[_d4]+"</font>";}_d5+="<DIV class=icons>";if(!_e1&&((typeof (pre_q_args)!="undefined"&&pre_q_args.match(/fn=/))||(typeof (q_args)!="undefined"&&(q_args.match(/vmo=/)||q_args.match(/rid=/)||q_args.match(/lb_view=1/)||q_args.match(/fn=/))))){_d5+="<A href=\"\" onclick=\"lightbox_delete_image_enl('"+myid+"'); return false;\" class=\"lblink\" TITLE=\"Remove this image from the lightbox\">X</A>";}_d5+="<a href=\"\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add to your current lightbox\">LB+</a>";if(gsession){_d5+="<a href=\"\" ONCLICK=\"cart_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add this image to your shopping cart\">CART+</a>";}_d5+="<a href=\"\" ONCLICK=\"return price_image('"+myid+"','"+_d6+"');\" class=\"iconlink\" Title=\"Price Image\">$</a>";if(!_e1){_d5+="<a href=\"\" ONCLICK=\"enlarge2('"+myid+"'"+","+"'"+_d4+"'); return false;\" class=iconlink title=\"Enlarge image and more info\"><font class=eye>i</font></a>";}_d5+="</DIV>";if(showphotographer==1){_d5+="<BR>&copy; "+currentYear+" "+myphotographer;}_d5+="  <nobr>";if(showfilesize){_d5+=myfilesize;}_d5+="</nobr><br/>CAPTION: "+myshortcaption+"<div>"+_d9+"</div></font>";_d5+="</TD></TR></TABLE></DIV></SPAN>";}else{_d5+="<span valign=bottom style=\"float:left;\">";_d5+="<div id=\"d"+myid+"\" align=center valign=bottom style=\"width:305px; height:"+_e3+"px;\">";_d5+=writesimilar(myid,_d4,myphotographer,myshortcaption,"start","list",_dd,_d9);_d5+="</DIV></SPAN>";}}else{if(viewmode=="tiny"){var _e3=100+adminheight;if(mysimilarto.length<13){_d5+="<span valign=bottom style=\"float:left;\">";_d5+="<div align=center valign=bottom style=\"width:95px; height:"+_e3+"px; overflow: hidden;\">";if(_e1){_d5+="<a href=\"/SwishSearch?n=1&fn="+_e1+"&supst=cd\" ";}else{_d5+="<a href=\"\" onclick=\"hp(); enlarge2('"+myid+"'"+","+"'"+_d4+"'); return false;\"";}if(document.page.previews.selectedIndex==1){_d5+=" TITLE=\"ID:"+displayid;if(showphotographer==1){_d5+="\r&copy; "+myphotographer;}if(showfilesize){_d5+="\rSIZE: "+myfilesize;}_d5+=" \r"+"CAPTION: "+myshortcaption+"\"";}_d5+="><img src=http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+myid+".JPG border=0 class=pimg vspace=1 hspace=1 height=55";_d5+=" onmouseover=\"prloadimg('"+myid+"'); sp(this, '"+myid+"', '"+_d4+"','"+tset+"');";_d5+="\" onmouseout=\"hp();\" id="+myid+">";_d5+="</a><BR>";_d5+="<font class=\"xxsmall\"><DIV class=icons>";if(!_e1&&((typeof (pre_q_args)!="undefined"&&pre_q_args.match(/fn=/))||(typeof (q_args)!="undefined"&&(q_args.match(/vmo=/)||q_args.match(/rid=/)||q_args.match(/lb_view=1/)||q_args.match(/fn=/))))){_d5+="<A href=\"\" onclick=\"lightbox_delete_image_enl('"+myid+"'); return false;\" class=\"iconlinktiny\" TITLE=\"Remove this image from the lightbox\">X</A>";}_d5+="<a href=\"\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlinktiny\" title=\"Add to your current lightbox\">LB+</a>";if(gsession){_d5+="<a href=\"\" ONCLICK=\"cart_addto('"+myid+"'); return false;\" class=\"iconlinktiny\" title=\"Add this image to your shopping cart\">CART+</a>";}_d5+="<a href=\"\" ONCLICK=\"return price_image('"+myid+"','"+_d6+"');\" class=\"iconlinktiny\" Title=\"Price Image\">$</a>";if(!_e1){_d5+="<a href=\"\" ONCLICK=\"enlarge2('"+myid+"'"+","+"'"+_d4+"'); return false;\" class=\"iconlinktiny\" title=\"Enlarge image and more info\"><font class=eye>i</font></a>";}_d5+="</DIV></font>";_d5+="<DIV class=imidxxsmall>"+displayid;if(typeof (suppressrmrftype)=="undefined"){_d5+="  <font class=rmrfindicator>"+rm[_d4]+"</font>";}_d5+="</DIV>";if(_dd){_d5+="<a href=\""+_dd+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>";}_d5+="</DIV></SPAN>";}else{_d5+="<span valign=bottom style=\"float:left;\">";_d5+="<div id=\"d"+myid+"\" align=center valign=bottom style=\"width:95px; height:"+_e3+"px; overflow:hidden;\">";_d5+=writesimilar(myid,_d4,myphotographer,myshortcaption,"start","tiny",_dd,_d9);_d5+="</DIV></SPAN>";}}else{if(viewmode=="med"){var _e3=130+adminheight;if(mysimilarto.length<13){_d5+="<span valign=bottom style=\"float:left;\">";_d5+="<div align=center valign=bottom style=\"width:140px; height:"+_e3+"px; overflow: hidden;\">";if(_e1){_d5+="<a href=\"/SwishSearch?n=1&fn="+_e1+"&supst=cd\" ";}else{_d5+="<a href=\"\" onclick=\"hp(); enlarge2('"+myid+"'"+","+"'"+_d4+"'); return false;\"";}if(document.page.previews.selectedIndex==1){_d5+=" TITLE=\"ID:"+displayid;if(showphotographer==1){_d5+="  \r&copy; "+myphotographer;}if(showfilesize){_d5+="\rSIZE: "+myfilesize;}_d5+=" \r"+"CAPTION: "+myshortcaption+"\"";}_d5+="><img src=http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+myid+".JPG border=0 vspace=1 class=pimg hspace=1 height=80";_d5+=" onmouseover=\"prloadimg('"+myid+"'); sp(this, '"+myid+"', '"+_d4+"','"+tset+"');";_d5+="\" onmouseout=\"hp();\" id="+myid+">";_d5+="</a><BR>";_d5+="<font class=\"xsmall\"><DIV class=icons>";if(!_e1&&((typeof (pre_q_args)!="undefined"&&pre_q_args.match(/fn=/))||(typeof (q_args)!="undefined"&&(q_args.match(/vmo=/)||q_args.match(/rid=/)||q_args.match(/lb_view=1/)||q_args.match(/fn=/))))){_d5+="<A href=\"\" onclick=\"lightbox_delete_image_enl('"+myid+"'); return false;\" class=\"lblink\" TITLE=\"Remove this image from the lightbox\">X</A>";}_d5+="<a href=\"\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add to your current lightbox\">LB+</a>";if(gsession){_d5+="<a href=\"\" ONCLICK=\"cart_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add this image to your shopping cart\">CART+</a>";}_d5+="<a href=\"\" ONCLICK=\"return price_image('"+myid+"','"+_d6+"');\" class=\"iconlink\" Title=\"Price Image\">$</a>";if(!_e1){_d5+="<a href=\"\" ONCLICK=\"enlarge2('"+myid+"'"+","+"'"+_d4+"'); return false;\" class=\"iconlink\" title=\"Enlarge image and more info\"><font class=eye>i</font></a>";}if(typeof (gusert)!="undefined"&&gusert=="IPN"){_d5+="<A href=\"\" onclick=\"ajax_TEXT('/bin/KeywordAdjust?good=1&id="+myid+"&q="+dsplkys+"',getpost); return false;\"><IMG src=/graphics/rating_enhance.gif width=18 height=12 border=0 style=\"margin-bottom: -3px;\"></a><A href=\"\" onclick=\"ajax_TEXT('/bin/KeywordAdjust?bad=1&id="+myid+"&q="+dsplkys+"', getpost); return false;\"><IMG src=/graphics/rating_discourage.gif width=18 border=0 height=12 style=\"margin-bottom: -3px;\"></a>";}_d5+="</DIV></font>";_d5+="<DIV class=imidxxsmall>"+displayid;if(typeof (suppressrmrftype)=="undefined"){_d5+="  <font class=rmrfindicator>"+rm[_d4]+"</font>";}_d5+="</DIV>";if(_dd){_d5+="<a href=\""+_dd+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>";}_d5+="</DIV></SPAN>";}else{_d5+="<span valign=bottom style=\"float:left;\">";_d5+="<div id=\"d"+myid+"\" align=center valign=bottom style=\"width:140px; height:"+_e3+"px;\">";_d5+=writesimilar(myid,_d4,myphotographer,myshortcaption,"start","med",_dd,_d9);_d5+="</DIV></SPAN>";}}else{if(viewmode=="ss"){_d5="  ";}else{if(viewmode=="huge"){var _e3=220+adminheight;if(mysimilarto.length<13){_d5+="<span valign=bottom style=\"float:left;\">";_d5+="<div align=center valign=bottom style=\"width:330px; height:"+_e3+"px; overflow: hidden;\">";if(_e1){_d5+="<a href=\"/SwishSearch?n=1&fn="+_e1+"&supst=cd\" ";}else{_d5+="<a href=\"\" onclick=\"hp(); enlarge2('"+myid+"'"+","+"'"+_d4+"'); return false;\" TITLE=\"ID:"+displayid;}if(showphotographer==1){_d5+="\r&copy; "+myphotographer;}if(showfilesize){_d5+="\rSIZE: "+myfilesize;}_d5+=" \r"+"CAPTION: "+myshortcaption+"\"><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/420/60/"+myid+".JPG\" border=\"0\" vspace=\"1\" hspace=\"3\" alt=\"loading...\" height=\"192\"></a><BR>";_d5+="<font class=\"xsmall\"><DIV class=icons>";if(!_e1&&((typeof (pre_q_args)!="undefined"&&pre_q_args.match(/fn=/))||(typeof (q_args)!="undefined"&&(q_args.match(/vmo=/)||q_args.match(/rid=/)||q_args.match(/lb_view=1/)||q_args.match(/fn=/))))){_d5+="<A href=\"\" onclick=\"lightbox_delete_image_enl('"+myid+"'); return false;\" class=\"lblink\" TITLE=\"Remove this image from the lightbox\">X</A>";}_d5+="<a href=\"\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add to your current lightbox\">LIGHTBOX+</a>";if(gsession){_d5+="<a href=\"\" ONCLICK=\"cart_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add this image to your shopping cart\">CART+</a>";}_d5+="<a href=\"\" ONCLICK=\"return price_image('"+myid+"','"+_d6+"');\" class=\"iconlink\" Title=\"Price Image\">$</a>";if(!_e1){_d5+="<a href=\"\" ONCLICK=\"enlarge2('"+myid+"'"+","+"'"+_d4+"'); return false;\" class=\"iconlink\" title=\"Enlarge image and more info\"><font class=eye>i</font> ENLARGE</a> ";}if(typeof (gusert)!="undefined"&&gusert=="IPN"){_d5+="<A href=\"\" onclick=\"ajax_TEXT('/bin/KeywordAdjust?good=1&id="+myid+"&q="+dsplkys+"', getpost); return false;\"><IMG src=/graphics/rating_enhance.gif width=18 height=12 border=0 style=\"margin-bottom: -3px;\"></a><A href=\"\" onclick=\"ajax_TEXT('/bin/KeywordAdjust?bad=1&id="+myid+"&q="+dsplkys+"',getpost); return false;\"><IMG src=/graphics/rating_discourage.gif width=18 border=0 height=12 style=\"margin-bottom: -3px;\"></a>";}_d5+=displayid;if(typeof (suppressrmrftype)=="undefined"){_d5+="  <font class=rmrfindicator>"+rm[_d4]+"</font> ";}_d5+="</DIV></font>";if(_dd){_d5+="<a href=\""+_dd+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>";}_d5+="</DIV></SPAN>";}else{_d5+="<span valign=bottom style=\"float:left;\">";_d5+="<div id=\"d"+myid+"\" align=center valign=bottom style=\"width:330px; height:"+_e3+"px; overflow: hidden;\">";_d5+=writesimilar(myid,_d4,myphotographer,myshortcaption,"start","huge",_dd,_d9);_d5+="</DIV></SPAN>";}}else{if(viewmode=="large"){var _e3=199+adminheight;if(mysimilarto.length<13){_d5+="<span valign=bottom style=\"float:left;\">";_d5+="<div align=center valign=bottom style=\"width:187px; height:"+_e3+"px; overflow:hidden;\">";if(_e1){_d5+="<a href=\"/SwishSearch?n=1&fn="+_e1+"&supst=cd\" ";}else{_d5+="<a href=\"\" onclick=\"hp(); enlarge2('"+myid+"'"+","+"'"+_d4+"'); return false;\"";}if(document.page.previews.selectedIndex==1){_d5+=" TITLE=\"ID:"+displayid;if(showphotographer==1){_d5+="\r&copy; "+myphotographer;}if(showfilesize){_d5+="\rSIZE: "+myfilesize;}_d5+=" \r"+"CAPTION: "+myshortcaption+"\"";}_d5+="><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/170/85/"+myid+".JPG\" class=pimg border=\"0\" vspace=\"0\" hspace=\"3\"";_d5+=" onmouseover=\"prloadimg('"+myid+"'); sp(this, '"+myid+"','"+_d4+"','"+tset+"');";_d5+="\" onmouseout=\"hp();\" id="+myid+">";_d5+="</a><BR>";_d5+="<font class=\"xsmall\"><DIV class=icons>";if(!_e1&&((typeof (pre_q_args)!="undefined"&&pre_q_args.match(/fn=/))||(typeof (q_args)!="undefined"&&(q_args.match(/vmo=/)||q_args.match(/rid=/)||q_args.match(/lb_view=1/)||q_args.match(/fn=/))))){_d5+="<A href=\"\" onclick=\"lightbox_delete_image_enl('"+myid+"'); return false;\" class=\"iconlink\" TITLE=\"Remove this image from the lightbox\">X</A>";}_d5+="<a href=\"\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add to your current lightbox\">LB+</a>";if(gsession){_d5+="<a href=\"\" ONCLICK=\"cart_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add this image to your shopping cart\">CART+</a>";}_d5+="<a href=\"\" ONCLICK=\"return price_image('"+myid+"','"+_d6+"');\" class=\"iconlink\" Title=\"Price Image\">$</a>";if(!_e1){_d5+="<a href=\"\" ONCLICK=\"enlarge2('"+myid+"'"+","+"'"+_d4+"'); return false;\" class=\"iconlink\" title=\"Enlarge image and more info\"><font class=eye>i</font></a>&nbsp;";}if(typeof (gusert)!="undefined"&&gusert=="IPN"){_d5+="<A href=\"\" onclick=\"ajax_TEXT('/bin/KeywordAdjust?good=1&id="+myid+"&q="+dsplkys+"',getpost); return false;\"><IMG src=/graphics/rating_enhance.gif width=18 height=12 border=0 style=\"margin-bottom: -3px;\"></a><A href=\"\" onclick=\"ajax_TEXT('/bin/KeywordAdjust?bad=1&id="+myid+"&q="+dsplkys+"',getpost); return false;\"><IMG src=/graphics/rating_discourage.gif width=18 border=0 height=12 style=\"margin-bottom: -3px;\"></a>";}_d5+="</div><div><font class=imid>"+displayid+"</font>";if(typeof (suppressrmrftype)=="undefined"){_d5+="  <font class=rmrfindicator>"+rm[_d4]+"</font>";}_d5+="</DIV></font>";if(_dd){_d5+="<a href=\""+_dd+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>";}_d5+="</DIV></SPAN>";}else{_d5+="<span valign=bottom style=\"float:left;\">";_d5+="<div id=\"d"+myid+"\" align=center valign=bottom style=\"width:187px; height:"+_e3+"px; overflow: hidden;\">";_d5+=writesimilar(myid,_d4,myphotographer,myshortcaption,"start","large",_dd,_d9);_d5+="</DIV></SPAN>";}}else{var _e3=176+adminheight;if(mysimilarto.length<13){_d5+="<span valign=bottom style=\"float:left;\">";_d5+="<div align=center valign=bottom style=\"width:152px; height:"+_e3+"px; overflow:hidden;\">";if(_e1){_d5+="<a href=\"/SwishSearch?n=1&fn="+_e1+"&supst=cd\" ";}else{_d5+="<a href=\"\" onclick=\"hp(); enlarge2('"+myid+"'"+","+"'"+_d4+"'); return false;\"";}if(document.page.previews.selectedIndex==1){_d5+=" TITLE=\"ID:"+displayid;if(showphotographer==1){_d5+="\r&copy; "+myphotographer;}if(showfilesize){_d5+="\rSIZE: "+myfilesize;}_d5+=" \r"+"CAPTION: "+myshortcaption+"\"";}_d5+="><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+myid+".JPG\" class=pimg border=\"0\" vspace=\"0\" hspace=\"3\"";_d5+=" onmouseover=\"prloadimg('"+myid+"'); sp(this, '"+myid+"','"+_d4+"','"+tset+"');";_d5+="\" onmouseout=\"hp();\" id="+myid+">";_d5+="</a><BR>";_d5+="<font class=\"xsmall\"><DIV class=icons>";if(!_e1&&((typeof (pre_q_args)!="undefined"&&pre_q_args.match(/fn=/))||(typeof (q_args)!="undefined"&&(q_args.match(/vmo=/)||q_args.match(/rid=/)||q_args.match(/lb_view=1/)||q_args.match(/fn=/))))){_d5+="<A href=\"\" onclick=\"lightbox_delete_image_enl('"+myid+"'); return false;\" class=\"iconlink\" TITLE=\"Remove this image from the lightbox\">X</A>";}_d5+="<a href=\"\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add to your current lightbox\">LB+</a>";if(gsession){_d5+="<a href=\"\" ONCLICK=\"cart_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add this image to your shopping cart\">CART+</a>";}_d5+="<a href=\"\" ONCLICK=\"return price_image('"+myid+"','"+_d6+"');\" class=\"iconlink\" Title=\"Price Image\">$</a>";if(!_e1){_d5+="<a href=\"\" ONCLICK=\"enlarge2('"+myid+"'"+","+"'"+_d4+"'); return false;\" class=\"iconlink\" title=\"Enlarge image and more info\"><font class=eye>i</font></a>&nbsp;";}if(typeof (gusert)!="undefined"&&gusert=="IPN"){_d5+="<A href=\"\" onclick=\"ajax_TEXT('/bin/KeywordAdjust?good=1&id="+myid+"&q="+dsplkys+"',getpost); return false;\"><IMG src=/graphics/rating_enhance.gif width=18 height=12 border=0 style=\"margin-bottom: -3px;\"></a><A href=\"\" onclick=\"ajax_TEXT('/bin/KeywordAdjust?bad=1&id="+myid+"&q="+dsplkys+"',getpost); return false;\"><IMG src=/graphics/rating_discourage.gif width=18 border=0 height=12 style=\"margin-bottom: -3px;\"></a>";}_d5+="</div><div><font class=imid>"+displayid+"</font>";if(typeof (suppressrmrftype)=="undefined"){_d5+="  <font class=rmrfindicator>"+rm[_d4]+"</font>";}_d5+="</DIV></font>";if(_dd){_d5+="<a href=\""+_dd+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>";}_d5+="</DIV></SPAN>";}else{_d5+="<span valign=bottom style=\"float:left;\">";_d5+="<div id=\"d"+myid+"\" align=center valign=bottom style=\"width:152px; height:"+_e3+"px; overflow: hidden;\">";_d5+=writesimilar(myid,_d4,myphotographer,myshortcaption,"start","normal",_dd,_d9);_d5+="</DIV></SPAN>";}}}}}}}}}}return _d5;}function initShareRadios(){for(var cnt=showstartnumber_trap;cnt<endnumber;cnt++){var _e8=unescape(shsync[cnt]);_e8=_e8.split("|");var _e9=_e8[0]+$F("share_control_view")+$F("share_control_home_sphotog");var _ea,_eb;if(typeof (cocon)=="object"&&cocon[0]){_eb=_e8[2];_ea=_e8[0].toString().substring(0,1);}var _ec=$("shf"+id[cnt]);if(_ec){$A(_ec.elements).each(function(rad){if(rad.value==_e9){rad.checked=true;}else{if(_ea&&(rad.value==_ea||(_ea=="s"&&rad.value==_eb))){rad.checked=true;}else{rad.checked=false;}}});}}}function createDisplayPanel(){if($("displaypanellayer")){return;}var dp=document.createElement("div");dp.setAttribute("id","displaypanellayer");document.body.appendChild(dp);}function createCoverLayer(){if($("coverlayer")){return;}var dp=document.createElement("div");dp.setAttribute("id","coverlayer");document.body.appendChild(dp);}function showDisplayPanel(){createDisplayPanel();$("displaypanellayer").style.zIndex="9991001";$("displaypanellayer").style.visibility="visible";new Effect.Appear("displaypanellayer",{duration:0.5});setTimeout("divshim(1);",200);}function buildPagination(_f0,_f1,_f2){suspendtrap=1;var _f3="<table width=\"100%\"><tr><td valign=\"top\">";_f3+="<NOBR><FONT class=page>";var _f4=parseInt(_f0)+parseInt(_f2)+1;var _f5=parseInt(_f1)+parseInt(_f2);if(Number(currentpagenum)>0){_f3+="<A href=\"\" onclick=\"document.currentLayer1Mode='searchresults';prevpage(); return false;\"><FONT style=\"font-size:9pt;font-family: Arial;\">&#8592;</FONT> PREV PAGE</A>&nbsp;";}else{if(_f4<=results_total){_f3+="<FONT style=\"font-family: Arial;color:#AAAAAA;\"><FONT style=\"9pt;\">&#8592;</FONT> PREV PAGE</FONT>&nbsp;";}}if(_f4<=results_total){_f3+="Go&nbsp;to&nbsp;Page:&nbsp;<SELECT name=\"pageurl\" align=\"absmiddle\"  onChange=\"document.currentLayer1Mode='searchresults'; self.location=this.options[this.selectedIndex].value; return false;\" class=\"smallmenu\" style=\"width:5.5em;\">";totalpages=(Math.ceil((_f2)/(parseInt($F("pixperpage"))))+Math.ceil((results_total-_f2)/(parseInt($F("pixperpage")))));if(Number(currentpagenum)>52){psn=(Number(currentpagenum)-50);}else{psn=1;}if((Number(totalpages)-Number(currentpagenum))>50){pen=(Number(currentpagenum)+50);}else{pen=totalpages;}if(psn>1&&currentpagenum!=0){_f3+="<OPTION VALUE=\""+nextlink+"snum="+((psn-2)*(parseInt(gpixperpagev)))+"\">&lt; "+(Number(psn)-1)+"</option>";}for(i=psn;i<=pen;i++){if(i==(Number(currentpagenum)+1)){_f3+="<OPTION VALUE=\""+nextlink+"snum="+((i-1)*(parseInt(gpixperpagev)))+"\" SELECTED>"+i+"</option>";}else{_f3+="<OPTION VALUE=\""+nextlink+"snum="+((i-1)*(parseInt(gpixperpagev)))+"\">"+i+"</option>";}}if(pen!=totalpages){_f3+="<OPTION VALUE=\""+nextlink+"snum="+((Number(pen))*(parseInt(gpixperpagev)))+"\">&gt; "+(Number(pen)+1)+"</option>";}_f3+="</select>";if(grange!="outofrange"){_f3+="&nbsp;<A HREF=\"\" onclick=\"document.currentLayer1Mode='searchresults';nextpage(); return false;\">NEXT PAGE&nbsp;<FONT style=\"font-size:9pt;font-family: Arial;\">&#8594;</FONT></A></font>";}_f3+="&nbsp;&nbsp;["+_f4+"-";if(_f5>parseInt(results_total)){_f3+="<span id=\"lastpgtotal\">"+results_total+"</span>"+"]&nbsp;of&nbsp;<span id=\"imgtotal\">"+results_total+"</span>";}else{_f3+=_f5+"]&nbsp;of&nbsp;<span id=\"imgtotal\">"+results_total+"</span>";}_f3+="</NOBR>";_f3+="</td><td align=\"right\">";if(document.thisIsFeatureView){_f3+="<a href=\"/R?"+feat_requestview+"\" style=\"color:#c00; font-size:10px\"><nobr>View images from</nobr> <br/><nobr><b>All IPN Members</b></nobr></a>";}if(typeof (shsync)=="object"&&shsync[0]&&shsync[0]!=""){var _f6="<a onclick=\"return save_all_releases();\" href=\"\">Save All Releases</a> &nbsp;&nbsp; [ Set All: <a href=\"\" onclick=\"return share_set_page('shared'); \">Accepted</a> | <a href=\"\" onclick=\"return share_set_page('rejected'); \">Rejected</a> | <a href=\"\" onclick=\"return share_set_page('pending'); \">Pending</a>  &nbsp;|&nbsp;  <a onclick=\"return release_set_page('NOT RELEASED');\" href=\"\" title=\"NOT RELEASED\">NR</a> | <a onclick=\"return release_set_page('NOT APPLICABLE');\" href=\"\" title=\"NOT APPLICABLE\">NA</a> | <a onclick=\"return release_set_page('NOT RECOGNIZABLE');\" href=\"\" title=\"NOT RECOGNIZABLE\">NR</a> | <a onclick=\"return release_set_page('MODEL AND PROPERTY RELEASED');\" href=\"\" title=\"MODEL AND PROPERTY RELEASED\">MaPR</a> ]";$("Layerpreviews").innerHTML=_f6;}}_f3+="</td></tr></table>";$("Layerpages").style.overflow="visible";MM_setTextOfLayer("Layerpages","",_f3);}function divShim(_f7){if(typeof ($)=="function"&&$("DivShim")){if(_f7){createDisplayPanel();$("DivShim").style.width=$("displaypanellayer").style.width;$("DivShim").style.height=$("displaypanellayer").style.height;$("DivShim").style.top=$("displaypanellayer").style.top;$("DivShim").style.left=$("displaypanellayer").style.left;$("DivShim").style.zIndex=$("displaypanellayer").style.zIndex-1;$("DivShim").style.display="block";}else{$("DivShim").style.display="none";}}}function hideDisplayPanel(_f8){createCoverLayer();divshim(0);createDisplayPanel();if($("displaypanellayer").style&&$("displaypanellayer").style.visibility=="visible"){if(_f8==1){new Effect.Fade("displaypanellayer",{duration:0.01});}else{new Effect.Fade("displaypanellayer",{duration:0.3});}}if($("coverlayer").style&&$("coverlayer").style.visibility=="visible"){new Effect.Fade("coverlayer",{delay:0.22,duration:0.3,from:0.7,to:0});setTimeout("coveroff();",0.31);}setTimeout("$('displaypanellayer').style.visibility='hidden';",0.31);Event.stopObserving(document,"mousemove",getMouseXY);}function hideCoverLayer(){createCoverLayer();$("coverlayer").style.visibility="hidden";}function html_share_con_opts(dex){if(typeof (shcon)=="object"&&shcon[dex]&&shcon[dex]!=""){return "<form id=\"shf"+id[dex]+"\"><span style=\"font-size:7pt\"><NOBR>"+unescape(shcon[dex])+"</NOBR></span><input type=\"hidden\" name=\"dexer\" value=\""+dex+"\"/></form>";}else{return "";}}function html_weight_con_opts(dex){if(typeof (swcon)=="object"&&swcon[dex]&&swcon[dex]!=""){return "Weight:&nbsp;<select class=\"editformelem\" id=\"weightcontrol"+dex+"\" name=\"weightcontrol"+dex+"\" onchange=\"sos("+dex+",'weight')\">"+unescape(swcon[dex])+"</select>";}else{return "";}}function html_combined_con_opts(dex){if(typeof (cocon)=="object"&&cocon[dex]&&cocon[dex]!=""){return "<form id=\"shf"+id[dex]+"\"><span style=\"font-size:7pt\"><NOBR>"+unescape(cocon[dex])+"</NOBR></span><input type=\"hidden\" name=\"dexer\" value=\""+dex+"\"/></form>";}else{return "";}}function dispatchBuildImages(_fc){var _fd=global.macIE5;var _fe=_fc["snum"];var _ff=_fc["buildmode"];var _100=_fc["resized"];viewmode=_fc["viewmode"];$("Layer1").style.height=winH+"px";$("Layer1").style.overflow="hidden";if($("cdheader")){(typeof (dsplkys)!="undefined"?((dsplkys.substring(0,6)=="BLDVCD"||dsplkys.match(/ZRFCD$/))?$("cdheader").style.display="block":$("cdheader").style.display="none"):$("cdheader").style.display="block");}document.currentLayer1Mode="searchresults";createCoverLayer();if(!_fd){var _101=Element.getOpacity("coverlayer");}if(_101>0.2){hidedisplaypanel();}suspendcheck=1;if(_fe>1||_100==1){setuppagesize();}showstartnumber_trap=parseInt(_fe);var _102=optimize();grange="legal";MM_setTextOfLayer("Layer1","","<CENTER> <BR><BR><BR><BR><BR><BR><BR><BR>loading ...</CENTER>");var cnt=_fe;firstpictureonpage=_fe;endnumber=parseInt(gpixperpagev)+parseInt(_fe);if(viewmode!="ss"){if(pagetype=="lb"&&(typeof (pre_q_args)!="undefined"&&!(pre_q_args.match(/lb_view=1/)||pre_q_args.match(/fn=/)||pre_q_args.match(/vmo=/)))){_102+="&nbsp;&nbsp;<A href=\"\" onclick=\"viewmode='"+viewmode+"';gsetCookie('gviewmode','"+viewmode+"', '', '/', gGetCookieDom()); self.location='/SwishSearch"+pre_q_args+"'; return false;\"><FONT style=\"font-size:9pt; font-family:Arial;\">&#8593;</font> BACK TO SEARCH RESULTS</A><BR/><BR/>";}while(cnt<endnumber){if(id[cnt]){if(typeof (htmlit_custom)=="function"){_102+=htmlit_custom(cnt);}else{_102+=htmlit(cnt);}}else{if((snum+cnt)>=results_total){if(grange!="outofrange"){_102+="<span valign=bottom style=\"float:left;\"><div align=center valign=bottom style=\"width:130; height:50px; overflow: hidden;\">";if(pagetype=="lb"){_102+="<div id=\"endbox\" class=\"endoflightboximages\"><nobr>[ end of lightbox images ]</div></nobr></DIV></SPAN> ";}else{_102+="<div id=\"endbox\" class=\"endofsearchresults\"><nobr>[ end of search results ]</div></nobr></DIV></SPAN> ";}}grange="outofrange";}else{grange="illegalpage";}}cnt++;}if(snum+cnt==results_total){grange="outofrange";}if(grange=="illegalpage"){if(_ff=="next"){var _104=(Number(snum)+Number(_fe));var _105=$H({showstart:1,snum:0,viewmode:viewmode,resized:_100}).toJSON();self.location=nextlink+"snum="+_104+"#nav="+_105;MM_setTextOfLayer("Layer1","","<CENTER> <BR><BR><BR><BR><BR><BR><BR><BR>loading next set of images...</CENTER>");}else{prevtogoto=Number(snum)+Number(_fe)-parseInt($F("pixperpage"));if(prevtogoto<0){prevtogoto=0;}var _105=$H({showstart:1,snum:0,viewmode:viewmode,resized:_100}).toJSON();self.location=nextlink+"snum="+prevtogoto+"#nav="+_105;}}else{MM_setTextOfLayer("Layer1","",_102);if(shsync[0]){setTimeout("init_share_radios()",1);}var _106="<table id=\"footerpaging\" style=\"position:absolute; z-index:999;\" width=100% height=17 cellpadding=0 cellspacing=0 border=0><TR><TD align=left width=40%>";if((typeof (snum)!="undefined"&&Number(snum)>1)||(typeof (_fe)!="undefined"&&Number(_fe)>1)){_106+="<nobr>&nbsp;&nbsp;<A HREF=javasc"+"ript:prevpage();><FONT style=\"font-size:9pt;font-family: Arial;\">&#8592;</FONT> PREV PAGE</A></nobr>";}else{_106+="&nbsp;";}_106+="</TD><TD align=\"middle\"  width=20%><center><nobr>"+footer()+"</nobr></center></TD><TD width=40% align=right>";if(grange!="outofrange"){_106+="<nobr><A HREF='' onclick='nextpage(); return false;' name=bottomnext>NEXT PAGE <FONT style=\"font-size:9pt;font-family: Arial;\">&#8594;</FONT></A>&nbsp;&nbsp;</nobr></DIV>";}_106+="</TD></TR></table>";$("pagingrow").innerHTML=_106;lastimage=cnt;if($("pixperpage")){prestart=endnumber-1;preend=(lastimage+parseInt($F("pixperpage")));if(_fe==0){var _107=6000+parseInt($F("pixperpage")*30);self.setTimeout("preloadnextpage()",_107);}else{var _107=1000;self.setTimeout("preloadnextpage()",_107);}}}}else{enlarge2(id[0],0);}currentpagenum=Math.ceil((Number(snum)+Number(_fe))/parseInt($F("pixperpage")));buildpages(_fe,endnumber,snum);iconstatus();}function getFooter(){if(typeof (customfooter)!="undefined"){return customfooter;}else{return Templates.footer__body.evaluate({currentyear:currentYear});}}}function afImage(){this.priceImage=priceImage;this.sizeImageToContainer=sizeImageToContainer;this.price_image_act=price_image_act;this.preLoadImage=preLoadImage;this.twidleImagePrice=twidleImagePrice;this.twidlePriceImagedelay=twidlePriceImagedelay;function sizeImageToContainer(_108,thar){if(!_108||!thar||!$(_108)){return;}var dems=Element.getDimensions(_108);if(thar.style){thar.style.width=(dems["width"]+8)+"px";thar.style.height=(dems["height"]+8)+"px";}return 1;}function priceImage(pid,_10c){if(!pid||!pid.match(/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]?$/)){return false;}var url="/AjaxHandlers/ImageInfo/"+pid+".json";ajax_JSON(url,"POST",null);price_image_act(pid,0,0);return false;}function price_image_act(pid,_10f,_110){if(document.ajaxLoaded||_110){var _111=(document.JSONobj.getImgDat("tier")||"");launchwin("/bin/Rates?ln="+pid+"&calc_only=1&supst="+_111);}else{if(_10f<5){_10f++;setTimeout("price_image_act('"+pid+"','"+_10f+"', 0 )",500);}else{_10f++;price_image_act(pid,_10f,1);}}return;}function preLoadImage(prid,crop){if(!$("pimid")){document.body.appendChild(Builder.node("div",{id:"pimid",style:"position:absolute; top:-500px"}));}var _114=$H({id:"previewimg_"+prid,src:"/graphics/loading.png",border:0,alt:"Loading...",lowsrc:"/graphics/spacer.gif"});if(winH<450){smallscreen=1;if(typeof (crop)!="undefined"){if(crop=="panoramic"){_114["width"]=420;}else{if(crop=="vertical"){_114["height"]=((winH-100)<180)?180:(winH-100);}else{_114["height"]=((winH-142)<160)?160:(winH-142);}}}else{_114["height"]=135;}}else{smallscreen=0;}$("pimid").innerHTML="";$("pimid").style.visibility="hidden";var _115=Builder.node("div",{id:"previewpaneshadow2"},[Builder.node("div",{id:"previewpaneshadow1"},[Builder.node("div",{id:"previewpane"},[Builder.node("div",{style:"padding: 2px 2px 2px 2px;",align:"center"},[Builder.node("img",_114)]),Builder.node("div",{id:"previewpane_metdat_"+prid},"")]),Builder.node("img",{src:"http://globaldyn.ipnstock.com/"+dynimagesname+"/420/60/"+prid+".JPG",style:"display:none",onload:"if($('previewimg_"+prid+"')) $('previewimg_"+prid+"').src = this.src"})])]);$("pimid").appendChild(_115);}function twidleImagePrice(_116,type,_118){setTimeout("twidle_price_img_delay("+_116+", '"+type+"', '"+_118+"')",10);return false;}function twidlePriceImagedelay(_119,type,_11b){var _11c="lic"+_119;if(document[_11c].loaded=="true"){return;}if(type=="RF"){var _11d=new Image();_11d.src="/graphics/specify_filesize.gif";document[_11c].src=_11d.src;}if(_11b=="$ 0.00"){}else{var _11d=new Image();_11d.src="/graphics/ready_to_license.gif";document[_11c].src=_11d.src;}document[_11c].loaded="true";return true;}}function afInfo(){this.enlarge2=enlarge2;this.dispatchEnlarge2=dispatchEnlarge2;this.enlarge2_act__generateTierRows=enlarge2_act__generateTierRows;this.enlarge2_act=enlarge2_act;function enlarge2(enid,_11f,_120,_121){var _122=$H({ssid:enid,ssdex:_11f,fimg:_120,nc:_121,showstart:"ss",snum:firstpictureonpage,viewmode:"ss"}).toJSON();try{YAHOO.util.History.navigate("nav",_122);}catch(e){dispatchAll(_122);}}function dispatchEnlarge2(args){if(typeof (args)!="object"){return;}var enid=args["ssid"];var _125=args["ssdex"];var _126=args["fimg"];var _127=args["nc"];var _128=document.currentLayer1Mode;document.currentLayer1Mode="enlarge";var url="/AjaxHandlers/ImageInfo/"+(_126?_126:enid)+".json";var drk="";if(_127){drk="&drk="+Math.random(10);}ajax_JSON(url,getpost,"callback=enlarge2_act('"+enid+"','"+_125+"','"+(_126?_126:"")+"','"+_128+"')"+drk);setuppagesize();$("Layer1").style.height=truevertHeight+"px";var _12b=0;if($("cdheader")&&$("cdheader").style.display=="block"){_12b=146;}$("Layer1").style.height=truevertHeight+_12b+"px";}function enlarge2_act__generateTierRows(_12c,_12d,enid,_12f){var _130="";if(_12d=="RF"){var _131="";$A(_12c.tierinfo).each(function(rowi){Object.extend(rowi,{enlargetid:_12c.image_id,usage:rowi.subof,img_id:enid,encount:(_12f?_12f:"''")});_131+=Templates.tieredimgpricing__rfslug_row.evaluate(rowi);});_130=Templates.tieredimgpricing__rfslug.evaluate({"rows":_131});}else{if(_12d=="RR"){var _133="";$A(_12c.tierinfo).each(function(rowi){Object.extend(rowi,{enlargetid:_12c.image_id,usage:rowi.subof,img_id:enid,encount:(_12f?_12f:"''")});if(rowi.opt_selected==1){rowi.removebutton=Templates.tieredimgpricing__rrslug_row_removebutton.evaluate(rowi);}_133+=Templates.tieredimgpricing__rrslug_row.evaluate(rowi);});_130=Templates.tieredimgpricing__rrslug.evaluate({"rows":_133});}}return _130;}function enlarge2_act(enid,_136,_137,_138){_137=(_137=="undefined"?"":_137);debug("featuredimage",_137);hp();var _139=0;if(id[_136]==document.JSONobj.getImgDat("id")||_137.length==10){_139=1;}debug("useInPage",_139);if(_139||(document.ajaxLoaded&&(enid.match(document.JSONobj.getImgDat("id"))))){if(typeof (viewmode)!="undefined"&&viewmode=="ss"){gsetCookie("gcurrentview","","","/",gGetCookieDom());}if($("cdheader")){$("cdheader").style.display="none";}if((!document.thisIsFeatureView&&_139&&st[_136]&&st[_136].length>13)||overflowtype=="hidden"){suspendtrap=1;}if(firstpictureonpage){gsetCookie("gwhichstartpage",firstpictureonpage,"","/",gGetCookieDom());}var _13a;var _13b=document.JSONobj.getImgDat("short_caption");_13b=(_13b?_13b:"n/a");var _13c=document.JSONobj.getImgDat("long_caption");_13c=(_13c?_13c:"n/a");if(typeof (uselongcaption)!="undefined"&&_13c!="n/a"){if(uselongcaption=="useboth"){if(_13b=="n/a"){_13a=_13b;}else{_13a="<span id=\"enlarge_short_caption\">"+_13b+" <a href=\"\" onclick=\"$('enlarge_short_caption').style.display='none'; $('enlarge_long_caption').style.display='inline'; return false;\">more&nbsp;&gt;&gt;</a></span><span style=\"display:none\" id=\"enlarge_long_caption\">"+_13c+"  <a href=\"\" onclick=\"$('enlarge_long_caption').style.display='none'; $('enlarge_short_caption').style.display='inline'; return false;\">&lt;&lt;&nbsp;less</a></span>";}}else{_13a=_13c;}}else{_13a=_13b;}var _13d=document.JSONobj.getImgDat("rmrftype");var _13e=document.JSONobj.getImgDat("tieredimgpricing");var _13f=enlarge2_act__generateTierRows(_13e,_13d,enid,_136);var _140=document.JSONobj.getImgDat("photographer")+((document.JSONobj.getImgDat("agent_name")&&document.JSONobj.getImgDat("agent_name")!="")?"&nbsp;/&nbsp;"+document.JSONobj.getImgDat("agent_name"):"");var _141=(document.JSONobj.getImgDat("file_size")<5?"Scan on Demand":document.JSONobj.getImgDat("file_size")+" Mb");var _142=document.JSONobj.getImgDat("released");var _143=document.JSONobj.getImgDat("image_restrictions");var _144=document.JSONobj.getImgDat("comp_allow");var _145=(typeof (showdimensions)!="undefined"?document.JSONobj.getImgDat("dimensions"):"");if(_145){var dimr=_145.match(/^(\d+)x(\d+)$/);if(typeof (dimr)=="object"){_145="<br/><b>Original Dimensions:</b>&nbsp;"+dimr[1]+"px&nbsp;x&nbsp;"+dimr[2]+"px";}}var _147=parseInt(_136)+1;var _148=id[_147];var _149=parseInt(_136)-1;var _14a=id[_149];var _14b="";if((!document.thisIsFeatureView)&&_139&&v[_136]&&(v[_136]=="H")){var _14c=+enid.substring(0,2)+"/"+enid.substring(0,5)+"/"+enid;_14b+="<EMBED SRC=\"http://tools.cgibackgrounds.com/qtvideo/"+_14c+".MOV\" WIDTH=420 HEIGHT=280></EMBED>";}else{var _14d="0000000000";if(_137){_14d=_137;}else{_14d=enid;}debug("tarid",_14d);_14b+="<A HREF=\"\" onclick=\"currentpage(); return false;\">"+"<img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/"+((typeof (localwatermark)!="undefined"&&!pngsupport)?"wm":"420")+"/60/"+_14d+".JPG\" border=1 style=\"display:inline; clear:none;\" id=\""+_14d+"\">"+((typeof (localwatermark)!="undefined"&&pngsupport)?"<img style=\"z-index: 300; position:absolute; left:0px; bottom:0px;\" src=\""+localwatermark+"\" border=\"0\" onload=\"fitMeTo('"+_14d+"', this)\"/>":"");_14b+="</A>";}var _14e="";if(!document.thisIsFeatureView&&_139&&st[_136]&&st[_136].length>13){var _14f=st[_136];var _150=_14f.split(" ");var _151=_150[1].split(",");if(_151.length>1){_151=_150[0]+" "+_151.join(" ");_150=_151.split(" ");}var _152=_150.length;if(_152>40){simheight=(70-_152/2);}else{simheight=70-_152;}var _153="";for(var i=0;i<_152;i++){_153+="<span valign=bottom style=\"float:left;\">"+"<a href=\"javasc"+"ript:enlarge2('"+enid+"'"+","+"'"+_136+"','"+_150[i]+"');\" TITLE=\"ID:"+_150[i];if(showphotographer==1){_153+="  \r&copy; "+_140;}_153+=" click image to view similar\"><img src=http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+_150[i]+".JPG border=0 vspace=2 hspace=2 height="+simheight+" align=left></a></span>";}_14e=Templates.enlarge2_act__similars.evaluate({simcolinfo:_153});}var _155="";var _156="";if(_138=="cartview"){_156="<A HREF=\"\" onclick=\"document.currentLayer1Mode='cartview'; viewmode='"+viewmode+"';gsetCookie('gviewmode','"+viewmode+"', '', '/', gGetCookieDom());currentpage(); return false;\"><FONT style=\"font-size:9pt; font-family:Arial;\">&#8593;</font> BACK TO CART</A><BR><BR>";}else{if(document.thisIsFeatureView){_156="<A HREF=\"\" onclick=\"document.currentLayer1Mode='searchresults'; viewmode='"+viewmode+"';gsetCookie('gviewmode','"+viewmode+"', '', '/', gGetCookieDom()); self.location = self.location; return false;\"><FONT style=\"font-size:9pt; font-family:Arial;\">&#8593;</font> BACK TO REQUEST RESULTS</A><BR><BR>";}else{_156="<A HREF=\"\" onclick=\"document.currentLayer1Mode='searchresults'; viewmode='"+viewmode+"';gsetCookie('gviewmode','"+viewmode+"', '', '/', gGetCookieDom()); currentpage(); return false; \"><FONT style=\"font-size:9pt; font-family:Arial;\">&#8593;</font> BACK TO SEARCH RESULTS</A><BR><BR>";}}if(_139){if(_138!="cartview"){if((snum+_136)>0){_155+="                                  <A HREF=\"\" onclick=\"enlarge2('"+_14a+"','"+_149+"'); return false;\" TITLE=\"GO TO THE PREVIOUS IMAGE\"><FONT style=\"font-size:9pt; font-family: Arial;\">&#8592;</FONT> PREV IMAGE </A>&nbsp;&nbsp;";}if((Number(snum)+Number(_136)+1)<Number(results_total)){_155+="                                  <A HREF=\"\" onclick=\"enlarge2('"+_148+"','"+_147+"'); return false;\" TITLE=\"GO TO THE NEXT IMAGE\">NEXT IMAGE <FONT style=\"font-size:9pt; font-family: Arial;\">&#8594;</FONT></A><BR>";}}}var _157="";if(_137){_157=_137;}else{_157=enid;}var _158="";if(_138!="cartview"){if(gsession&&gusername&&_144=="Y"){_158="<a href=\"Javascr"+"ipt:displayWindow('/comp_view.shtml?"+gusername+"/"+cs[_136]+"/"+_157+".JPG','600','640');\"><img src=\"/graphics/icon_comp.gif\" width=21 height=15 alt=\"\" border=\"0\"> DOWNLOAD COMP</a><BR><BR>";}else{if(gsession){_158="<a href=\"Javascr"+"ipt:displayWindow('/comp_view.shtml?guest/"+cs[_136]+"/"+_157+".JPG','600','640');\"><img src=\"/graphics/icon_comp.gif\" width=21 height=15 alt=\"\" border=\"0\"> DOWNLOAD COMP</a><BR><BR>";}}}var _159=(_13f?"<BR/><div class=\"enlargeratetiers\">"+_13f+"</div>":"");var _15a=(showrelease?"<b>Release:</b> "+_142+"<br>":"");var _15b=_140;if(_140.indexOf("/")>0){_15b=_15b.substring(0,_15b.indexOf("/"));}var _15c=((_140&&showphotographer)?"<b>Photographer:</b> <A href=\"/SwishSearch?Keywords="+_15b+"&spec_idx=ne&method=photographer\">"+_140+"</a><br>":"");var _15d=((!_137&&showfilesize)?"<b>File Size:</b> "+_141:"");var _15e=(_143?"<BR/><span style=\"color:#990000\">"+_143+"</span>":"");var _15f="";document.JSONobj.getKeywords().each(function(kwd){var _161=q_args;if(_161.match(/Keywords=[^\+\&]+\+/)){_161=_161.replace(/Keywords=[^\+]+\+/,"Keywords="+kwd+"+");}else{if(_161.match(/Keywords=[^\+\&]+\&/)){_161=_161.replace(/Keywords=[^\+\&]+\&/,"Keywords="+kwd+"&");}else{if(_161.match(/Keywords=[^\+\&]+$/)){_161=_161.replace(/Keywords=[^\+\&]+$/,"Keywords="+kwd);}else{_161=_161.replace(/((rid|\&rid)|(vmo|\&vmo)|(lb_view|\&lb_view)|(cartview|\&cartview))=[^\&]+/,"");_161="Keywords="+kwd+"&"+_161;_161=_161.replace(/\&+/,"&");}}}_161=_161.replace("&spec_idx=ne","");_15f+="<a href=\"/SwishSearch?"+_161+"&spec_idx=ne\">"+kwd+"</a>, ";});var _162;if(o[_136]){_162=o[_136];}else{_162=_157;}var _163=document.JSONobj.getImgDat("date_shot");var _164=document.JSONobj.getImgDat("rfcdlink");var _165=$H({enlargetid:_157,rfcdlinkslug:_164,dateshot:_163,keywordinfo:_15f,displayenlargetid:_162,restrictionsinfo:_15e,filesizeinfo:_15d,photographerinfo:_15c,releaseinfo:_15a,ratetierinfo:_159,downloadcomplink:_158,navenlargedlinks:_155,navbacklinks:_156,similarscolumn:_14e,themediainsert:_14b,rmrftype:_13d,myshortcaption:_13a,dimensions:_145});$("Layer1").style.overflow="auto";MM_setTextOfLayer("Layer1","",Templates.enlarge2_act__body.evaluate(_165));if(typeof (autoshowkeywords)!="undefined"){setTimeout("popkeys2('enlarge_keywords','','enalarge_keywords_text');",500);}MM_preloadImages("http://gdynx.ipnstock.com/"+dynimagesname+"/420/60/"+_148+".JPG");}else{gsetCookie("gviewmode","ss","","/",gGetCookieDom());self.location=nextlink+"snum="+(Number(firstpictureonpage)+Number(snum));}}}function afInit(){this.init=init;function init(){var _166;_prototype();_globals();checkStatus();prepareEvents();findBrowser();findOS();styleSheets();checkGetPost();checkPNGSupport();handleSession({cartView:global.cartView,cartViewLocation:global.cartViewLocation,gSession:global.gSession,pageType:global.pageType,pre_q_args:global.preQArgs,q_args:global.qArgs});pageTypeEvents({pageType:global.pageType});handleBuilder({Builder:global.builderClass,cartPic:global.cartPic});}function checkGetPost(){if(global.userBrowserName=="Firefox"){global.getPost="GET";}}function checkPNGSupport(){if(global.userBrowserName=="Internet Explorer"&&parseInt(global.userBrowserVersion)<7){global.pngSupport=0;}}function checkStatus(){document.currentLayer1Mode=global.currentLayer1Mode;if(global.currentLayer1Mode=="enlarge"){document.currentLayer1Mode="searchresults";global.currentLayer1Mode="searchresults";}}function findData(data){var _168=0;var info="";for(x in data){_168=global.userAgentLowerCase.indexOf(x)+1;if(_168>0){info=data[x];break;}}return ({data:info,place:_168});}function findBrowser(){var x="";var _16b=global.userAgentLowerCase;var _16c={"konqueror":"Konqueror","safari":"Safari","omniweb":"OmniWeb","firefox":"Firefox","opera":"Opera","msie":"Internet Explorer","netscape":"Netscape Navigator"};var _16d=findData(_16c);global.userBrowserName=_16d["data"]||"An unknown browser";global.userBrowserVersion=_16b.charAt(_16d["place"]+x.length);}function findOS(){var x="";var _16f=global.userAgentLowerCase;var os={"linux":"Linux","x11":"Unix","mac":"Mac","win":"Windows","freebsd":"FreeBSD","netbsd":"NetBSD","bsd":"BSD"};global.userOSName=findData(os)["data"]||"An unknown operating system";}function handleBuilder(args){var _172=args["Builder"];var _173=args["cartPic"];if(typeof (_172)!="undefined"){global.nodeTree=$H({cart_build_act__buttons:_172.node("a",{href:"#",onclick:"lightbox_change(); return false;",title:"SWITCH TO YOUR LIGHTBOX"},[_172.node("img",{src:"/graphics/cart_enabled_02.gif",border:0,width:127,height:18,hspace:0,vspace:0})]),cart_build_act__actions:_172.node("span",{},[_172.node("a",{href:"#",onclick:"cart_display(); return false;",className:"lblink",style:"text-decoration:none; cursor:pointer;"},"View Cart and Calculate Usage Fees")," | ",_172.node("a",{href:"#",onclick:"cart_check(); return false;",className:"lblink",style:"text-decoration:none; cursor:pointer;"},"Checkout"),(document.thisIsFeatureView?" | ":""),(document.thisIsFeatureView?_172.node("a",{href:"#",className:"lblink",onclick:"$(\"LBdiv\").style.visibility = \"hidden\"",style:"cursor:pointer;"},"[x] Hide Cart"):"")])});}return ({nodeTree:global.nodeTree});}function handleSession(args){var _175=args["cartView"];var _176=args["cartViewLocation"];var _177=args["gSession"];var _178=args["pageType"];var _179=args["pre_q_args"];var _17a=args["q_args"];if(typeof (_177)!="undefined"&&_177){if(_175){document.currentLbdivMode="cart";document.currentLayer1Mode="cartview";global.currentMousedOverObject="shop_cart";}if((typeof (_178)!="undefined"&&_178=="lb")||(typeof (_179)!="undefined"&&(_179.match(/lb_view=1/)||_179.match(/fn=/)))||(typeof (_17a)!="undefined"&&(_17a.match(/vmo=/)||_17a.match(/lb_view=1/)))){global.pageType="lb";gsetCookie("gwhichstartpage","","","/",gGetCookieDom());}}else{if(_175){top.location=_176;}}return ({currMousedOverObj:global.currentMousedOverObject,pagetype:global.pageType});}function pageTypeEvents(args){var _17c=args["pageType"];if(typeof (_17c)!="undefined"){Event.observe(window,"load",currentpage);Event.observe(window,"resize",checkpageresize);Event.observe(window,"click",hp);}}function prepareEvents(){if(typeof (Event)!="undefined"&&typeof (Event.observe)=="function"){Event.observe(window,"load",getVars);Event.observe(window,"load",function(){if(EAD("share_control_sphotog")){nextlink+="site="+$F("share_control_sphotog")+"&";}if(EAD("share_control_status")){nextlink+="status_view="+$F("share_control_status")+"&";}if(EAD("share_control_view")){nextlink+="view="+$F("share_control_view")+"&";}if(EAD("share_control_release")){nextlink+="release_view="+$F("share_control_release")+"&";}});}}function _prototype(){if(typeof ($)!="function"){document.write("<script src=\"/javascripts/prototype.js\" type=\"text/javascript\"></script>");}}function styleSheets(){document.write("<LINK rel=\"stylesheet\" href=\"/css/main2.css\" type=\"text/css\">");if(global.userBrowser=="IE"||global.userBrowserName=="Internet Explorer"){document.write("<LINK rel=\"stylesheet\" href=\"/css/fixed4ie.css\" type=\"text/css\">");}}}function afLegal(){this.copyrightNotice=copyrightNotice;this.licenseCostWindow=licenseCostWindow;function copyrightNotice(){alert("currentYear: "+currentYear);if($("copyright")){if(typeof (customhovermessage)!="undefined"&&customhovermessage!=""){$("copyright").innerHTML=customhovermessage;}else{$("copyright").innerHTML=Templates.hovercopyright__text.evaluate({currentyear:currentYear,baseurl:baseurl});}}}function licenseCostWindow(id){launchwin("/bin/Rates?calc_only=1&usage=1&ln="+id);}}function afLightbox(){this.newLightbox=newLightbox;this.registerLightbox=registerLightbox;this.emailLightbox=emailLightbox;this.emailConfirmation=emailConfirmation;this.lightbox_mod_act=lightbox_mod_act;this.simpleMessage=simpleMessage;this.addLightboxToCart=addLightboxToCart;this.deleteLightbox=deleteLightbox;this.renameLightbox=renameLightbox;this.buildLightbox=buildLightbox;this.validateLightboxName=validateLightboxName;this.registerLightboxRename=registerLightboxRename;this.changeLightbox=changeLightbox;this.addImageToLightbox=addImageToLightbox;this.deleteLightboxFromEnlargeView=deleteLightboxFromEnlargeView;this.deleteImageFromLightbox=deleteImageFromLightbox;this.toggleLightbox=toggleLightbox;this.makeLightboxString=makeLightboxString;this.refreshTopLightbox=refreshTopLightbox;this.saveLightbox=saveLightbox;function newLightbox(){center_panel(290,200,Templates.lightbox_new__body.evaluate());}function registerLightbox(){var lbn="";if($("lightbox_new_name")){lbn=$F("lightbox_new_name");}if(lbn.length==0||lbn.length>100){alert("Lightbox names must be between 1 and 100 characters long.");if(lbn){lbn="";}}else{if(test_valid_name(lbn)){polllb();var lbs=make_lightbox_string(gusername,lbn,[{id:1}]);currentlbname=lbn;simplemessage("creating your lightbox "+lbn+" <blink>.</blink>","","LB");ajax_JSON("/AjaxHandlers/LightboxNew/"+lbs+".json",getpost,null);}}}function emailLightbox(){var _180="/bin/Mail";var _181="ot=2&dsm=1&to_email="+$("to_email").value+"&mail_text="+escape($("mail_text").value);if($("allow_hrdl")&&$("allow_hrdl").checked==true){_181+=(typeof (emaillburladd)!="undefined"?emaillburladd:"");}if($("bill_to_customer")&&$("bill_to_customer").value.toString().length>0){_181+="&customer_id="+$("bill_to_customer").value;}if($("email_project")&&$("email_project").value.toString().length>0){_181+="&project="+$("email_project").value;}if($("email_notes")&&$("email_notes").value.toString().length>0){_181+="&notes="+$("email_notes").value;}if($("notify").checked==true){_181+="&notify=1";}if($("readonly").checked==true){_181+="&readonly=1";}ajax_TEXT(_180+"?"+_181,"GET");simplemessage("Sending your lightbox "+" <blink>.</blink>",0);}function lightbox_mod_act(_182){if(currentLbdivMode=="cart"){return false;}var _183=0;if(document.JSONobj&&document.JSONobj.getLbDat("lbname")){var _184=document.JSONobj.getLbDat("lbname");if(currentlbname==_184||!currentlbname){hidedisplaypanel(1);var _185=document.JSONobj.getLbDat("lblist");var lbl=document.JSONobj.getLbDat("lbnamelist");if(typeof (_185)!="array"&&typeof (_185)!="object"||!_185.length){_185=new Array(1);_185[0]={id:"1",rfcd:""};}document.currentlbstash=_185;currentlbname=_184;currentlblist=lbl;_183=0;lightbox_build(_185,_184,"",lbl);}else{_183=1;}}else{_183=1;}if(_183){setTimeout("lightbox_mod_act()",500);}}function simpleMessage(m,mode,trg){if(trg&&$("LBdiv")){$("LBdiv").style.height="100px";$("LBdiv").innerHTML=Templates.simplemessage__body_lightbox.evaluate({message:m});}else{createDisplayPanel();if($("displaypanellayer").style.left=="0px"){$("displaypanellayer").style.left=parseInt(winW-200)/2+"px";}if($("displaypanellayer").style.top=="0px"){$("displaypanellayer").style.top=parseInt(winH-100)/2+"px";}if($("displaypanellayer").style.visibility=="hidden"){$("displaypanellayer").style.visibility="visible";}$("displaypanellayer").innerHTML=Templates.simplemessage__body.evaluate({message:m});}if(!mode){setTimeout("hidedisplaypanel(1);",700);}}function emailConfirmation(mode){if(mode=="sent"){simplemessage("Lightbox Sent!"+"<blink>.</blink>");}else{if(mode=="close"){hidedisplaypanel(1);}else{var _18b={emaillbaddhtml:(typeof (emaillbaddhtml)!="undefined"?emaillbaddhtml:" "),currentlbname:currentlbname};center_panel(390,280,Templates.lightbox_email__body.evaluate(_18b));}}}function addLightboxToCart(){simplemessage("Adding lightbox images to Shopping Cart <blink>.</blink>","","LB");ajax_JSON("/AjaxHandlers/CartLbAdd/0000000000.json","POST","callback=cart_mod_act(0)");}function deleteLightbox(){simplemessage("Deleting your current lightbox "+currentlbname,"","LB");var _18c=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var lbs=make_lightbox_string(gusername,currentlbname);currentlbname="";ajax_JSON("/AjaxHandlers/LightboxDelete/"+lbs+".json",getpost,_18c);}function renameLightbox(){var _18e={currentlbname:currentlbname};center_panel(290,200,Templates.lightbox_rename__body.evaluate(_18e));}function buildLightbox(tlba,_190,secr,lbl){if(cartview&&carnit){carnit=0;document.currentlbstash=tlba;cart_build("changing");return;}hidedisplaypanel(1);if(typeof (tlba)!="object"&&typeof (document.currentlbstash)=="undefined"){return;}else{if(typeof (document.currentlbstash)=="object"&&typeof (tlba)!="object"){tlba=document.currentlbstash;}}currentLbdivMode="lightbox";if(_190){currentlbname=_190;}if(lbl){currentlblist=lbl.split("|");}if(secr){scr=secr;}var _193=$("LBdiv")?Position.cumulativeOffset($("LBdiv")):[0,0];var _194=winH-_193[1]-18;document.currentlbstash=tlba;if($("LBdiv")){var _195=$A([]);_195.push(Builder.node("div",{id:"lbbuttons",style:"padding: 0px; margin: 0px; height:16px; width: 127px; overflow:hidden;"},[Builder.node("a",{href:"",onclick:"cart_build('changing'); return false;",title:"SWITCH TO YOUR CART"},[Builder.node("img",{src:"/graphics/lightbox_enabled_02.gif",border:0,width:127,height:18,hspace:0,vspace:0})])]));var _196=$A([]);if(currentlblist&&currentlblist.length>0){var _197=0;$A(tlba).each(function(_198){if(_198.id==1){_197=1;}});var _199=(_197?(tlba.length-1):tlba.length);_196.push(Builder.node("b",{},currentlbname+" Lightbox"),"  ("+_199+")  ",Builder.node("b",{},"Change to  "));var _19a=document.createElement("select");_19a.setAttribute("name","n");_19a.setAttribute("id","lightbox_menu");_19a.setAttribute("class","smallmenu");_19a.onchange=function(){lightbox_change(this.options[this.selectedIndex].value);};for(var i=0;i<currentlblist.length;i++){if(currentlblist[i]!=""){var _19c;_19c=document.createElement("option");_19c.setAttribute("value",currentlblist[i]);_19c.appendChild(document.createTextNode(currentlblist[i].substring(0,25)+(currentlblist[i].length>25?"...":"")));if(currentlblist[i]==currentlbname){_19c.setAttribute("selected","selected");}_19a.appendChild(_19c);}}_196.push(_19a);}var tlb1="";var tlb2="";var tlb3="";var tlb4="";var tlb5="";var tlb6="";var tlb7="";var tlb8="";var tlb9="";if(winW>832){tlb1="New Lightbox";tlb2="View Expanded Lightbox";tlb3="Email Lightbox";tlb4="Add Lightbox to Cart";tlb5="Delete Lightbox";tlb6="Rename Lightbox";tlb7="Make LB a Feature";tlb8="Copy LB to User";tlb9="Resort LB";}else{tlb1="New LB";tlb2="View LB";tlb3="Email LB";tlb4="Add LB to Cart";tlb5="Delete LB";tlb6="Rename LB";tlb7="Make Feature";tlb8="Copy LB";tlb9="Sort";}_196.push(Builder.node("a",{"href":"","class":"lblink","onclick":"lightbox_new(); return false;"},tlb1)," | ",Builder.node("a",{"href":"","onclick":"var d = new Date(); d.setMinutes(d.getMinutes()+5); gsetCookie('gprewhichstartpage', showstartnumber_trap, d, '/', gGetCookieDom()); toplightboxrefresh(); return false;","class":"lblink"},tlb2)," | ",Builder.node("a",{"href":"","class":"lblink","onclick":"lightbox_email(); return false;"},tlb3)," | ",Builder.node("a",{"href":"","class":"lblink","onclick":"lightbox_add2cart(); return false;"},tlb4)," | ",Builder.node("a",{"href":"","class":"lblink","onclick":"lightbox_delete(); return false;"},tlb5)," | ",Builder.node("a",{"href":"","class":"lblink","onclick":"lightbox_rename(); return false;"},tlb6));if(typeof (makelightboxfeature)!="undefined"){_196.push(" | ",Builder.node("a",{"href":"","class":"lblink","onclick":"launchwin('"+makelightboxfeature+currentlbname+"', 'make feature', 500, 400, 100, 100); return false;"},tlb7));}if(typeof (copylightboxtouser)!="undefined"){_196.push(" | ",Builder.node("a",{href:"","class":"lblink","onclick":"launchwin('"+copylightboxtouser+"', 'copy_lightbox', 300, 300, 300, 400); return false;"},tlb8));}if(typeof (enlargedlbsort)!="undefined"){_196.push(" | ",Builder.node("a",{href:"","class":"lblink","onclick":"if(pagetype=='lb') { center_panel(390,120, '<div style=\"background:#F7E6A9;height:120px;font-size:6pt;text-align:center;padding:20px 10px 0 10px;\"><br/><h1>Your display will be refreshed once you close the Lightbox Sort popup window.</h1></div>'); } launchwin('"+enlargedlbsort+currentlbname+"', 'resort_lightbox', 450, 750, 200, 300); return false;"},tlb9));}_196.push(" | ",Builder.node("a",{"href":"","class":"lblink","onclick":"showhideLB(); return false;",style:"cursor:pointer"},"[+|-]"));var _1a6="block";if(lbdisplaymode&&viewmode=="editing"){_1a6="none";}_195.push(Builder.node("div",{"id":"lblinks","class":"lbname lbscroll","style":"overflow: auto; overflow-y:hidden"},[Builder.node("nobr",{},_196)]));var _1a7=$A([]);var _1a8=30;if(tlba.length>0){if(_1a6=="block"){_1a8=130;}else{if(_1a6=="none"){_1a8=40;}}var _1a9="hidden";var _1aa=parseInt(winW/79);var _1ab="100%";if(_1aa<tlba.length){_1a9="scroll";_1ab=79*tlba.length;_1ab=_1ab+"px";}var _1ac=50;if(truevertHeight<340){vlim=25;}else{if(truevertHeight<450){vlim=35;}else{vlim=58;}}for(lbi=0;lbi<tlba.length;lbi++){if(tlba[lbi].id==""){continue;}lbid=tlba[lbi].id;if((lbid==1&&tlba.length<2)||lbid!=1){var _1ad={"className":"lblink","title":"Enlarge this image"};var _1ae={"id":"dlb"+lbi+"s_lbi"};if(tlba[lbi].rfcd&&tlba[lbi].rfcd.toString().length){var pm=unescape(tlba[lbi].rfcd.toString()).match(/SwishSearch\?n\=1\&fn\=(.*)\&supst\=cd/);if(pm!=null){var _1b0=pm[1];_1ad.href="/SwishSearch?n=1&fn="+_1b0+"&supst=cd";_1ae.href="/SwishSearch?n=1&fn="+_1b0+"&supst=cd";}}else{_1ad.href="";_1ad["onclick"]="hp(); enlarge2('"+lbid+"','"+lbi+"'); return false;";_1ae.href="";_1ae.onclick="if (suspendpreviews==0) { hp(); enlarge2('"+lbid+"', '"+lbi+"'); } return false;";}var _1b1=(lbid!=1?Builder.node("div",{"style":"padding-left: 2px; padding-right: 2px; padding-bottom:6px;"},[Builder.node("a",{"onclick":"lightbox_delete_image('"+lbid+"'); return false;",className:"lblink","title":"Remove this image from the lightbox","href":""},"x"),Builder.node("a",_1ad,"+")]):"");_1a7.push(Builder.node("div",{"id":"dlb_"+lbi,"name":"dlb_"+lbi,"style":"float:left; height:"+(_1ac+18)+"px; overflow:hidden","align":"center"},[Builder.node("a",_1ae,[Builder.node("img",{"id":"dlb_"+lbid,"onmouseover":"prloadimg('"+lbid+"'); pmousedelta[1] = -180; sp(this, '"+lbid+"', '"+lbi+"','"+tset+"');",onmouseout:"hp(); pmousedelta[1] = -30;","src":"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+lbid+".JPG",border:0,height:_1ac,className:"lbimg","hspace":2})]),Builder.node("br"),_1b1]));}}}else{if(currentlbname){_1a7.push(Builder.node("div",{"id":"dlb_0","name":"dlb_0","style":"float:left; height:"+(_1ac+18)+"px; overflow:hidden;","align":"center"},[Builder.node("a",{"href":"","onclick":"return false;","id":"dlb0s_lbi","onmouseover":"prloadimg('1'); sp(this, '1', '0','"+tset+"');","onmouseout":"hp();"},[Builder.node("img",{"src":"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/1.JPG",border:0,height:_1ac,className:"lbimg","hspace":2})])]));}}_195.push(Builder.node("div",{"class":"lbscroll","style":"position: relative; overflow:"+_1a9+"; overflow-y:hidden; height:"+(_1a8-50)+"px;"},[Builder.node("div",{"id":"LBimgdiv","style":"position:absolute; left:0; top:0; padding: 1px 0 0 0; height:"+(_1a8-30)+"px; width:"+_1ab+"; display:"+_1a6+";"},[_1a7])]));$("LBdiv").replace("<div id=\"LBdiv\"></div>");$("LBdiv").innerHTML="";$("LBdiv").style.height=_1a8+"px";_195.each(function(_1b2){$("LBdiv").appendChild(_1b2);});if(lbdisplaymode==1&&viewmode=="editing"){$("LBimgdiv").hidden=1;}}global.lightBoxBuilt=1;lightbox_built=global.lightBoxBuilt;return;}function validateLightboxName(v){if(v.match(/[^A-Za-z0-9 \-_]/)){alert("Lightbox names may only contain letters, numbers, spaces, hyphens, and underscores.");return false;}else{return true;}}function registerLightboxRename(){var _1b4=$F("lightbox_new_name");if(_1b4.length==0||_1b4.length>100){alert("Lightbox names must be between 1 and 100 characters long.");_1b4="";}else{if(test_valid_name(_1b4)){simplemessage("renaming your lightbox "+_1b4+" <blink>.</blink>","LB");var _1b5=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var lbs=make_lightbox_string(gusername,currentlbname,_1b4);ajax_JSON("/AjaxHandlers/LightboxRename/"+lbs+".json",getpost,_1b5);currentlbname=_1b4;}}}function changeLightbox(_1b7){currentLbdivMode="lightbox";cartview="";document.currentLbdivMode="lightbox";var lbs="";if(typeof (_1b7)!="undefined"&&_1b7.toString().length>0){simplemessage("Changing to Lightbox: "+_1b7+"<blink>.</blink>","","LB");polllb();currentlbname=_1b7;lbs=make_lightbox_string(gusername,_1b7);}ajax_JSON("/AjaxHandlers/LightboxInfo/"+lbs+".json",getpost,null);}function addImageToLightbox(id){if(gsession){var _1ba=(typeof (document.currentlbstash)=="object"?1:0);var temp=(_1ba?document.currentlbstash.pluck("id").join(" "):"");if(temp.indexOf(id)>=0){alert("That image is already in your Lightbox");}else{if(!currentlbname){currentlbname="newlb";}if(!document.currentlbstash.push){document.currentlbstash=new Array();}document.currentlbstash.unshift({id:id,rfcd:""});var _1bc=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var lbs=make_lightbox_string(gusername,currentlbname,id);ajax_JSON("/AjaxHandlers/LightboxAddTo/"+lbs+".json",getpost,_1bc);if(_1ba){lightbox_build(document.currentlbstash);}}}else{self.location="/bin/Cklb?ref=/SwishSearch%3F"+escape(pre_q_args)+"&atlb="+id;}}function deleteLightboxFromEnlargeView(_1be,_1bf){var _1c0;var _1c1="";var _1c2=gusername;if(typeof (mobject_id)!="undefined"&&mobject_id!=""){var _1c3=new Array;_1c3=mobject_id.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);_1c0=_1c3[3];_1c2=_1c3[2];_1c1=mobject_id;}else{if(typeof (pagetype)!="undefined"&&pagetype=="lb"){_1c0=dsplkys;}else{if(typeof (q_args)=="undefined"||!q_args.match(/rid=/)){return;}}}if(document.thisIsFeatureView&&typeof (feat_requestview)!="undefined"&&feat_requestview.toString().length>0){ajax_JSON("/R?del_id="+_1be+"&rid="+feat_requestview,"GET",null);}else{ajax_TEXT("/bin/CreateLightbox?delid="+_1be+"&vmo="+_1c1+"&uname="+_1c2+"&lbname="+_1c0,"GET",null);}for(var tt=0;tt<id.length;tt++){if(id[tt]==_1be){cs.splice(tt,1);fs.splice(tt,1);o.splice(tt,1);rm.splice(tt,1);id.splice(tt,1);st.splice(tt,1);hrdl.splice(tt,1);rel.splice(tt,1);sw.splice(tt,1);pho.splice(tt,1);scp.splice(tt,1);var _1c5=$H({showstart:showstartnumber_trap+1,snum:showstartnumber_trap,viewmode:viewmode,buildmode:"",resized:""}).toJSON();dispatchAll(_1c5);}}if(_1c0==currentlbname&&(typeof (_1bf=="undefined")||_1bf!=1)){lightbox_delete_image(_1be,1);}if($("imgtotal")){$("imgtotal").innerHTML=id.length;}if($("lastpgtotal")){$("lastpgtotal").innerHTML=id.length;}if($("nav_total_images")){$("nav_total_images").innerHTML=id.length;}results_total=id.length;}function deleteImageFromLightbox(_1c6,_1c7){var nlb=new Array();var _1c9="";var _1ca="";for(var temp=0;temp<document.currentlbstash.length;temp++){if(document.currentlbstash[temp].id==_1c6){var _1cc=temp;if(typeof (mobject_id)!="undefined"&&mobject_id!=""){var _1cd=new Array;_1cd=mobject_id.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);_1c9=_1cd[3];}else{if(typeof (pagetype)!="undefined"&&pagetype=="lb"){_1c9=dsplkys;}}}else{nlb.push(document.currentlbstash[temp]);}}document.currentlbstash=nlb;if(_1c9&&_1c9!=""&&_1c9==currentlbname&&_1c7!=1){lightbox_delete_image_enl(_1c6,1);}if(typeof (document.currentlbstash)!="undefined"&&document.currentlbstash.length==0){lightbox_delete();}else{var _1ce=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var lbs=make_lightbox_string(gusername,currentlbname,_1c6);ajax_JSON("/AjaxHandlers/LightboxDelFrom/"+lbs+".json",getpost,_1ce);lightbox_build(document.currentlbstash);}}function toggleLightbox(){if($("LBimgdiv").hidden==1){$("LBimgdiv").style.display="block";$("LBdiv").style.height="130px";$("LBimgdiv").hidden=0;gsetCookie("ghidelightbox","","","/",gGetCookieDom());}else{$("LBimgdiv").style.display="none";var gh=$("Layer1").getHeight()+200;$("Layer1").style.height=gh+"px";$("LBdiv").style.height="40px";$("LBimgdiv").hidden=1;gsetCookie("ghidelightbox","1","","/",gGetCookieDom());}currentpage();}function makeLightboxString(_1d1,_1d2,_1d3){var _1d4="";if(typeof (_1d3)=="object"){_1d4=_1d3.pluck("id");}else{_1d4=[_1d3];}_1d4=_1d4.reverse();var _1d5=_1d4.join("|");if(_1d5&&_1d5.length>500){_1d5="";}var _1d6=_1d1+"|||"+_1d2+(_1d5?"||"+_1d5:"");return _1d6;}function refreshTopLightbox(){if(gsession){self.location="/SwishSearch?n=1&lb_view=1";}else{self.location="/bin/Cklb?ref=/SwishSearch?lb_view=1";}}function saveLightbox(_1d7,_1d8){var lbs=make_lightbox_string(gusername,currentlbname,(typeof (document.currentlbstash)!="undefined"?document.currentlbstash:1));var _1da=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var _1db=getpost;if(typeof (document.currentlbstash)=="object"&&document.currentlbstash.length>50){var _1dc=document.currentlbstash.pluck("id").reverse().join("|");if(_1da){_1da+="&";}_1da+="payload="+_1dc;_1db="POST";}ajax_JSON("/AjaxHandlers/LightboxSave/"+lbs+".json",_1db,_1da);}}function afMouse(){this.mouseSnap=mouseSnap;this.findMouse=findMouse;this.getMouseCoordinates=getMouseCoordinates;function mouseSnap(e){if(typeof (event)=="undefined"){document.mouseLocSnapX=Event.pointerX(e);document.mouseLocSnapY=Event.pointerY(e);}else{document.mouseLocSnapX=Event.pointerX(event);document.mouseLocSnapY=Event.pointerY(event);}}function findMouse(e,sX,sY){if($("pimid")){var _1e1=pmousedelta[0];var _1e2=pmousedelta[1];mouseX=(sX||0);mouseY=(sY||0);var _1e3;if(typeof (event)=="undefined"){mouseX=Event.pointerX(e);mouseY=Event.pointerY(e);_1e3=e.target;}else{mouseX=Event.pointerX(event);mouseY=Event.pointerY(event);_1e3=event.target;}if(Math.abs(mouseX-document.mouseLocSnapX)>150||Math.abs(mouseY-document.mouseLocSnapY)>150){hp();}else{var _1e4=60;if(_1e3&&_1e3.nodeName=="IMG"){_1e4=Element.getDimensions(_1e3)["height"];}if((mouseX+Element.getDimensions($("pimid"))["width"])>winW){_1e1=(mouseX-Element.getDimensions($("pimid"))["width"]-pmousedelta[0]-45);}else{_1e1+=mouseX;}if(_1e1<0){_1e1=pmousedelta[0];}if((mouseY-Math.min(_1e4,420)+pmousedelta[1]-20)<document.body.scrollTop){_1e2=document.body.scrollTop-pmousedelta[1];if((_1e2+40)>winH){_1e2=(_1e2-Math.min(_1e4,420)+pmousedelta[1]);if(((_1e2+Math.max(_1e4,420)-document.body.scrollTop)-winH)>0){_1e2=_1e2-(typeof (event)=="undefined"?Math.min((_1e4+160),420):(gloCrop=="panoramic"||(gloCrop!=""&&gloCrop!="vertical")?190:380));}}}else{if((mouseY+Math.max(_1e4,420))>winH){_1e2=(mouseY-Math.min(_1e4,420)+pmousedelta[1]);if(((_1e2+Math.max(_1e4,420)-document.body.scrollTop)-winH)>0){_1e2=_1e2-(typeof (event)=="undefined"?Math.min((_1e4+160),420):(gloCrop=="panoramic"||(gloCrop!=""&&gloCrop!="vertical")?190:380));}if(_1e2<document.body.scrollTop){_1e2=document.body.scrollTop-pmousedelta[1];}}else{_1e2+=mouseY;if((_1e2+40)>winH){_1e2=(_1e2-Math.min(_1e4,420)+pmousedelta[1]);if(((_1e2+Math.max(_1e4,420)-document.body.scrollTop)-winH)>0){_1e2=_1e2-(typeof (event)=="undefined"?Math.min((_1e4+160),420):(gloCrop=="panoramic"||(gloCrop!=""&&gloCrop!="vertical")?190:380));}}}}$("pimid").style.left=parseInt(_1e1)+"px";$("pimid").style.top=parseInt(_1e2)+"px";}}}function getMouseCoordinates(e){if(browser!="Internet Explorer"){msX=e.pageX;msY=e.pageY;}else{msX=event.clientX+document.body.scrollLeft;msY=event.clientY+document.body.scrollTop;}if(msX<panelx||msY>(panely+panelheight)){document.isn.Keywords.blur();hidedisplaypanel(1);}}}function afPage(){this.checkPageResize=checkPageResize;this.currentPage=currentPage;this.nextPage=nextPage;this.previousPage=previousPage;this.setupPageSize=setupPageSize;function currentPage(){if($("cdheader")){$("cdheader").style.display="block";}setuppagesize();if(document.currentLayer1Mode=="searchresults"){var _1e6=$H({snum:(firstpictureonpage?firstpictureonpage:0),viewmode:viewmode,buildmode:"",resized:""});dispatchBuildimages(_1e6);}else{if(document.currentLayer1Mode=="cartview"){cart_display();}}createCoverLayer();$("coverlayer").style.width=winW+"px";if($("Layer1")){if(document.currentLayer1Mode!="cartview"&&document.currentLayer1Mode!="enlarge"){$("Layer1").style.overflow="hidden";}$("Layer1").style.width="100%";$("Layer1").style.height=(document.currentLayer1Mode=="cartview"||document.currentLayer1Mode=="enlarge"?truevertHeight:winH)+"px";if($("lbbuttons")){$("coverlayer").style.height=(Element.getHeight("Layer1")+Element.getHeight("row2")+Element.getHeight("cdheader"))+((covertopadjust)?covertopadjust:0)+((coverbottomadjust)?coverbottomadjust:0)+"px";}else{$("coverlayer").style.height=(winH+30)+"px";}if($("cdheader")){if(Position.cumulativeOffset($("cdheader"))[1]>0){$("coverlayer").style.height=(Element.getHeight("Layer1")+Element.getHeight("row2")+Element.getHeight("cdheader"))+((covertopadjust)?covertopadjust:0)+((coverbottomadjust)?coverbottomadjust:0)+"px";}}$("coverlayer").style.width=Element.getWidth("Layer1");var co=[];if($("row2")){co=Position.cumulativeOffset($("row2"));}if($("cdheader")&&Position.cumulativeOffset($("cdheader"))[1]>0){co=Position.cumulativeOffset($("cdheader"));}else{if($("navContainer")){co=Position.cumulativeOffset($("navContainer"));co[1]+=$("navContainer").getHeight();}}$("coverlayer").style.top=(co[1]-((covertopadjust)?covertopadjust:0))+(Position.cumulativeOffset($("cdheader"))[1]<1?((typeof (covertopadjust)!="undefined")?covertopadjust:0):0)+"px";$("coverlayer").style.left=co[0]+"px";var _1e8=(trueh-Element.getHeight("LBdiv")-1);}}function setupPageSize(){adminheight=0;if(typeof (hrdl)!="undefined"&&hrdl[0]&&hrdl[0]!=""){if(typeof (viewmode)!="undefined"&&viewmode=="editing"){adminheight=0;}else{if(typeof (adminheight_custom)!="undefined"){adminheight=adminheight_custom;}else{adminheight=11;}}}if(typeof (shcon)=="object"&&shcon[0]&&shcon[0]!=""){adminheight+=11;}if($("Layer1")){winW=Element.getWidth("Layer1");}else{if(self.innerWidth){winW=self.innerWidth;}else{winW=document.body.offsetWidth-0;}}if(self.innerHeight){trueh=self.innerHeight;}else{trueh=document.body.offsetHeight-0;}if(document.documentElement.clientHeight&&document.documentElement.clientHeight>trueh&&(typeof (viewmode)!="undefined"&&(viewmode!="med"||yourBrowse=="IE"))){trueh=document.documentElement.clientHeight-0;}truew=winW;safetyspace=16;menuheight=20;winH=parseInt(trueh)-($("row2")?(parseInt(Element.getHeight("row2"))+Position.cumulativeOffset($("row2"))[1]):20);if(document.currentLayer1Mode=="enlarge"){winH=winH-safetyspace;}else{winH=winH-safetyspace-menuheight;}if(typeof (tweakheight)!="undefined"&&tweakheight!=0){winH=winH-tweakheight;}if(gsession){if(document.getElementById("LBdiv")){var lbh=parseInt(Element.getHeight("LBdiv"));if(lbh<140&&!(lbdisplaymode==1&&viewmode=="editing")){winH=winH-140;}else{winH=winH-lbh;}}}if(typeof (setuppagesize_cellsizes_custom)=="function"){setuppagesize_cellsizes_custom();}else{imagerows=Math.floor(winH/(176+adminheight));imagespaceheight=imagerows*(176+adminheight);area=imagerows*Math.floor(winW/152);if(!viewmode&&imagerows==1){viewmode="med";gsetCookie("gviewmode","med","","/",gGetCookieDom());}if(viewmode){if(viewmode=="table"){imagerows=Math.floor(winH/(176+adminheight));if(imagerows==0){imagerows=1;}imagespaceheight=imagerows*(176+adminheight);area=imagerows*Math.floor(winW/152);}else{if(viewmode=="editing"){imagerows=Math.floor(winH/(160+adminheight));if(imagerows==0){imagerows=1;}imagespaceheight=imagerows*(160+adminheight);area=imagerows*Math.floor(winW/300);}else{if(viewmode=="list"){imagerows=Math.floor(winH/(172+adminheight));if(imagerows==0){imagerows=1;}imagespaceheight=imagerows*(172+adminheight);area=imagerows*Math.floor(winW/300);}else{if(viewmode=="tiny"){imagerows=Math.floor(winH/(106+adminheight));if(imagerows==0){imagerows=1;}imagespaceheight=imagerows*(106+adminheight);area=imagerows*Math.floor(winW/96);}else{if(viewmode=="med"){imagerows=Math.floor(winH/(130+adminheight));if(imagerows==0){imagerows=1;}imagespaceheight=imagerows*(130+adminheight);area=imagerows*Math.floor(winW/140);}else{if(viewmode=="huge"){imagerows=Math.floor(winH/(220+adminheight));if(imagerows==0){imagerows=1;}imagespaceheight=imagerows*(220+adminheight);area=imagerows*Math.floor(winW/330);}else{if(viewmode=="large"){imagerows=Math.floor(winH/(199+adminheight));if(imagerows==0){imagerows=1;}imagespaceheight=imagerows*(199+adminheight);area=imagerows*Math.floor(winW/187);}}}}}}}}}truevertHeight=winH;if(winH<450){smallscreen=1;}if(area>0){totalimagesthatcanfit=area;gpixperpagev=totalimagesthatcanfit;$("pixperpage").value=gpixperpagev;}else{gpixperpagev=ggetCookie("gpixperpage");if(!gpixperpagev){gpixperpagev=12;}}createCoverLayer();$("coverlayer").style.width=winW+"px";if($("lbbuttons")){$("coverlayer").style.height=(Position.cumulativeOffset($("lbbuttons"))[1]-Position.cumulativeOffset($("row2"))[1]+Element.getHeight("lbbuttons"))+"px";}else{$("coverlayer").style.height=(winH+30)+"px";}var co=[];if($("row2")){co=Position.cumulativeOffset($("row2"));}else{co=Position.cumulativeOffset($("navContainer"));co[1]+=$("navContainer").getHeight();}$("coverlayer").style.top=co[1]+"px";$("coverlayer").style.left=co[0]+"px";}function nextPage(){buildimages(lastimage,"next");}function previousPage(){backpagestart=lastimage-(2*parseInt($F("pixperpage")));if((backpagestart)<0){if((backpagestart+snum)<0){prevtogoto=0;}else{prevtogoto=Number(snum)+Number(backpagestart);gsetCookie("gwhichstartpage","0","","/",gGetCookieDom());if(prevtogoto<0){prevtogoto=0;}}var _1eb=$H({showstart:1,snum:0,viewmode:viewmode}).toJSON();self.location=nextlink+"snum="+prevtogoto+"#nav="+_1eb;}else{buildimages(backpagestart,"prev");}}function checkPageResize(e){if(self.innerWidth){newW=self.innerWidth-0;}else{if(document.body){newW=document.body.offsetWidth-0;}}if(newW!=tempW){if(self.innerWidth){tempW=self.innerWidth-0;}else{tempW=document.body.offsetWidth-0;}try{if(currentLbdivMode=="lightbox"){setTimeout("lightbox_build(document.currentlbstash);",1000);}else{if(currentLbdivMode=="cart"){setTimeout("cart_build();",1000);}}}catch(e){}setTimeout("currentpage();",1000);}}}function afPreview(){this.previewSet=previewSet;function previewSet(){tset=document.page.previews.options[document.page.previews.selectedIndex].value;var date=new Date();date.setTime(date.getTime()+(60*24*60*60*1000));gsetCookie("gpreviews",tset,date,"/",gGetCookieDom());}}function afSearch(){this.searchType=searchType;this.standardSearch=standardSearch;this.searchPreferences=searchPreferences;this.writeSearch=writeSearch;this.writeStandardSearch=writeStandardSearch;function searchType(){if(typeof (g_custom)=="function"){g_custom();}else{g_standard();}}function standardSearch(){var url2=$F("Keywords");var _1ef;if($("Username")){_1ef=$F("Username");}pagetype="search";var _1f0="";if(typeof (q_args)!="undefined"&&q_args){_1f0=q_args.match(/Keywords=(.*?)(\&|$)/);if(typeof (_1f0)!="undefined"&&_1f0&&_1f0.length>1){_1f0=_1f0[1];}else{_1f0="";}_1f0=unescape(_1f0);}if(url2.length<1&&_1f0.length<1&&!(EAD("share_control_sphotog")||EAD("share_control_status")||EAD("share_control_view")||EAD("share_control_release"))){alert("You must first enter search criteria in the field next to the search button.");}else{if(_1f0.length>0&&(url2.length<1||url2=="enter keywords")){url2=_1f0;$("Keywords").value=url2;}if((EAD("share_control_sphotog")||EAD("share_control_status")||EAD("share_control_view")||EAD("share_control_release"))&&url2=="enter keywords"){url2="";}var _1f1="";if($("method")&&typeof ($("method").value)!="undefined"&&$("method").value=="within"){_1f1="/SwishSearch?Keywords="+q_id+"&ex_keys="+url2;}else{_1f1="/SwishSearch?Keywords="+url2;}if($("displaypanel")){if(typeof (suspendWithPeople)=="undefined"&&$("displaypanel").people){if($("displaypanel").people[1].checked==true){_1f1+="+haspeople";}if($("displaypanel").people[2].checked==true){_1f1+="+nobody";}if($("displaypanel").people[3]&&$("displaypanel").people[3].checked==true){_1f1+="+hascrowd";}}if($("displaypanel").custom){$A($("displaypanel").custom).each(function(itm){_1f1+="+"+itm.value;});}if($("displaypanel").outline){if($("displaypanel").outline[0].checked==true){_1f1+="+outlinable";}else{if($("displaypanel").outline[1].checked==true){_1f1+="+not+outlinable";}}}if(typeof (suspendYesNoRestrictons)=="undefined"&&$("displaypanel").restrictions){if($("displaypanel").restrictions[1].checked==true){_1f1+="+NOT+imagehasrestrictions";}}if($("displaypanel").xtrasql&&$("displaypanel").xtrasql[1].checked==true){_1f1+="&xtrasql=(releasedmodel+or+releasedproperty+or+releasednotapplicable+or+releasedmodelandproperty)";}var _1f3=1;$A($("displaypanel").orient).each(function(itm){if(!itm.checked){_1f3=0;}});if(!_1f3){if($("displaypanel").orient[0].checked==true){_1f1+="&orient=horizontal";}if($("displaypanel").orient[1].checked==true){_1f1+="&orient=vertical";}if($("displaypanel").orient[2].checked==true){_1f1+="&orient=panoramic";}if($("displaypanel").orient[3].checked==true){_1f1+="&orient=square";}}if($("displaypanel").rmrftype){if($("displaypanel").rmrftype[0].checked==true&&$("displaypanel").rmrftype[1].checked==false){_1f1+="&searchinclude=RM";}if($("displaypanel").rmrftype[1].checked==true&&$("displaypanel").rmrftype[0].checked==false){_1f1+="&searchinclude=RF";}}if($("displaypanel").color){if($("displaypanel").color[1].checked==true){_1f1+="&color=color";}if($("displaypanel").color[2].checked==true){_1f1+="&color=gray";}}if(typeof (showIllusPhotog)!="undefined"){if($("displaypanel").searchinclude[0].checked==true&&$("displaypanel").searchinclude[1].checked==false){_1f1+="&searchinclude=illustration";}if($("displaypanel").searchinclude[1].checked==true&&$("displaypanel").searchinclude[0].checked==false){_1f1+="&searchinclude=photography";}}}if($("spec_idx")){if($("spec_idx").selectedIndex==1){_1f1+="&spec_idx=ed";}if($("spec_idx").selectedIndex==2){_1f1+="&spec_idx=ne";}}if(EAD("share_control_sphotog")){_1f1+="&site="+$F("share_control_sphotog");}if(EAD("share_control_status")){_1f1+="&status_view="+$F("share_control_status");}if(EAD("share_control_view")){_1f1+="&view="+$F("share_control_view");}if(EAD("share_control_release")){_1f1+="&release_view="+$F("share_control_release");}if(_1ef&&_1ef!=""){_1f1+="&Username="+encodeURI(_1ef);}gsetCookie("gwhichstartpage","","","/",gGetCookieDom());if(url2!="enter keywords"){coveroff();hidedisplaypanel(1);MM_setTextOfLayer("Layer1","","<TABLE width=100% height=100%><TR width=100% height=100%><TD valign=middle align=center width=100% height=100%><B><FONT class=header>Searching for "+url2+" <blink>.</blink></font></B></TD></TR></TABLE>");self.location=_1f1;}else{alert("You must first type in keywords to search for.");document.isn.Keywords.focus();}}}function searchPreferences(val,mode){var _1f7=ggetCookie("gsearchprefs");if(_1f7){}else{_1f7=new String(" ");}var _1f8=new String("");if(val=="released"&&mode=="remove"){}else{if((_1f7.indexOf("a")>=0)||(val=="released"&&mode=="add")){_1f8+="a";}}if(val=="norestrictions"&&mode=="remove"){}else{if((_1f7.indexOf("b")>=0)||(val=="norestrictions"&&mode=="add")){_1f8+="b";}}if(val=="people"&&mode=="remove"){}else{if(((_1f7.indexOf("c")>=0)&&(val!="withpeople")&&(val!="withcrowd"))||(val=="nobody"&&mode=="add")){_1f8+="c";}else{if(((_1f7.indexOf("d")>=0)&&(val!="withcrowd"))||(val=="withpeople"&&mode=="add")){_1f8+="d";}else{if((_1f7.indexOf("e")>=0)||(val=="withcrowd"&&mode=="add")){_1f8+="e";}}}}if(document.displaypanel.orient){if(document.displaypanel.orient[0]&&document.displaypanel.orient[0].checked==true){_1f8+="f";}if(document.displaypanel.orient[1]&&document.displaypanel.orient[1].checked==true){_1f8+="g";}if(document.displaypanel.orient[2]&&document.displaypanel.orient[2].checked==true){_1f8+="h";}if(document.displaypanel.orient[3]&&document.displaypanel.orient[3].checked==true){_1f8+="i";}}if(typeof (rmonly)=="undefined"&&document.displaypanel.rmrftype){if(document.displaypanel.rmrftype[0]&&document.displaypanel.rmrftype[0].checked==true){_1f8+="j";}if(document.displaypanel.rmrftype[1]&&document.displaypanel.rmrftype[1].checked==true){_1f8+="k";}}if(document.displaypanel.color){if(document.displaypanel.color[0].checked==true){_1f8+="m";}if(document.displaypanel.color[1].checked==true){_1f8+="n";}if(document.displaypanel.color[2].checked==true){_1f8+="o";}}if(typeof (showIllusPhotog)!="undefined"){if(document.displaypanel.searchinclude[0].checked==true){_1f8+="0";}if(document.displaypanel.searchinclude[1].checked==true){_1f8+="1";}}gsetCookie("gsearchprefs",_1f8,"","/",gGetCookieDom());}function writeSearch(){if(typeof (writesearch_custom)=="function"){writesearch_custom();}else{writesearch_standard();}}function writeStandardSearch(){panelheight=340;if(typeof (showIllusPhotog)!="undefined"){panelheight+=parseInt(showIllusPhotog);}gsearchprefs=ggetCookie("gsearchprefs");var _1f9=" checked";var _1fa=_1f9;var _1fb=_1fa;var _1fc=_1fa;var _1fd="";var _1fe=_1fa;var _1ff=_1fa;var _200="";var _201="";var _202="";var _203=_1fa;var _204="";var _205=_1fa;var _206="";var _207="";var rmc="checked";var rfc=rmc;var _20a=" checked";var _20b=_20a;var _20c=" selected";var _20d="";if(gsearchprefs){if(gsearchprefs.indexOf("f")>=0||gsearchprefs.indexOf("g")>=0||gsearchprefs.indexOf("h")>=0||gsearchprefs.indexOf("i")>=0){if(gsearchprefs.indexOf("f")>=0){}else{_1f9=" ";}if(gsearchprefs.indexOf("g")>=0){}else{_1fa=" ";}if(gsearchprefs.indexOf("h")>=0){}else{_1fc=" ";}if(gsearchprefs.indexOf("i")>=0){}else{_1fb=" ";}}if(typeof (showIllusPhotog)!="undefined"){if(gsearchprefs.indexOf("1")<0&&gsearchprefs.indexOf("0")<0){}else{if(gsearchprefs.indexOf("1")<0){_20b=" ";}if(gsearchprefs.indexOf("0")<0){_20a=" ";}}}if(typeof (showSearchWithin)!="undefined"){if($("method")&&$F("method")=="within"){_20c="";_20d="selected";}else{_20c="selected";_20d="";}}if(gsearchprefs.indexOf("j")<0||gsearchprefs.indexOf("k")<0){if(gsearchprefs.indexOf("k")<=0&&gsearchprefs.indexOf("j")<=0){}else{if(gsearchprefs.indexOf("k")<=0){rfc="";}if(gsearchprefs.indexOf("j")<=0){rmc="";}}}if(gsearchprefs.indexOf("b")>=0){_1fe="";_1fd="checked";}if(gsearchprefs.indexOf("c")>=0||gsearchprefs.indexOf("d")>=0||gsearchprefs.indexOf("e")>=0){if(gsearchprefs.indexOf("c")>=0){_1ff="";_200="";_201="checked";_202="";}if(gsearchprefs.indexOf("d")>=0){_1ff="";_200="checked";_201="";_202="";}if(gsearchprefs.indexOf("e")>=0){_1ff="";_200="";_201="";_202="checked";}}if(gsearchprefs.indexOf("a")>=0){_204="checked";_203="";}if(gsearchprefs.indexOf("m")>=0||gsearchprefs.indexOf("n")>=0||gsearchprefs.indexOf("o")>=0){if(gsearchprefs.indexOf("m")>=0){_205="checked";_206="";_207="";}if(gsearchprefs.indexOf("n")>=0){_205="";_206="checked";_207="";}if(gsearchprefs.indexOf("o")>=0){_205="";_206="";_207="checked";}}}var _20e="<form action=\"javasc"+"ript:g(); return false;\" method=get name=displaypanel id=displaypanel>";_20e+="<div id=\"searchpanelouter\"><table cellspacing=0 cellpadding=10 border=0 width=100% height="+panelheight+">";_20e+="<tr><td valign=top align=left class=\"light1\"><div id=\"searchpanelcolumn1\">";_20e+="<b>ORIENTATION:</b><br>";_20e+="<table cellspacing=3 cellpadding=0 border=0><tr>";_20e+="<td><nobr><input type=checkbox name=orient value=horizontal onclick=javasc"+"ript:fsearchprefs(\"f\",\"add\"); "+_1f9+"> Horizontal</nobr></td></tr>";_20e+="<tr><td><input type=checkbox name=orient value=vertical onclick=javasc"+"ript:fsearchprefs(\"g\",\"add\"); "+_1fa+"> Vertical</td></tr>";_20e+="<tr><td><input type=checkbox name=orient value=panoramic onclick=javascr"+"ipt:fsearchprefs(\"h\",\"add\"); "+_1fc+"> Panororamic</td></tr>";_20e+="<tr><td><input type=checkbox name=orient value=square onclick=javasc"+"ript:fsearchprefs(\"i\",\"add\"); "+_1fb+"> Square</td></tr>";_20e+="</table><br>";_20e+="<b>COLOR:</b><br>";_20e+="<table cellspacing=3 cellpadding=0 border=0>";_20e+="<tr><td><nobr><input "+_205+" type=radio name=color value=\"\" onclick=javascr"+"ipt:fsearchprefs(\"color\",\"add\");> Any</td></tr>";_20e+="<tr><td><nobr><input "+_206+" type=radio name=color value=color onclick=javascr"+"ipt:fsearchprefs(\"color\",\"add\");> Color</td></tr>";_20e+="<tr><td><input "+_207+" type=radio name=color value=gray onclick=javascr"+"ipt:fsearchprefs(\"color\",\"add\");> B/W</td></tr>";_20e+="</table></div>";if(typeof (rmonly)=="undefined"){_20e+="<BR><b>TYPE:</b><br>";_20e+="<table cellspacing=\"0\" cellpadding=\"3\" border=\"0\"><tr><td><nobr><input type=\"checkbox\" name=\"rmrftype\" value=\"RM\" "+rmc+" onclick=javascr"+"ipt:fsearchprefs(\"RM\",\"add\");> Rights Managed</nobr></font></td>";_20e+="</tr><tr><td><input type=\"checkbox\" name=\"rmrftype\" value=\"RF\" "+rfc+" onclick=javascr"+"ipt:fsearchprefs(\"RF\",\"add\");> Royalty Free</font></td></tr></table>";}_20e+="</td><td valign=top align=left class=\"light1\"><div id=\"searchpanelcolumn2\">";if(typeof (showIllusPhotog)!="undefined"){_20e+="<b>MEDIA:</b><br>";_20e+="<input type=\"checkbox\" name=\"searchinclude\" value=\"illustration\""+_20a+" onclick=javascr"+"ipt:fsearchprefs(\"1\",\"add\"); />Illustration<br/>";_20e+="<input type=\"checkbox\" name=\"searchinclude\" value=\"photography\""+_20b+" onclick=javascr"+"ipt:fsearchprefs(\"0\",\"add\"); />Photography<br/>";_20e+="<br/>";}if(typeof (suspendYesNoRestrictons)=="undefined"){_20e+="<b>RESTRICTIONS:</b><br>";_20e+="<input "+_1fe+" type=radio name=restrictions value=\"\" onclick=javascr"+"ipt:fsearchprefs(\"norestrictions\",\"remove\");> Any<br>";_20e+="<input "+_1fd+" type=radio name=restrictions value=not+imagehasrestrictions  onclick=javascr"+"ipt:fsearchprefs(\"norestrictions\",\"add\");> No Restrictions<br>";_20e+="<br>";}if(typeof (suspendWithPeople)=="undefined"){_20e+="<b>PEOPLE:</b><br>";_20e+="<input "+_1ff+" type=radio name=people value=\"\" onclick=javasc"+"ript:fsearchprefs(\"people\",\"remove\");> Any<br>";_20e+="<input "+_200+" type=radio name=people value=withpeople onclick=javasc"+"ript:fsearchprefs(\"withpeople\",\"add\");> With People<br>";_20e+="<input "+_201+" type=radio name=people value=nobody onclick=javascr"+"ipt:fsearchprefs(\"nobody\",\"add\");> Without People<br>";_20e+="<input "+_202+" type=radio name=people value=withcrowd onclick=javascr"+"ipt:fsearchprefs(\"withcrowd\",\"add\");> Crowd<br>";}_20e+="<br><b>RELEASES:</b><br>";_20e+="<font class=small>";_20e+="<input "+_203+" type=radio name=xtrasql value=\"\" onclick=javascr"+"ipt:fsearchprefs(\"released\",\"remove\");> Any release status<br>";_20e+="<input "+_204+" type=radio name=xtrasql value=released onclick=javascr"+"ipt:fsearchprefs(\"released\",\"add\");> Only show released images<br>";if(typeof (showSearchWithin)!="undefined"){_20e+="<br/><b>METHOD:</b><br/>";_20e+="<nobr>&nbsp;<select id=\"method\" name=\"method\" class=\"smallmenu\" style=\"height:16px;\"><option value=\"new\" "+_20c+">as a new search</option><option value=\"within\" "+_20d+">within current results</option></select></nobr><br/>";}_20e+="<BR><a href=\"\" onclick=\"g(); return false;\"><img src=\"/graphics/button_go.gif\" alt=\"search\" border=\"0\"></a><BR><BR><A href=\"\" onclick=\"hidedisplaypanel(1); return false;\">[x] close search options panel</A>";_20e+="</td></tr></table>";var temp=Position.cumulativeOffset($("tablerow2"));center_panel(340,panelheight,_20e,temp[1]);Event.observe(document,"mousemove",getMouseXY);}}function afSystem(){this.debug=debug;this.empty=empty;this.getVars=getVars;function debug(mmm,val){if(typeof (debugmode)!="undefined"&&debugmode=="yes"){alert(mmm+"="+val);}}function empty(){}function getVars(){if(!document.location.href.split("?")[1]){return;}var _212=document.location.href.split("?")[1].split("&");urlParams=new Object;for(var x=0;x<_212.length;x++){var tmp=_212[x].split("=");if(tmp[0]){urlParams[unescape(tmp[0])]=unescape(tmp[1]);}}}}function afWindow(){this.displayWindow=displayWindow;this.displayWindow2=displayWindow2;this.maximizeScreen=maximizeScreen;this.popUp=popUp;function popUp(url,tle,ht,wd,px,py){if(!tle){tle="newwindow";}if(!ht){ht=590;}if(!wd){wd=550;}if(!px){px=40;}if(!py){py=40;}var _21b=window.open(url,tle,"height="+ht+",width="+wd+",alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left="+px+",top="+py);if(!_21b.opener){_21b.opener=(typeof (parent)!="undefined"?parent:self);}if(_21b.focus){_21b.focus();}}function maximizeScreen(){window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight);if(self.location){self.location.href=self.location.href;}}function displayWindow(url,_21d,_21e){if(navigator.appName=="Netscape"){_21e=parseInt(_21e)+16;}var Win=window.open(url,"displayWindow","width="+_21d+",height="+_21e+",resizable=1,scrollbars=yes,menubar=no,status=no");Win.focus();}function displayWindow2(url,_221,_222){var Win2=window.open(url,"displayWindow2","width="+_221+",height="+_222+",resizable=0,scrollbars=no,menubar=no,status=no");Win2.focus();}}
