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,feat_requestview,mobject_id,similar_to,ukeys,dsplkys;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 afURLObj=new afURL();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();var afReleaseObj=new afRelease();var afShareObj=new afShare();gfixDate=afDateObj.fixDate;setCurrentTime=afDateObj.setCurrentTime;_handleNonSearch=afURLObj.createNextLink;make_share_control_string=afShareObj.makeShareControlString;switch_share_control=afShareObj.toggleShareControlCookie;share_set_page=afShareObj.shareSetPage;EAD=afShareObj.checkID;sos=afShareObj.saveShares;sor=afShareObj.saveReleaseControl;validaterad=afShareObj.validateRadioButtons;gsetCookie=afCookieObj.setCookie;gsetCookie2=afCookieObj.setCookie2;ggetCookie=afCookieObj.getCookie;gGetCookieDom=afCookieObj.getCookieDomain;gdeleteCookie=afCookieObj.deleteCookie;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.awayCart;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_list=afLightboxObj.listLightbox;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;switchList=afLightboxObj.switchList;buildimages=afImageObj.buildImages;fitMeTo=afImageObj.sizeImageToContainer;preloadnextimg=afImageObj.preloadNextImage;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;displaypanelshow=afHTMLObj.showDisplayPanel;footer=afHTMLObj.getFooter;mouseSnap=afMouseObj.mouseSnap;pfindmouse=afMouseObj.findMouse;getMouseXY=afMouseObj.getMouseCoordinates;hp=afPreviewObj.hp;hpoff=afPreviewObj.hpoff;portSize=afPreviewObj.portSize;previewset=afPreviewObj.previewSet;sp=afPreviewObj.sp;sp_act=afPreviewObj.sp_act;checkIt=afSearchObj.checkIt;expandit=afSearchObj.expandIt;g=afSearchObj.searchType;g_standard=afSearchObj.standardSearch;fsearchprefs=afSearchObj.searchPreferences;narrowit=afSearchObj.narrowIt;optimize=afSearchObj.optimizeSearch;popkeys2=afSearchObj.popKeywords;writesearch=afSearchObj.writeSearch;writesimilar=afSearchObj.writeSimilar;writesearch_standard=afSearchObj.writeStandardSearch;writesimilar_standard=afSearchObj.writeStandardSimilar;hovercopyright=afLegalObj.copyrightNotice;license=afLegalObj.licenseCostWindow;enlarge2=afInfoObj.enlarge2;dispatchEnlarge2=afInfoObj.dispatchEnlarge2;enlarge2_act__generateTierRows=afInfoObj.enlarge2_act__generateTierRows;enlarge2_act=afInfoObj.enlarge2_act;MM_preloadImages=afInfoObj.preloadImages;MM_setTextOfLayer=afInfoObj.setTextOfLayer;launchwin=afWindowObj.popUp;displayWindow=afWindowObj.displayWindow;displayWindow2=afWindowObj.displayWindow2;maxscreen=afWindowObj.maximizeScreen;dispatchAll=afDispatchObj.dispatchAll;reDispatch=afDispatchObj.reDispatch;checkpageresize=afPageObj.checkPageResize;currentpage=afPageObj.currentPage;gSetBackpage=afPageObj.setBackPage;setuppagesize=afPageObj.setupPageSize;nextpage=afPageObj.nextPage;prevpage=afPageObj.previousPage;preloadnextpage=afPageObj.preloadNextPage;save_all_releases=afReleaseObj.saveAllReleases;release_set_page=afReleaseObj.releaseSetPage;validatechx=afReleaseObj.validateCheckboxes;iconstatus=afReleaseObj.iconStatus;debug=afSystemObj.debug;getVars=afSystemObj.getVars;nada=afSystemObj.empty;tellme=afSystemObj.screenInfo;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 todaysDate=global.currentDate;var vcdbrowse=global.VCDBrowse;var spec_idx=global.specIdx;var q_id=global.qID;var scriptname=global.scriptName;var nextlink;var narrowurl;ucats=global.uCats;mobject_id=global.mobjectID;similar_to=global.similarTo;dsplkys=global.lightboxSphotog;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=global.currentYear;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=global.total;var 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:todaysDate,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:feat_requestview,typeOfLbAction:undefined,sPhotog:sphotog,preQArgs:pre_q_args,qArgs:typeof (q_args)=="undefined"?undefined:q_args,baseURL:baseurl,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:d.getTime(),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,uCats:ucats,mobjectID:mobject_id,similarTo:similar_to,total:total,uKeys:ukeys,lightboxSphotog:dsplkys};}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,_3){if(gsession){if(document.JSONobj.getCartDat&&typeof (_3)=="undefined"){for(var _4=0;_4<document.JSONobj.getCartDat("total");_4++){if(id==document.JSONobj.getCartDat("image_id",_4)){alert("That image is already in your Cart");return;}}}if(typeof (_3)=="undefined"){_3=$H({callback:"cart_mod_act(0)"});}else{if(_3.callback&&_3.callback.toString().length>1){_3.callback+=" cart_mod_act(0);";}else{_3.callback="cart_mod_act(0)";}}document.TEXTresp=null;simplemessage("Adding image to Shopping Cart <blink>.</blink>","","LB");if(typeof (_3)=="object"&&_3.Size_opname){Object.extend(_3,{calc_rate:1});}if(typeof (debugmode)!="undefined"){ajax_JSON("/AjaxHandlers/CartAdd/"+id+".json","GET",_3);}else{ajax_JSON("/AjaxHandlers/CartAdd/"+id+".json","POST",_3);}debug("args to json /AjaxHandlers/CartAdd/"+id,_3);}else{window.location="/bin/Cklb?ref=/SwishSearch%3FKeywords%3D"+escape(ukeys)+"%26cartview%3D1&atct="+id;}}function deleteLicenseFromCart(id,_6){if(typeof (_6)!="object"){return;}simplemessage("Removing License from Image<blink>.</blink>","","LB");var _7=$A(_6.opts).join("|");if(_7.toString().length){_6.opts=_7;}if(_6.callback&&_6.callback.toString().length>1){_6.callback+=" cart_mod_act(0);";}else{_6.callback="cart_mod_act(0)";}ajax_JSON("/AjaxHandlers/CartDelLicense/"+id+".json","POST",_6);}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(_9){_9++;if(!document.JSONobj&&!document.TEXTresp&&_9<10){setTimeout("cart_mod_act('"+_9+"')",500);}else{hidedisplaypanel(1);cart_build();if(document.currentLayer1Mode=="cartview"){cart_display("view");}}}function repriceImagesInCart(_a){if(typeof (_a)=="undefined"){_a=$H({callback:"cart_mod_act(0)"});}else{if(_a.callback&&_a.callback.toString().length>1){_a.callback+=" cart_mod_act(0);";}else{_a.callback="cart_mod_act(0)";}}ajax_JSON("/AjaxHandlers/CartReprice/all.json","POST",_a);}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 _b=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)){_b=0;}}else{_b=0;}}}else{_b=0;}if(_b==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.");refreshTopCart();}}}function displayCart(_c){if(document.cart_display_lock){return;}var _d=$H({showstart:"cartview",snum:firstpictureonpage,viewmode:"cartview",flp:_c}).toJSON();if(_c){dispatchAll(_d);}else{try{YAHOO.util.History.navigate("nav",_d);}catch(e){dispatchAll(_d);}}}function buildCart(_e){currentLbdivMode="cart";$("LBdiv").style.height="130px";if(_e=="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 _f=$A([]);var _10=document.JSONobj.getCartDat("total");_f.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  "+(_10?_10:0)+" images "),nodeTree.cart_build_act__actions,]));if(document.JSONobj.getCartDat("total")>0){var _11=parseInt((winW*0.65)/document.JSONobj.getCartDat("total"));if(winH<340){vlim=25;}else{if(winH<450){vlim=35;}else{vlim=58;}}if(_11>vlim){_11=vlim;}else{if(_11<18){_11=18;}}var _12=$A([]);for(cti=0;cti<document.JSONobj.getCartDat("total");cti++){ctimid=document.JSONobj.getImgDat("id",cti);ctid=document.JSONobj.getCartDat("id",cti);_12.push(Builder.node("div",{align:"center",id:"dct"+cti+"s",name:"dct"+cti+"s",valign:"bottom",style:"float:left; height:"+(_11+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:_11,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")])]));}_f.push(Builder.node("div",{id:"LBimgdiv",style:"padding:6px 0 0 3px; height: 100%"},[_12,Builder.node("br",{style:"clear:both"})]));var _13=new Date();_13.setTime(_13.getTime()+(60*24*60*60*1000));gsetCookie("gcartimages",cti,_13,"/",gGetCookieDom());}$("LBdiv").replace("<DIV id=\"LBdiv\"></DIV>");_f.each(function(_14){$("LBdiv").appendChild(_14);});}}function displayDispatchedCart(_15){if(typeof (_15)!="object"){return;}var _16=_15["flp"];document.cart_display_lock=1;document.currentLayer1Mode="cartview";if($("cdheader")){$("cdheader").style.display="none";}if(!_16){_16="view";}ajax_HTML("Layer1","/bin/Cart?op="+_16,"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(_17,_18,_19,_1a,_1b,_1c){var _1d=_17+"="+escape(_18)+((_19)?"; expires="+_19.toGMTString():"")+((_1a)?"; path="+_1a:"")+((_1b)?"; domain="+_1b:"")+((_1c)?"; secure":"");document.cookie=_1d;}function getCookie(_1e){var dc=document.cookie;var _20=_1e+"=";var _21=dc.indexOf("; "+_20);if(_21==-1){_21=dc.indexOf(_20);if(_21!=0){return null;}}else{_21+=2;}var end=document.cookie.indexOf(";",_21);if(end==-1){end=dc.length;}return unescape(dc.substring(_21+_20.length,end));}function deleteCookie(_23,_24,_25){if(getCookie(_23)){document.cookie=_23+"="+((_24)?"; path="+_24:"/")+((_25)?"; domain="+_25:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}function setCookie2(_26,_27){setCookie(_26,_27,"","/",getCookieDomain());}function getCookieDomain(){var _28=document.domain;var _29=_28.split(".");var end=_29.length-1;var _2b=_29.length-2;var _2c=_29[end];var _2d=_29[_2b];var _2e=_2d+"."+_2c;return _2e;}function setCookieGwhichindex(_2f){gsetCookie("gwhichindex",_2f,"","/",gGetCookieDom());}function setCookieGreleasedselect(_30){gsetCookie("greleasestatus",_30,"","/",gGetCookieDom());}}function afDate(){this.getCurrentDate=getCurrentDate;this.setCurrentTime=setCurrentTime;this.fixDate=fixDate;function getCurrentDate(){var d=new Date();return (d);}function setCurrentTime(_32){var _33=_32||this.getCurrentDate();var now=_33;fixDate(_33);now.setTime(now.getTime()+365*24*60*60*1000);return (now);}function fixDate(_35){var _36=new Date(0);var _37=_36.getTime();if(_37>0){_35.setTime(_35.getTime()-_37);}}}function afDispatch(){this.dispatchAll=dispatchAll;this.reDispatch=reDispatch;function dispatchAll(_38,_39){var oC=(typeof (_38)=="object"?_38:_38.evalJSON());var _3b=(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<_3b){document.currentLayer1Mode=oC.viewmode;viewmode=oC.viewmode;oC["buildmode"]=oC["buildmode"]||"prev";dispatchBuildimages(oC);}else{if(oC.snum>_3b){document.currentLayer1Mode=oC.viewmode;viewmode=oC.viewmode;oC["buildmode"]=oC["buildmode"]||"next";dispatchBuildimages(oC);}else{if(oC.snum==_3b){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,_3e,tp,_40){var _41=_40?_40.topX:undefined;var _42=_40?_40.topY:undefined;var _43=_40?_40["static"]:undefined;if(typeof (winH)=="undefined"){setuppagesize();}var _44=(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=(_42==undefined?panely+_44:_42)+"px";$("displaypanellayer").style.left=(_41==undefined?panelx:_41)+"px";$("displaypanellayer").style.width=x+"px";$("displaypanellayer").style.height=y+"px";if(_43){$("displaypanellayer").style.position="fixed";}$("coverlayer").style.visibility="visible";$("displaypanellayer").style.visibility="hidden";new Effect.Appear("coverlayer",{duration:0.3,from:0,to:0.7});$("displaypanellayer").innerHTML=_3e;setTimeout("displaypanelshow();",320);}function imageProfile(_47){var _48="";switchpage=false;if(id[_47]){var _49=rm[_47];myid=id[_47];if(typeof (suspendsimilars)=="undefined"){mysimilarto=st[_47];}else{mysimilarto="";}if(typeof (scp)!="undefined"&&(viewmode=="list"||viewmode=="editing")){myshortcaption=unescape(scp[_47]);}else{myshortcaption="n/a";}var _4a=true;var _4b="";var _4c="";if(!relcon[_47]){_4c=rel[_47];}if(typeof (relcon)!="undefined"&&relcon[_47]&&mysimilarto.length<13){var _4d=_4c;_4d=_4d.substring(0,16)+(_4c.length>16?"...":"");_4c="<div id=\"shortrel"+_47+"\">Release: "+_4d+"</div> <div>  <form id=\"releasecontrol"+_47+"\" > "+relcon[_47]+" <input type=\"hidden\" name=\"shdex\" value=\""+_47+"\"/></form> <a href=\"javascript: return false;\" onclick=\"sor("+_47+"); return false;\" >Save Release</a></div>";}else{if(showrelease){if(!(_4c=="MODEL RELEASED"||_4c=="MODEL AND PROPERTY RELEASED"||_4c=="PROPERTY RELEASED")){_4c="Release: "+_4c;}if(typeof (relcon)!="undefined"&&relcon[_47]&&mysimilarto.length<13){_4c="<br/>"+_4c;}}else{_4c="";}}if(myshortcaption.length>90){for(z=0;z<130;z++){var c=myshortcaption.charAt(z);if(_4a==true){if((z>90)&&(c==".")){_4a=false;_4b+=c+" ...";}else{if((z>110)&&(c==" ")){_4a=false;_4b+=" ...";}else{_4b+=c;}}}}myshortcaption=_4b;}var _4f="yes";myphotographer=pho[_47];myrglobaldynf=rm[_47];myfilesize=fs[_47];var _50=hrdl[_47];var _51=html_share_con_opts(_47);var _52=html_weight_con_opts(_47);var _53=html_combined_con_opts(_47);var _54="";if(rfcd[_47].match(myid)){var pm=unescape(rfcd[_47]).match(/SwishSearch\?n\=1\&fn\=(.*)\&supst\=cd/);if(pm!=null){_54=pm[1];}}adminheight=0;if(_50){if(viewmode!="editing"){adminheight=11;}}if(myfilesize<5){myfilesize="Scan on Demand";}if(myid.length>9){if(o[_47]){displayid=o[_47];}else{displayid=myid;}if(viewmode=="editing"){var _56=160+adminheight;var _57=unescape(shsync[_47]);_57=_57.split("|");var _58="white";if(_57[0]=="shared"){_58="#77BB33";}else{if(_57[0].toString().match(/notshared|rejected/)){_58="#DF0000";}}var _59="white";if(parseInt(_57[1])){_59="orange";}if(mysimilarto.length<13){_48+="<span id=\"cellwrapper"+myid+"\" valign=bottom style=\"float:left;background-color:"+_59+"; padding:0 6px; 0 6px\">";_48+="<div id=\"d"+myid+"\" align=center valign=bottom style=\" background-color:"+_58+"; width:288px; height:"+_56+"px;\">";_48+="<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+"'"+","+"'"+_47+"');\"><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+myid+".JPG\" border=0 class=pimg vspace=2 hspace=3";_48+=" onmouseover=\"prloadimg('"+myid+"'); sp(this, '"+myid+"','"+_47+"','"+tset+"');";_48+="\" onmouseout=\"hp();\" id="+myid+">";_48+="</a>";_48+=_53+_51;_48+="</div></TD><TD valign=\"top\"><font class=xsmall>ID:"+myid;if(typeof (suppressrmrftype)=="undefined"){_48+="  <font class=rmrfindicator>"+rm[_47]+"</font>";}_48+="<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=/)))){_48+="<A href=\"javascript:lightbox_delete_image_enl('"+myid+"');\" class=\"lblink\" TITLE=\"Remove this image from the lightbox\">X</A>";}_48+="</DIV>";myphotographer=unescape(myphotographer);if(myphotographer.length>18){myphotographer=myphotographer.substring(0,18)+"...";}if(showphotographer==1){_48+="&copy; "+currentYear+" "+myphotographer;}_48+="  <nobr>";if(showfilesize){_48+=myfilesize;}_48+="</nobr><br/>CAPTION: "+myshortcaption+"<div>"+_4c+"</div></font>";_48+=_52;if(_50){_48+="<br/><NOBR><a href=\""+_50+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a></NOBR>";}_48+="<br/><a href=\"javascript: return false;\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add to your current lightbox\">LB+</a>";_48+="</TD></TR></TABLE></DIV></span></SPAN>";}else{_48+="<span id=\"cellwrapper"+myid+"\" valign=bottom style=\"float:left;background-color:"+_59+"; padding:0 6px; 0 6px;\">";_48+="<div id=\"d"+myid+"\" align=center valign=bottom style=\" background-color:"+_58+"; width:288px; height:"+_56+"px;\">";_48+=writesimilar(myid,_47,myphotographer,myshortcaption,"start","editing",_50,_4c);_48+="</DIV></span></SPAN>";}}else{if(viewmode=="list"){var _56=172+adminheight;if(mysimilarto.length<13){_48+="<span id=\"cellwrapper"+_47+"\" valign=bottom style=\"float:left;\">";_48+="<div align=center valign=bottom style=\"width:305px; height:"+_56+"px;\">";_48+="<TABLE width=298 cellspacing=2 cellpadding=0 border0><TR><TD valign=top>";if(_54){_48+="<a href=\"/SwishSearch?n=1&fn="+_54+"&supst=cd\" >";}else{_48+="<a href=\"javascript: return false;\" onclick=\"hp(); enlarge2('"+myid+"'"+","+"'"+_47+"'); return false;\">";}_48+="<img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+myid+".JPG\" border=0 class=pimg vspace=2 hspace=3";_48+=" onmouseover=\"prloadimg('"+myid+"'); sp(this, '"+myid+"','"+_47+"','"+tset+"');";_48+="\" onmouseout=\"hp();\" id="+myid+">";_48+="</a><BR>";if(_50){_48+="<center><a href=\""+_50+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a></center>";}_48+="</TD><TD valign=\"top\"><font class=xsmall>ID:"+displayid;if(typeof (suppressrmrftype)=="undefined"){_48+="  <font class=rmrfindicator>"+rm[_47]+"</font>";}_48+="<DIV class=icons>";if(!_54&&((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=/))))){_48+="<A href=\"javascript: return false;\" onclick=\"lightbox_delete_image_enl('"+myid+"'); return false;\" class=\"lblink\" TITLE=\"Remove this image from the lightbox\">X</A>";}_48+="<a href=\"javascript: return false;\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add to your current lightbox\">LB+</a>";if(gsession){_48+="<a href=\"javascript: return false;\" ONCLICK=\"cart_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add this image to your shopping cart\">CART+</a>";}_48+="<a href=\"javascript: return false;\" ONCLICK=\"return price_image('"+myid+"','"+_49+"');\" class=\"iconlink\" Title=\"Price Image\">$</a>";if(!_54){_48+="<a href=\"javascript: return false;\" ONCLICK=\"enlarge2('"+myid+"'"+","+"'"+_47+"'); return false;\" class=iconlink title=\"Enlarge image and more info\"><font class=eye>i</font></a>";}_48+="</DIV>";if(showphotographer==1){_48+="<BR>&copy; "+currentYear+" "+myphotographer;}_48+="  <nobr>";if(showfilesize){_48+=myfilesize;}_48+="</nobr><br/>CAPTION: "+myshortcaption+"<div>"+_4c+"</div></font>";_48+="</TD></TR></TABLE></DIV></SPAN>";}else{_48+="<span valign=bottom style=\"float:left;\">";_48+="<div id=\"d"+myid+"\" align=center valign=bottom style=\"width:305px; height:"+_56+"px;\">";_48+=writesimilar(myid,_47,myphotographer,myshortcaption,"start","list",_50,_4c);_48+="</DIV></SPAN>";}}else{if(viewmode=="tiny"){var _56=100+adminheight;if(mysimilarto.length<13){_48+="<span valign=bottom style=\"float:left;\">";_48+="<div align=center valign=bottom style=\"width:95px; height:"+_56+"px; overflow: hidden;\">";if(_54){_48+="<a href=\"/SwishSearch?n=1&fn="+_54+"&supst=cd\" ";}else{_48+="<a href=\"javascript: return false;\" onclick=\"hp(); enlarge2('"+myid+"'"+","+"'"+_47+"'); return false;\"";}if(document.page.previews.selectedIndex==1){_48+=" TITLE=\"ID:"+displayid;if(showphotographer==1){_48+="\r&copy; "+myphotographer;}if(showfilesize){_48+="\rSIZE: "+myfilesize;}_48+=" \r"+"CAPTION: "+myshortcaption+"\"";}_48+="><img src=http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+myid+".JPG border=0 class=pimg vspace=1 hspace=1 height=55";_48+=" onmouseover=\"prloadimg('"+myid+"'); sp(this, '"+myid+"', '"+_47+"','"+tset+"');";_48+="\" onmouseout=\"hp();\" id="+myid+">";_48+="</a><BR>";_48+="<font class=\"xxsmall\"><DIV class=icons>";if(!_54&&((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=/))))){_48+="<A href=\"javascript: return false;\" onclick=\"lightbox_delete_image_enl('"+myid+"'); return false;\" class=\"iconlinktiny\" TITLE=\"Remove this image from the lightbox\">X</A>";}_48+="<a href=\"javascript: return false;\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlinktiny\" title=\"Add to your current lightbox\">LB+</a>";if(gsession){_48+="<a href=\"javascript: return false;\" ONCLICK=\"cart_addto('"+myid+"'); return false;\" class=\"iconlinktiny\" title=\"Add this image to your shopping cart\">CART+</a>";}_48+="<a href=\"javascript: return false;\" ONCLICK=\"return price_image('"+myid+"','"+_49+"');\" class=\"iconlinktiny\" Title=\"Price Image\">$</a>";if(!_54){_48+="<a href=\"javascript: return false;\" ONCLICK=\"enlarge2('"+myid+"'"+","+"'"+_47+"'); return false;\" class=\"iconlinktiny\" title=\"Enlarge image and more info\"><font class=eye>i</font></a>";}_48+="</DIV></font>";_48+="<DIV class=imidxxsmall>"+displayid;if(typeof (suppressrmrftype)=="undefined"){_48+="  <font class=rmrfindicator>"+rm[_47]+"</font>";}_48+="</DIV>";if(_50){_48+="<a href=\""+_50+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>";}_48+="</DIV></SPAN>";}else{_48+="<span valign=bottom style=\"float:left;\">";_48+="<div id=\"d"+myid+"\" align=center valign=bottom style=\"width:95px; height:"+_56+"px; overflow:hidden;\">";_48+=writesimilar(myid,_47,myphotographer,myshortcaption,"start","tiny",_50,_4c);_48+="</DIV></SPAN>";}}else{if(viewmode=="med"){var _56=130+adminheight;if(mysimilarto.length<13){_48+="<span valign=bottom style=\"float:left;\">";_48+="<div align=center valign=bottom style=\"width:140px; height:"+_56+"px; overflow: hidden;\">";if(_54){_48+="<a href=\"/SwishSearch?n=1&fn="+_54+"&supst=cd\" ";}else{_48+="<a href=\"javascript: return false;\" onclick=\"hp(); enlarge2('"+myid+"'"+","+"'"+_47+"'); return false;\"";}if(document.page.previews.selectedIndex==1){_48+=" TITLE=\"ID:"+displayid;if(showphotographer==1){_48+="  \r&copy; "+myphotographer;}if(showfilesize){_48+="\rSIZE: "+myfilesize;}_48+=" \r"+"CAPTION: "+myshortcaption+"\"";}_48+="><img src=http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+myid+".JPG border=0 vspace=1 class=pimg hspace=1 height=80";_48+=" onmouseover=\"prloadimg('"+myid+"'); sp(this, '"+myid+"', '"+_47+"','"+tset+"');";_48+="\" onmouseout=\"hp();\" id="+myid+">";_48+="</a><BR>";_48+="<font class=\"xsmall\"><DIV class=icons>";if(!_54&&((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=/))))){_48+="<A href=\"javascript: return false;\" onclick=\"lightbox_delete_image_enl('"+myid+"'); return false;\" class=\"lblink\" TITLE=\"Remove this image from the lightbox\">X</A>";}_48+="<a href=\"javascript: return false;\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add to your current lightbox\">LB+</a>";if(gsession){_48+="<a href=\"javascript: return false;\" ONCLICK=\"cart_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add this image to your shopping cart\">CART+</a>";}_48+="<a href=\"javascript: return false;\" ONCLICK=\"return price_image('"+myid+"','"+_49+"');\" class=\"iconlink\" Title=\"Price Image\">$</a>";if(!_54){_48+="<a href=\"javascript: return false;\" ONCLICK=\"enlarge2('"+myid+"'"+","+"'"+_47+"'); return false;\" class=\"iconlink\" title=\"Enlarge image and more info\"><font class=eye>i</font></a>";}if(typeof (gusert)!="undefined"&&gusert=="IPN"){_48+="<A href=\"javascript: return false;\" 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=\"javascript: return false;\" 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>";}_48+="</DIV></font>";_48+="<DIV class=imidxxsmall>"+displayid;if(typeof (suppressrmrftype)=="undefined"){_48+="  <font class=rmrfindicator>"+rm[_47]+"</font>";}_48+="</DIV>";if(_50){_48+="<a href=\""+_50+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>";}_48+="</DIV></SPAN>";}else{_48+="<span valign=bottom style=\"float:left;\">";_48+="<div id=\"d"+myid+"\" align=center valign=bottom style=\"width:140px; height:"+_56+"px;\">";_48+=writesimilar(myid,_47,myphotographer,myshortcaption,"start","med",_50,_4c);_48+="</DIV></SPAN>";}}else{if(viewmode=="ss"){_48="  ";}else{if(viewmode=="huge"){var _56=220+adminheight;if(mysimilarto.length<13){_48+="<span valign=bottom style=\"float:left;\">";_48+="<div align=center valign=bottom style=\"width:330px; height:"+_56+"px; overflow: hidden;\">";if(_54){_48+="<a href=\"/SwishSearch?n=1&fn="+_54+"&supst=cd\" ";}else{_48+="<a href=\"javascript: return false;\" onclick=\"hp(); enlarge2('"+myid+"'"+","+"'"+_47+"'); return false;\" TITLE=\"ID:"+displayid;}if(showphotographer==1){_48+="\r&copy; "+myphotographer;}if(showfilesize){_48+="\rSIZE: "+myfilesize;}_48+=" \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>";_48+="<font class=\"xsmall\"><DIV class=icons>";if(!_54&&((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=/))))){_48+="<A href=\"javascript: return false;\" onclick=\"lightbox_delete_image_enl('"+myid+"'); return false;\" class=\"lblink\" TITLE=\"Remove this image from the lightbox\">X</A>";}_48+="<a href=\"javascript: return false;\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add to your current lightbox\">LIGHTBOX+</a>";if(gsession){_48+="<a href=\"javascript: return false;\" ONCLICK=\"cart_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add this image to your shopping cart\">CART+</a>";}_48+="<a href=\"javascript: return false;\" ONCLICK=\"return price_image('"+myid+"','"+_49+"');\" class=\"iconlink\" Title=\"Price Image\">$</a>";if(!_54){_48+="<a href=\"javascript: return false;\" ONCLICK=\"enlarge2('"+myid+"'"+","+"'"+_47+"'); return false;\" class=\"iconlink\" title=\"Enlarge image and more info\"><font class=eye>i</font> ENLARGE</a> ";}if(typeof (gusert)!="undefined"&&gusert=="IPN"){_48+="<A href=\"javascript: return false;\" 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=\"javascript: return false;\" 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>";}_48+=displayid;if(typeof (suppressrmrftype)=="undefined"){_48+="  <font class=rmrfindicator>"+rm[_47]+"</font> ";}_48+="</DIV></font>";if(_50){_48+="<a href=\""+_50+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>";}_48+="</DIV></SPAN>";}else{_48+="<span valign=bottom style=\"float:left;\">";_48+="<div id=\"d"+myid+"\" align=center valign=bottom style=\"width:330px; height:"+_56+"px; overflow: hidden;\">";_48+=writesimilar(myid,_47,myphotographer,myshortcaption,"start","huge",_50,_4c);_48+="</DIV></SPAN>";}}else{if(viewmode=="large"){var _56=199+adminheight;if(mysimilarto.length<13){_48+="<span valign=bottom style=\"float:left;\">";_48+="<div align=center valign=bottom style=\"width:187px; height:"+_56+"px; overflow:hidden;\">";if(_54){_48+="<a href=\"/SwishSearch?n=1&fn="+_54+"&supst=cd\" ";}else{_48+="<a href=\"javascript: return false;\" onclick=\"hp(); enlarge2('"+myid+"'"+","+"'"+_47+"'); return false;\"";}if(document.page.previews.selectedIndex==1){_48+=" TITLE=\"ID:"+displayid;if(showphotographer==1){_48+="\r&copy; "+myphotographer;}if(showfilesize){_48+="\rSIZE: "+myfilesize;}_48+=" \r"+"CAPTION: "+myshortcaption+"\"";}_48+="><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/170/85/"+myid+".JPG\" class=pimg border=\"0\" vspace=\"0\" hspace=\"3\"";_48+=" onmouseover=\"prloadimg('"+myid+"'); sp(this, '"+myid+"','"+_47+"','"+tset+"');";_48+="\" onmouseout=\"hp();\" id="+myid+">";_48+="</a><BR>";_48+="<font class=\"xsmall\"><DIV class=icons>";if(!_54&&((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=/))))){_48+="<A href=\"javascript: return false;\" onclick=\"lightbox_delete_image_enl('"+myid+"'); return false;\" class=\"iconlink\" TITLE=\"Remove this image from the lightbox\">X</A>";}_48+="<a href=\"javascript: return false;\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add to your current lightbox\">LB+</a>";if(gsession){_48+="<a href=\"javascript: return false;\" ONCLICK=\"cart_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add this image to your shopping cart\">CART+</a>";}_48+="<a href=\"javascript: return false;\" ONCLICK=\"return price_image('"+myid+"','"+_49+"');\" class=\"iconlink\" Title=\"Price Image\">$</a>";if(!_54){_48+="<a href=\"javascript: return false;\" ONCLICK=\"enlarge2('"+myid+"'"+","+"'"+_47+"'); return false;\" class=\"iconlink\" title=\"Enlarge image and more info\"><font class=eye>i</font></a>&nbsp;";}if(typeof (gusert)!="undefined"&&gusert=="IPN"){_48+="<A href=\"javascript: return false;\" 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=\"javascript: return false;\" 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>";}_48+="</div><div><font class=imid>"+displayid+"</font>";if(typeof (suppressrmrftype)=="undefined"){_48+="  <font class=rmrfindicator>"+rm[_47]+"</font>";}_48+="</DIV></font>";if(_50){_48+="<a href=\""+_50+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>";}_48+="</DIV></SPAN>";}else{_48+="<span valign=bottom style=\"float:left;\">";_48+="<div id=\"d"+myid+"\" align=center valign=bottom style=\"width:187px; height:"+_56+"px; overflow: hidden;\">";_48+=writesimilar(myid,_47,myphotographer,myshortcaption,"start","large",_50,_4c);_48+="</DIV></SPAN>";}}else{var _56=176+adminheight;if(mysimilarto.length<13){_48+="<span valign=bottom style=\"float:left;\">";_48+="<div align=center valign=bottom style=\"width:152px; height:"+_56+"px; overflow:hidden;\">";if(_54){_48+="<a href=\"/SwishSearch?n=1&fn="+_54+"&supst=cd\" ";}else{_48+="<a href=\"javascript: return false;\" onclick=\"hp(); enlarge2('"+myid+"'"+","+"'"+_47+"'); return false;\"";}if(document.page.previews.selectedIndex==1){_48+=" TITLE=\"ID:"+displayid;if(showphotographer==1){_48+="\r&copy; "+myphotographer;}if(showfilesize){_48+="\rSIZE: "+myfilesize;}_48+=" \r"+"CAPTION: "+myshortcaption+"\"";}_48+="><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+myid+".JPG\" class=pimg border=\"0\" vspace=\"0\" hspace=\"3\"";_48+=" onmouseover=\"prloadimg('"+myid+"'); sp(this, '"+myid+"','"+_47+"','"+tset+"');";_48+="\" onmouseout=\"hp();\" id="+myid+">";_48+="</a><BR>";_48+="<font class=\"xsmall\"><DIV class=icons>";if(!_54&&((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=/))))){_48+="<A href=\"javascript: return false;\" onclick=\"lightbox_delete_image_enl('"+myid+"'); return false;\" class=\"iconlink\" TITLE=\"Remove this image from the lightbox\">X</A>";}_48+="<a href=\"javascript: return false;\" ONCLICK=\"lightbox_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add to your current lightbox\">LB+</a>";if(gsession){_48+="<a href=\"javascript: return false;\" ONCLICK=\"cart_addto('"+myid+"'); return false;\" class=\"iconlink\" title=\"Add this image to your shopping cart\">CART+</a>";}_48+="<a href=\"javascript: return false;\" ONCLICK=\"return price_image('"+myid+"','"+_49+"');\" class=\"iconlink\" Title=\"Price Image\">$</a>";if(!_54){_48+="<a href=\"javascript: return false;\" ONCLICK=\"enlarge2('"+myid+"'"+","+"'"+_47+"'); return false;\" class=\"iconlink\" title=\"Enlarge image and more info\"><font class=eye>i</font></a>&nbsp;";}if(typeof (gusert)!="undefined"&&gusert=="IPN"){_48+="<A href=\"javascript: return false;\" 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=\"javascript: return false;\" 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>";}_48+="</div><div><font class=imid>"+displayid+"</font>";if(typeof (suppressrmrftype)=="undefined"){_48+="  <font class=rmrfindicator>"+rm[_47]+"</font>";}_48+="</DIV></font>";if(_50){_48+="<a href=\""+_50+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>";}_48+="</DIV></SPAN>";}else{_48+="<span valign=bottom style=\"float:left;\">";_48+="<div id=\"d"+myid+"\" align=center valign=bottom style=\"width:152px; height:"+_56+"px; overflow: hidden;\">";_48+=writesimilar(myid,_47,myphotographer,myshortcaption,"start","normal",_50,_4c);_48+="</DIV></SPAN>";}}}}}}}}}}return _48;}function initShareRadios(){for(var cnt=showstartnumber_trap;cnt<endnumber;cnt++){var _5b=unescape(shsync[cnt]);_5b=_5b.split("|");var _5c=_5b[0]+$F("share_control_view")+$F("share_control_home_sphotog");var _5d,_5e;if(typeof (cocon)=="object"&&cocon[0]){_5e=_5b[2];_5d=_5b[0].toString().substring(0,1);}var _5f=$("shf"+id[cnt]);if(_5f){$A(_5f.elements).each(function(rad){if(rad.value==_5c){rad.checked=true;}else{if(_5d&&(rad.value==_5d||(_5d=="s"&&rad.value==_5e))){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(_63,_64,_65){suspendtrap=1;var _66="<table width=\"100%\"><tr><td valign=\"top\">";_66+="<NOBR><FONT class=page>";var _67=parseInt(_63)+parseInt(_65)+1;var _68=parseInt(_64)+parseInt(_65);if(Number(currentpagenum)>0){_66+="<A href=\"javascript: return false;\" onclick=\"document.currentLayer1Mode='searchresults';prevpage(); return false;\"><FONT style=\"font-size:9pt;font-family: Arial;\">&#8592;</FONT> PREV PAGE</A>&nbsp;";}else{if(_67<=results_total){_66+="<FONT style=\"font-family: Arial;color:#AAAAAA;\"><FONT style=\"9pt;\">&#8592;</FONT> PREV PAGE</FONT>&nbsp;";}}if(_67<=results_total){_66+="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((_65)/(parseInt($F("pixperpage"))))+Math.ceil((results_total-_65)/(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){_66+="<OPTION VALUE=\""+nextlink+"snum="+((psn-2)*(parseInt(gpixperpagev)))+"\">&lt; "+(Number(psn)-1)+"</option>";}for(i=psn;i<=pen;i++){if(i==(Number(currentpagenum)+1)){_66+="<OPTION VALUE=\""+nextlink+"snum="+((i-1)*(parseInt(gpixperpagev)))+"\" SELECTED>"+i+"</option>";}else{_66+="<OPTION VALUE=\""+nextlink+"snum="+((i-1)*(parseInt(gpixperpagev)))+"\">"+i+"</option>";}}if(pen!=totalpages){_66+="<OPTION VALUE=\""+nextlink+"snum="+((Number(pen))*(parseInt(gpixperpagev)))+"\">&gt; "+(Number(pen)+1)+"</option>";}_66+="</select>";if(grange!="outofrange"){_66+="&nbsp;<A HREF=\"javascript: return false;\" onclick=\"document.currentLayer1Mode='searchresults';nextpage(); return false;\">NEXT PAGE&nbsp;<FONT style=\"font-size:9pt;font-family: Arial;\">&#8594;</FONT></A></font>";}_66+="&nbsp;&nbsp;["+_67+"-";if(_68>parseInt(results_total)){_66+="<span id=\"lastpgtotal\">"+results_total+"</span>"+"]&nbsp;of&nbsp;<span id=\"imgtotal\">"+results_total+"</span>";}else{_66+=_68+"]&nbsp;of&nbsp;<span id=\"imgtotal\">"+results_total+"</span>";}_66+="</NOBR>";_66+="</td><td align=\"right\">";if(document.thisIsFeatureView){_66+="<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 _69="<a onclick=\"return save_all_releases();\" href=\"javascript: return false;\">Save All Releases</a> &nbsp;&nbsp; [ Set All: <a href=\"javascript: return false;\" onclick=\"return share_set_page('shared'); \">Accepted</a> | <a href=\"javascript: return false;\" onclick=\"return share_set_page('rejected'); \">Rejected</a> | <a href=\"javascript: return false;\" onclick=\"return share_set_page('pending'); \">Pending</a>  &nbsp;|&nbsp;  <a onclick=\"return release_set_page('NOT RELEASED');\" href=\"javascript: return false;\" title=\"NOT RELEASED\">NR</a> | <a onclick=\"return release_set_page('NOT APPLICABLE');\" href=\"javascript: return false;\" title=\"NOT APPLICABLE\">NA</a> | <a onclick=\"return release_set_page('NOT RECOGNIZABLE');\" href=\"javascript: return false;\" title=\"NOT RECOGNIZABLE\">NR</a> | <a onclick=\"return release_set_page('MODEL AND PROPERTY RELEASED');\" href=\"javascript: return false;\" title=\"MODEL AND PROPERTY RELEASED\">MaPR</a> ]";$("Layerpreviews").innerHTML=_69;}}_66+="</td></tr></table>";$("Layerpages").style.overflow="visible";MM_setTextOfLayer("Layerpages","",_66);}function divShim(_6a){if(typeof ($)=="function"&&$("DivShim")){if(_6a){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(_6b){createCoverLayer();divshim(0);createDisplayPanel();if($("displaypanellayer").style&&$("displaypanellayer").style.visibility=="visible"){if(_6b==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(_6f){var _70=global.macIE5;var _71=_6f["snum"];var _72=_6f["buildmode"];var _73=_6f["resized"];viewmode=_6f["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(!_70){var _74=Element.getOpacity("coverlayer");}if(_74>0.2){hidedisplaypanel();}suspendcheck=1;if(_71>1||_73==1){setuppagesize();}showstartnumber_trap=parseInt(_71);var _75=optimize();grange="legal";MM_setTextOfLayer("Layer1","","<CENTER> <BR><BR><BR><BR><BR><BR><BR><BR>loading ...</CENTER>");var cnt=_71;firstpictureonpage=_71;endnumber=parseInt(gpixperpagev)+parseInt(_71);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=/)))){_75+="&nbsp;&nbsp;<A href=\"javascript: return false;\" 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"){_75+=htmlit_custom(cnt);}else{_75+=htmlit(cnt);}}else{if((snum+cnt)>=results_total){if(grange!="outofrange"){_75+="<span valign=bottom style=\"float:left;\"><div align=center valign=bottom style=\"width:130; height:50px; overflow: hidden;\">";if(pagetype=="lb"){_75+="<div id=\"endbox\" class=\"endoflightboximages\"><nobr>[ end of lightbox images ]</div></nobr></DIV></SPAN> ";}else{_75+="<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(_72=="next"){var _77=(Number(snum)+Number(_71));var _78=$H({showstart:1,snum:0,viewmode:viewmode,resized:_73}).toJSON();self.location=nextlink+"snum="+_77+"#nav="+_78;MM_setTextOfLayer("Layer1","","<CENTER> <BR><BR><BR><BR><BR><BR><BR><BR>loading next set of images...</CENTER>");}else{prevtogoto=Number(snum)+Number(_71)-parseInt($F("pixperpage"));if(prevtogoto<0){prevtogoto=0;}var _78=$H({showstart:1,snum:0,viewmode:viewmode,resized:_73}).toJSON();self.location=nextlink+"snum="+prevtogoto+"#nav="+_78;}}else{MM_setTextOfLayer("Layer1","",_75);if(shsync[0]){setTimeout("init_share_radios()",1);}var _79="<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 (_71)!="undefined"&&Number(_71)>1)){_79+="<nobr>&nbsp;&nbsp;<A HREF=javasc"+"ript:prevpage();><FONT style=\"font-size:9pt;font-family: Arial;\">&#8592;</FONT> PREV PAGE</A></nobr>";}else{_79+="&nbsp;";}_79+="</TD><TD align=\"middle\"  width=20%><center><nobr>"+footer()+"</nobr></center></TD><TD width=40% align=right>";if(grange!="outofrange"){_79+="<nobr><A HREF='javascript: return false;' onclick='nextpage(); return false;' name=bottomnext>NEXT PAGE <FONT style=\"font-size:9pt;font-family: Arial;\">&#8594;</FONT></A>&nbsp;&nbsp;</nobr></DIV>";}_79+="</TD></TR></table>";$("pagingrow").innerHTML=_79;lastimage=cnt;if($("pixperpage")){prestart=endnumber-1;preend=(lastimage+parseInt($F("pixperpage")));if(_71==0){var _7a=6000+parseInt($F("pixperpage")*30);self.setTimeout("preloadnextpage()",_7a);}else{var _7a=1000;self.setTimeout("preloadnextpage()",_7a);}}}}else{enlarge2(id[0],0);}currentpagenum=Math.ceil((Number(snum)+Number(_71))/parseInt($F("pixperpage")));buildpages(_71,endnumber,snum);iconstatus();}function getFooter(){if(typeof (customfooter)!="undefined"){return customfooter;}else{return Templates.footer__body.evaluate({currentyear:currentYear});}}}function afImage(){this.buildImages=buildImages;this.priceImage=priceImage;this.sizeImageToContainer=sizeImageToContainer;this.preloadNextImage=preloadNextImage;this.price_image_act=price_image_act;this.preLoadImage=preLoadImage;this.twidleImagePrice=twidleImagePrice;this.twidlePriceImagedelay=twidlePriceImagedelay;function sizeImageToContainer(_7b,_7c){if(!_7b||!_7c||!$(_7b)){return;}var _7d=Element.getDimensions(_7b);if(_7c.style){_7c.style.width=(_7d["width"]+8)+"px";_7c.style.height=(_7d["height"]+8)+"px";}return 1;}function priceImage(pid,_7f){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,_82,_83){if(document.ajaxLoaded||_83){var _84=(document.JSONobj.getImgDat("tier")||"");launchwin("/bin/Rates?ln="+pid+"&calc_only=1&supst="+_84);}else{if(_82<5){_82++;setTimeout("price_image_act('"+pid+"','"+_82+"', 0 )",500);}else{_82++;price_image_act(pid,_82,1);}}return;}function preLoadImage(_85,_86){if(!$("pimid")){document.body.appendChild(Builder.node("div",{id:"pimid",style:"position:absolute; top:-500px"}));}var _87=$H({id:"previewimg_"+_85,src:"/graphics/loading.png",border:0,alt:"Loading...",lowsrc:"/graphics/spacer.gif"});if(winH<450){smallscreen=1;if(typeof (_86)!="undefined"){if(_86=="panoramic"){_87["width"]=420;}else{if(_86=="vertical"){_87["height"]=((winH-100)<180)?180:(winH-100);}else{_87["height"]=((winH-142)<160)?160:(winH-142);}}}else{_87["height"]=135;}}else{smallscreen=0;}$("pimid").innerHTML="";$("pimid").style.visibility="hidden";var _88=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",_87)]),Builder.node("div",{id:"previewpane_metdat_"+_85},"")]),Builder.node("img",{src:"http://globaldyn.ipnstock.com/"+dynimagesname+"/420/60/"+_85+".JPG",style:"display:none",onload:"if($('previewimg_"+_85+"')) $('previewimg_"+_85+"').src = this.src"})])]);$("pimid").appendChild(_88);}function twidleImagePrice(_89,_8a,_8b){setTimeout("twidle_price_img_delay("+_89+", '"+_8a+"', '"+_8b+"')",10);return false;}function twidlePriceImagedelay(_8c,_8d,_8e){var _8f="lic"+_8c;if(document[_8f].loaded=="true"){return;}if(_8d=="RF"){var _90=new Image();_90.src="/graphics/specify_filesize.gif";document[_8f].src=_90.src;}if(_8e=="$ 0.00"){}else{var _90=new Image();_90.src="/graphics/ready_to_license.gif";document[_8f].src=_90.src;}document[_8f].loaded="true";return true;}function buildImages(_91,_92,_93){if(typeof (cartview)!="undefined"&&cartview){return;}if(typeof (id)=="undefined"){return;}var _94=parseInt(_91)+parseInt(snum)+1;var _95=$H({showstart:_94,snum:_91,viewmode:viewmode,buildmode:_92,resized:_93}).toJSON();try{YAHOO.util.History.navigate("nav",_95);}catch(e){dispatchAll(_95);}}function preloadNextImage(){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 afInfo(){this.enlarge2=enlarge2;this.dispatchEnlarge2=dispatchEnlarge2;this.enlarge2_act__generateTierRows=enlarge2_act__generateTierRows;this.enlarge2_act=enlarge2_act;this.preloadImages=preloadImages;this.setTextOfLayer=setTextOfLayer;function enlarge2(_96,_97,_98,_99){var _9a=$H({ssid:_96,ssdex:_97,fimg:_98,nc:_99,showstart:"ss",snum:firstpictureonpage,viewmode:"ss"}).toJSON();try{YAHOO.util.History.navigate("nav",_9a);}catch(e){dispatchAll(_9a);}}function dispatchEnlarge2(_9b){if(typeof (_9b)!="object"){return;}var _9c=_9b["ssid"];var _9d=_9b["ssdex"];var _9e=_9b["fimg"];var _9f=_9b["nc"];var _a0=document.currentLayer1Mode;document.currentLayer1Mode="enlarge";var url="/AjaxHandlers/ImageInfo/"+(_9e?_9e:_9c)+".json";var drk="";if(_9f){drk="&drk="+Math.random(10);}ajax_JSON(url,getpost,"callback=enlarge2_act('"+_9c+"','"+_9d+"','"+(_9e?_9e:"")+"','"+_a0+"')"+drk);setuppagesize();$("Layer1").style.height=truevertHeight+"px";var _a3=0;if($("cdheader")&&$("cdheader").style.display=="block"){_a3=146;}$("Layer1").style.height=truevertHeight+_a3+"px";}function enlarge2_act__generateTierRows(_a4,_a5,_a6,_a7){var _a8="";if(_a5=="RF"){var _a9="";$A(_a4.tierinfo).each(function(_aa){Object.extend(_aa,{enlargetid:_a4.image_id,usage:_aa.subof,img_id:_a6,encount:(_a7?_a7:"''")});_a9+=Templates.tieredimgpricing__rfslug_row.evaluate(_aa);});_a8=Templates.tieredimgpricing__rfslug.evaluate({"rows":_a9});}else{if(_a5=="RR"){var _ab="";$A(_a4.tierinfo).each(function(_ac){Object.extend(_ac,{enlargetid:_a4.image_id,usage:_ac.subof,img_id:_a6,encount:(_a7?_a7:"''")});if(_ac.opt_selected==1){_ac.removebutton=Templates.tieredimgpricing__rrslug_row_removebutton.evaluate(_ac);}_ab+=Templates.tieredimgpricing__rrslug_row.evaluate(_ac);});_a8=Templates.tieredimgpricing__rrslug.evaluate({"rows":_ab});}}return _a8;}function enlarge2_act(_ad,_ae,_af,_b0){_af=(_af=="undefined"?"":_af);debug("featuredimage",_af);hp();var _b1=0;if(id[_ae]==document.JSONobj.getImgDat("id")||_af.length==10){_b1=1;}debug("useInPage",_b1);if(_b1||(document.ajaxLoaded&&(_ad.match(document.JSONobj.getImgDat("id"))))){if(typeof (viewmode)!="undefined"&&viewmode=="ss"){gsetCookie("gcurrentview","","","/",gGetCookieDom());}if($("cdheader")){$("cdheader").style.display="none";}if((!document.thisIsFeatureView&&_b1&&st[_ae]&&st[_ae].length>13)||overflowtype=="hidden"){suspendtrap=1;}if(firstpictureonpage){gsetCookie("gwhichstartpage",firstpictureonpage,"","/",gGetCookieDom());}var _b2;var _b3=document.JSONobj.getImgDat("short_caption");_b3=(_b3?_b3:"n/a");var _b4=document.JSONobj.getImgDat("long_caption");_b4=(_b4?_b4:"n/a");if(typeof (uselongcaption)!="undefined"&&_b4!="n/a"){if(uselongcaption=="useboth"){if(_b3=="n/a"){_b2=_b3;}else{_b2="<span id=\"enlarge_short_caption\">"+_b3+" <a href=\"javascript: return false;\" 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\">"+_b4+"  <a href=\"javascript: return false;\" onclick=\"$('enlarge_long_caption').style.display='none'; $('enlarge_short_caption').style.display='inline'; return false;\">&lt;&lt;&nbsp;less</a></span>";}}else{_b2=_b4;}}else{_b2=_b3;}var _b5=document.JSONobj.getImgDat("rmrftype");var _b6=document.JSONobj.getImgDat("tieredimgpricing");var _b7=enlarge2_act__generateTierRows(_b6,_b5,_ad,_ae);var _b8=document.JSONobj.getImgDat("photographer")+((document.JSONobj.getImgDat("agent_name")&&document.JSONobj.getImgDat("agent_name")!="")?"&nbsp;/&nbsp;"+document.JSONobj.getImgDat("agent_name"):"");var _b9=(document.JSONobj.getImgDat("file_size")<5?"Scan on Demand":document.JSONobj.getImgDat("file_size")+" Mb");var _ba=document.JSONobj.getImgDat("released");var _bb=document.JSONobj.getImgDat("image_restrictions");var _bc=document.JSONobj.getImgDat("comp_allow");var _bd=(typeof (showdimensions)!="undefined"?document.JSONobj.getImgDat("dimensions"):"");if(_bd){var _be=_bd.match(/^(\d+)x(\d+)$/);if(typeof (_be)=="object"){_bd="<br/><b>Original Dimensions:</b>&nbsp;"+_be[1]+"px&nbsp;x&nbsp;"+_be[2]+"px";}}var _bf=parseInt(_ae)+1;var _c0=id[_bf];var _c1=parseInt(_ae)-1;var _c2=id[_c1];var _c3="";if((!document.thisIsFeatureView)&&_b1&&v[_ae]&&(v[_ae]=="H")){var _c4=+_ad.substring(0,2)+"/"+_ad.substring(0,5)+"/"+_ad;_c3+="<EMBED SRC=\"http://tools.cgibackgrounds.com/qtvideo/"+_c4+".MOV\" WIDTH=420 HEIGHT=280></EMBED>";}else{var _c5="0000000000";if(_af){_c5=_af;}else{_c5=_ad;}debug("tarid",_c5);_c3+="<A HREF=\"\" onclick=\"currentpage(); return false;\">"+"<img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/"+((typeof (localwatermark)!="undefined"&&!pngsupport)?"wm":"420")+"/60/"+_c5+".JPG\" border=1 style=\"display:inline; clear:none;\" id=\""+_c5+"\">"+((typeof (localwatermark)!="undefined"&&pngsupport)?"<img style=\"z-index: 300; position:absolute; left:0px; bottom:0px;\" src=\""+localwatermark+"\" border=\"0\" onload=\"fitMeTo('"+_c5+"', this)\"/>":"");_c3+="</A>";}var _c6="";if(!document.thisIsFeatureView&&_b1&&st[_ae]&&st[_ae].length>13){var _c7=st[_ae];var _c8=_c7.split(" ");var _c9=_c8[1].split(",");if(_c9.length>1){_c9=_c8[0]+" "+_c9.join(" ");_c8=_c9.split(" ");}var _ca=_c8.length;if(_ca>40){simheight=(70-_ca/2);}else{simheight=70-_ca;}var _cb="";for(var i=0;i<_ca;i++){_cb+="<span valign=bottom style=\"float:left;\">"+"<a href=\"javasc"+"ript:enlarge2('"+_ad+"'"+","+"'"+_ae+"','"+_c8[i]+"');\" TITLE=\"ID:"+_c8[i];if(showphotographer==1){_cb+="  \r&copy; "+_b8;}_cb+=" click image to view similar\"><img src=http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+_c8[i]+".JPG border=0 vspace=2 hspace=2 height="+simheight+" align=left></a></span>";}_c6=Templates.enlarge2_act__similars.evaluate({simcolinfo:_cb});}var _cd="";var _ce="";if(_b0=="cartview"){_ce="<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){_ce="<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{_ce="<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(_b1){if(_b0!="cartview"){if((snum+_ae)>0){_cd+="                                  <A HREF=\"\" onclick=\"enlarge2('"+_c2+"','"+_c1+"'); 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(_ae)+1)<Number(results_total)){_cd+="                                  <A HREF=\"\" onclick=\"enlarge2('"+_c0+"','"+_bf+"'); return false;\" TITLE=\"GO TO THE NEXT IMAGE\">NEXT IMAGE <FONT style=\"font-size:9pt; font-family: Arial;\">&#8594;</FONT></A><BR>";}}}var _cf="";if(_af){_cf=_af;}else{_cf=_ad;}var _d0="";if(_b0!="cartview"){if(gsession&&gusername&&_bc=="Y"){_d0="<a href=\"Javascr"+"ipt:displayWindow('/comp_view.shtml?"+gusername+"/"+cs[_ae]+"/"+_cf+".JPG','600','640');\"><img src=\"/graphics/icon_comp.gif\" width=21 height=15 alt=\"\" border=\"0\"> DOWNLOAD COMP</a><BR><BR>";}else{if(gsession){_d0="<a href=\"Javascr"+"ipt:displayWindow('/comp_view.shtml?guest/"+cs[_ae]+"/"+_cf+".JPG','600','640');\"><img src=\"/graphics/icon_comp.gif\" width=21 height=15 alt=\"\" border=\"0\"> DOWNLOAD COMP</a><BR><BR>";}}}var _d1=(_b7?"<BR/><div class=\"enlargeratetiers\">"+_b7+"</div>":"");var _d2=(showrelease?"<b>Release:</b> "+_ba+"<br>":"");var _d3=_b8;if(_b8.indexOf("/")>0){_d3=_d3.substring(0,_d3.indexOf("/"));}var _d4=((_b8&&showphotographer)?"<b>Photographer:</b> <A href=\"/SwishSearch?Keywords="+_d3+"&spec_idx=ne&method=photographer\">"+_b8+"</a><br>":"");var _d5=((!_af&&showfilesize)?"<b>File Size:</b> "+_b9:"");var _d6=(_bb?"<BR/><span style=\"color:#990000\">"+_bb+"</span>":"");var _d7="";document.JSONobj.getKeywords().each(function(kwd){var _d9=q_args;if(_d9.match(/Keywords=[^\+\&]+\+/)){_d9=_d9.replace(/Keywords=[^\+]+\+/,"Keywords="+kwd+"+");}else{if(_d9.match(/Keywords=[^\+\&]+\&/)){_d9=_d9.replace(/Keywords=[^\+\&]+\&/,"Keywords="+kwd+"&");}else{if(_d9.match(/Keywords=[^\+\&]+$/)){_d9=_d9.replace(/Keywords=[^\+\&]+$/,"Keywords="+kwd);}else{_d9=_d9.replace(/((rid|\&rid)|(vmo|\&vmo)|(lb_view|\&lb_view)|(cartview|\&cartview))=[^\&]+/,"");_d9="Keywords="+kwd+"&"+_d9;_d9=_d9.replace(/\&+/,"&");}}}_d9=_d9.replace("&spec_idx=ne","");_d7+="<a href=\"/SwishSearch?"+_d9+"&spec_idx=ne\">"+kwd+"</a>, ";});var _da;if(o[_ae]){_da=o[_ae];}else{_da=_cf;}var _db=document.JSONobj.getImgDat("date_shot");var _dc=document.JSONobj.getImgDat("rfcdlink");var _dd=$H({enlargetid:_cf,rfcdlinkslug:_dc,dateshot:_db,keywordinfo:_d7,displayenlargetid:_da,restrictionsinfo:_d6,filesizeinfo:_d5,photographerinfo:_d4,releaseinfo:_d2,ratetierinfo:_d1,downloadcomplink:_d0,navenlargedlinks:_cd,navbacklinks:_ce,similarscolumn:_c6,themediainsert:_c3,rmrftype:_b5,myshortcaption:_b2,dimensions:_bd});$("Layer1").style.overflow="auto";MM_setTextOfLayer("Layer1","",Templates.enlarge2_act__body.evaluate(_dd));if(typeof (autoshowkeywords)!="undefined"){setTimeout("popkeys2('enlarge_keywords','','enalarge_keywords_text');",500);}MM_preloadImages("http://gdynx.ipnstock.com/"+dynimagesname+"/420/60/"+_c0+".JPG");}else{gsetCookie("gviewmode","ss","","/",gGetCookieDom());self.location=nextlink+"snum="+(Number(firstpictureonpage)+Number(snum));}}function 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 setTextOfLayer(_e2,x,_e4){var obj=$(_e2);if(obj!=null){if($("pagingrow")&&document.currentLayer1Mode!="searchresults"){$("pagingrow").innerHTML="";}if(document.layers){document.write(unescape(_e4));document.close();}else{obj.innerHTML=unescape(_e4);}}}}function afInit(){this.init=init;function init(){var _e6;_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=="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(_e7){for(var i=0;i<_e7.length;i++){var _e9=_e7[i].string;var _ea=_e7[i].prop;this.versionSearchString=_e7[i].versionSearch||_e7[i].identity;if(_e9){if(_e9.indexOf(_e7[i].subString)!=-1){return _e7[i].identity;}}else{if(_ea){return _e7[i].identity;}}}}function findVersion(_eb){var _ec=_eb.indexOf(this.versionSearchString);if(_ec==-1){return;}return parseFloat(_eb.substring(_ec+this.versionSearchString.length+1));}function findBrowser(){var _ed=[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}];global.userBrowserName=findData(_ed)||"An unknown browser";global.userBrowserVersion=findVersion(navigator.userAgent)||findVersion(navigator.appVersion)||"an unknown version";}function findOS(){var os=[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}];global.userOSName=findData(os)||"An unknown operating system";}function handleBuilder(_ef){var _f0=_ef["Builder"];var _f1=_ef["cartPic"];if(typeof (_f0)!="undefined"){global.nodeTree=$H({cart_build_act__buttons:_f0.node("a",{href:"#",onclick:"lightbox_change(); return false;",title:"SWITCH TO YOUR LIGHTBOX"},[_f0.node("img",{src:"/graphics/cart_enabled_02.gif",border:0,width:127,height:18,hspace:0,vspace:0})]),cart_build_act__actions:_f0.node("span",{},[_f0.node("a",{href:"#",onclick:"cart_display(); return false;",className:"lblink",style:"text-decoration:none; cursor:pointer;"},"View Cart and Calculate Usage Fees")," | ",_f0.node("a",{href:"#",onclick:"cart_check(); return false;",className:"lblink",style:"text-decoration:none; cursor:pointer;"},"Checkout"),(document.thisIsFeatureView?" | ":""),(document.thisIsFeatureView?_f0.node("a",{href:"#",className:"lblink",onclick:"$(\"LBdiv\").style.visibility = \"hidden\"",style:"cursor:pointer;"},"[x] Hide Cart"):"")])});}return ({nodeTree:global.nodeTree});}function handleSession(_f2){var _f3=_f2["cartView"];var _f4=_f2["cartViewLocation"];var _f5=_f2["gSession"];var _f6=_f2["pageType"];var _f7=_f2["pre_q_args"];var _f8=_f2["q_args"];if(typeof (_f5)!="undefined"&&_f5){if(_f3){document.currentLbdivMode="cart";document.currentLayer1Mode="cartview";global.currentMousedOverObject="shop_cart";}if((typeof (_f6)!="undefined"&&_f6=="lb")||(typeof (_f7)!="undefined"&&(_f7.match(/lb_view=1/)||_f7.match(/fn=/)))||(typeof (_f8)!="undefined"&&(_f8.match(/vmo=/)||_f8.match(/lb_view=1/)))){global.pageType="lb";gsetCookie("gwhichstartpage","","","/",gGetCookieDom());}}else{if(_f3){top.location=_f4;}}return ({currMousedOverObj:global.currentMousedOverObject,pagetype:global.pageType});}function pageTypeEvents(_f9){var _fa=_f9["pageType"];if(typeof (_fa)!="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(){var _fb=document.styleSheets;var _fc=false;for(i=0;i<_fb.length;i++){if(_fb[i].href!=null&&_fb[i].href.endsWith("/css/main2.css")){_fc=true;}}if(!_fc){document.write("<LINK rel=\"stylesheet\" href=\"/css/main2.css\" type=\"text/css\">");}if((global.userBrowser=="IE"||global.userBrowserName=="Explorer")&&(parseInt(global.userBrowserVersion)<5)){document.write("<LINK rel=\"stylesheet\" href=\"/css/fixed4ie.css\" type=\"text/css\">");}}}function afLegal(){this.copyrightNotice=copyrightNotice;this.licenseCostWindow=licenseCostWindow;function copyrightNotice(){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.listLightbox=listLightbox;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;this.switchList=switchList;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 _100="/bin/Mail";var _101="ot=2&dsm=1&to_email="+$("to_email").value+"&mail_text="+escape($("mail_text").value);if($("allow_hrdl")&&$("allow_hrdl").checked==true){_101+=(typeof (emaillburladd)!="undefined"?emaillburladd:"");}if($("bill_to_customer")&&$("bill_to_customer").value.toString().length>0){_101+="&customer_id="+$("bill_to_customer").value;}if($("email_project")&&$("email_project").value.toString().length>0){_101+="&project="+$("email_project").value;}if($("email_notes")&&$("email_notes").value.toString().length>0){_101+="&notes="+$("email_notes").value;}if($("notify").checked==true){_101+="&notify=1";}if($("readonly").checked==true){_101+="&readonly=1";}ajax_TEXT(_100+"?"+_101,"GET");simplemessage("Sending your lightbox "+" <blink>.</blink>",0);}function lightbox_mod_act(_102){if(currentLbdivMode=="cart"){return false;}var _103=0;if(document.JSONobj&&document.JSONobj.getLbDat("lbname")){var _104=document.JSONobj.getLbDat("lbname");if(currentlbname==_104||!currentlbname){hidedisplaypanel(1);var _105=document.JSONobj.getLbDat("lblist");var lbl=document.JSONobj.getLbDat("lbnamelist");if(typeof (_105)!="array"&&typeof (_105)!="object"||!_105.length){_105=new Array(1);_105[0]={id:"1",rfcd:""};}document.currentlbstash=_105;currentlbname=_104;currentlblist=lbl;_103=0;lightbox_build(_105,_104,"",lbl);}else{_103=1;}}else{_103=1;}if(_103){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 _10b={emaillbaddhtml:(typeof (emaillbaddhtml)!="undefined"?emaillbaddhtml:" "),currentlbname:currentlbname};center_panel(390,280,Templates.lightbox_email__body.evaluate(_10b));}}}function switchList(args){var _10d=$("images").value.split(",");var _10e=$("origs").value.split(",");var _10f=$("ipn_id").checked;var _110=$("orig_id").checked;var _111="";for(var x=0;x<=_10d.length-1;x++){if(_10f){_111=_111+_10d[x];if(_110){_111=_111+",";}else{_111=_111+"\n";}}if(_110){_111=_111+_10e[x]+"\n";}}$("lightbox_images").value=_111;}function listLightbox(args){var mode=args.mode;var lb=args.lb;var user=args.user;if(mode=="close"){hidedisplaypanel(1);}else{var d=new Date();ajax_JSON("/bin/UserAdmin?lb_list="+lb+"&user="+user+"&noise="+d.getTime(),"GET",{"callback":function(){var _118=document.JSONobj.oJSON.images.image_id;var _119=document.JSONobj.oJSON.images.orig_id;var _11a=_118.join("\n");var _11b={content:_11a,images:_118,origs:_119,currentlbname:lb};center_panel(390,380,Templates.lightbox_list__body.evaluate(_11b),"",{"topX":(self.innerWidth/2)-(380/2),"topY":(self.innerHeight/2)-(390/2),"static":1});}});}}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 _11c=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var lbs=make_lightbox_string(gusername,currentlbname);currentlbname="";ajax_JSON("/AjaxHandlers/LightboxDelete/"+lbs+".json",getpost,_11c);}function renameLightbox(){var _11e={currentlbname:currentlbname};center_panel(290,200,Templates.lightbox_rename__body.evaluate(_11e));}function buildLightbox(tlba,_120,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(_120){currentlbname=_120;}if(lbl){currentlblist=lbl.split("|");}if(secr){scr=secr;}var _123=$("LBdiv")?Position.cumulativeOffset($("LBdiv")):[0,0];var _124=winH-_123[1]-18;document.currentlbstash=tlba;if($("LBdiv")){var _125=$A([]);_125.push(Builder.node("div",{id:"lbbuttons",style:"padding: 0px; margin: 0px; height:16px; width: 127px; overflow:hidden;"},[Builder.node("a",{href:"javascript: return false;",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 _126=$A([]);if(currentlblist&&currentlblist.length>0){var _127=0;$A(tlba).each(function(_128){if(_128.id==1){_127=1;}});var _129=(_127?(tlba.length-1):tlba.length);_126.push(Builder.node("b",{},currentlbname+" Lightbox"),"  ("+_129+")  ",Builder.node("b",{},"Change to  "));var _12a=document.createElement("select");_12a.setAttribute("name","n");_12a.setAttribute("id","lightbox_menu");_12a.setAttribute("class","smallmenu");_12a.onchange=function(){lightbox_change(this.options[this.selectedIndex].value);};for(var i=0;i<currentlblist.length;i++){if(currentlblist[i]!=""){var _12c;_12c=document.createElement("option");_12c.setAttribute("value",currentlblist[i]);_12c.appendChild(document.createTextNode(currentlblist[i].substring(0,25)+(currentlblist[i].length>25?"...":"")));if(currentlblist[i]==currentlbname){_12c.setAttribute("selected","selected");}_12a.appendChild(_12c);}}_126.push(_12a);}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";}_126.push(Builder.node("a",{"href":"javascript: return false;","class":"lblink","onclick":"lightbox_new(); return false;"},tlb1)," | ",Builder.node("a",{"href":"javascript: return false;","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":"javascript: return false;","class":"lblink","onclick":"lightbox_email(); return false;"},tlb3)," | ",Builder.node("a",{"href":"javascript: return false;","class":"lblink","onclick":"lightbox_add2cart(); return false;"},tlb4)," | ",Builder.node("a",{"href":"javascript: return false;","class":"lblink","onclick":"lightbox_delete(); return false;"},tlb5)," | ",Builder.node("a",{"href":"javascript: return false;","class":"lblink","onclick":"lightbox_rename(); return false;"},tlb6));if(typeof (makelightboxfeature)!="undefined"){_126.push(" | ",Builder.node("a",{"href":"javascript: return false;","class":"lblink","onclick":"launchwin('"+makelightboxfeature+currentlbname+"', 'make feature', 500, 400, 100, 100); return false;"},tlb7));}if(typeof (copylightboxtouser)!="undefined"){_126.push(" | ",Builder.node("a",{href:"javascript: return false;","class":"lblink","onclick":"launchwin('"+copylightboxtouser+"', 'copy_lightbox', 300, 300, 300, 400); return false;"},tlb8));}if(typeof (enlargedlbsort)!="undefined"){_126.push(" | ",Builder.node("a",{href:"javascript: return false;","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));}_126.push(" | ",Builder.node("a",{"href":"javascript: return false;","class":"lblink","onclick":"showhideLB(); return false;",style:"cursor:pointer"},"[+|-]"));var _136="block";if(lbdisplaymode&&viewmode=="editing"){_136="none";}_125.push(Builder.node("div",{"id":"lblinks","class":"lbname lbscroll","style":"overflow: auto; overflow-y:hidden"},[Builder.node("nobr",{},_126)]));var _137=$A([]);var _138=30;if(tlba.length>0){if(_136=="block"){_138=130;}else{if(_136=="none"){_138=40;}}var _139="hidden";var _13a=parseInt(winW/79);var _13b="100%";if(_13a<tlba.length){_139="scroll";_13b=79*tlba.length;_13b=_13b+"px";}var _13c=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 _13d={"className":"lblink","title":"Enlarge this image"};var _13e={"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 _140=pm[1];_13d.href="/SwishSearch?n=1&fn="+_140+"&supst=cd";_13e.href="/SwishSearch?n=1&fn="+_140+"&supst=cd";}}else{_13d.href="javascript: return false;";_13d["onclick"]="hp(); enlarge2('"+lbid+"','"+lbi+"'); return false;";_13e.href="javascript: return false;";_13e.onclick="if (suspendpreviews==0) { hp(); enlarge2('"+lbid+"', '"+lbi+"'); } return false;";}var _141=(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":"javascript: return false;"},"x"),Builder.node("a",_13d,"+")]):"");_137.push(Builder.node("div",{"id":"dlb_"+lbi,"name":"dlb_"+lbi,"style":"float:left; height:"+(_13c+18)+"px; overflow:hidden","align":"center"},[Builder.node("a",_13e,[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:_13c,className:"lbimg","hspace":2})]),Builder.node("br"),_141]));}}}else{if(currentlbname){_137.push(Builder.node("div",{"id":"dlb_0","name":"dlb_0","style":"float:left; height:"+(_13c+18)+"px; overflow:hidden;","align":"center"},[Builder.node("a",{"href":"javascript: return false;","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:_13c,className:"lbimg","hspace":2})])]));}}_125.push(Builder.node("div",{"class":"lbscroll","style":"position: relative; overflow:"+_139+"; overflow-y:hidden; height:"+(_138-50)+"px;"},[Builder.node("div",{"id":"LBimgdiv","style":"position:absolute; left:0; top:0; padding: 1px 0 0 0; height:"+(_138-30)+"px; width:"+_13b+"; display:"+_136+";"},[_137])]));$("LBdiv").replace("<div id=\"LBdiv\"></div>");$("LBdiv").innerHTML="";$("LBdiv").style.height=_138+"px";_125.each(function(_142){$("LBdiv").appendChild(_142);});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 _144=$F("lightbox_new_name");var _145=document.getElementById("lightbox_menu").options;for(var lb in _145){if(_144==_145[lb].value){alert("The lightbox "+_144+" already exists!");return false;}}if(_144.length==0||_144.length>100||_144===undefined){alert("Lightbox names must be between 1 and 100 characters long.");_144="";}else{if(test_valid_name(_144)){simplemessage("renaming your lightbox "+_144+" <blink>.</blink>","LB");var _147=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var lbs=make_lightbox_string(gusername,currentlbname,_144);ajax_JSON("/AjaxHandlers/LightboxRename/"+lbs+".json",getpost,_147);currentlbname=_144;}}}function changeLightbox(_149){currentLbdivMode="lightbox";cartview="";document.currentLbdivMode="lightbox";var lbs="";if(typeof (_149)!="undefined"&&_149.toString().length>0){simplemessage("Changing to Lightbox: "+_149+"<blink>.</blink>","","LB");polllb();currentlbname=_149;lbs=make_lightbox_string(gusername,_149);}ajax_JSON("/AjaxHandlers/LightboxInfo/"+lbs+".json",getpost,null);}function addImageToLightbox(id){if(gsession){var _14c=(typeof (document.currentlbstash)=="object"?1:0);var temp=(_14c?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 _14e=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var lbs=make_lightbox_string(gusername,currentlbname,id);ajax_JSON("/AjaxHandlers/LightboxAddTo/"+lbs+".json",getpost,_14e);if(_14c){lightbox_build(document.currentlbstash);}}}else{self.location="/bin/Cklb?ref=/SwishSearch%3F"+escape(pre_q_args)+"&atlb="+id;}}function deleteLightboxFromEnlargeView(_150,_151){var _152;var _153="";var _154=gusername;if(typeof (mobject_id)!="undefined"&&mobject_id!=""){var _155=new Array;_155=mobject_id.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);_152=_155[3];_154=_155[2];_153=mobject_id;}else{if(typeof (pagetype)!="undefined"&&pagetype=="lb"){_152=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="+_150+"&rid="+feat_requestview,"GET",null);}else{ajax_TEXT("/bin/CreateLightbox?delid="+_150+"&vmo="+_153+"&uname="+_154+"&lbname="+_152,"GET",null);}for(var tt=0;tt<id.length;tt++){if(id[tt]==_150){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 _157=$H({showstart:showstartnumber_trap+1,snum:showstartnumber_trap,viewmode:viewmode,buildmode:"",resized:""}).toJSON();dispatchAll(_157);}}if(_152==currentlbname&&(typeof (_151=="undefined")||_151!=1)){lightbox_delete_image(_150,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(_158,_159){var nlb=new Array();var _15b="";var _15c="";for(var temp=0;temp<document.currentlbstash.length;temp++){if(document.currentlbstash[temp].id==_158){var _15e=temp;if(typeof (mobject_id)!="undefined"&&mobject_id!=""){var _15f=new Array;_15f=mobject_id.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);_15b=_15f[3];}else{if(typeof (pagetype)!="undefined"&&pagetype=="lb"){_15b=dsplkys;}}}else{nlb.push(document.currentlbstash[temp]);}}document.currentlbstash=nlb;if(_15b&&_15b!=""&&_15b==currentlbname&&_159!=1){lightbox_delete_image_enl(_158,1);}if(typeof (document.currentlbstash)!="undefined"&&document.currentlbstash.length==0){lightbox_delete();}else{var _160=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var lbs=make_lightbox_string(gusername,currentlbname,_158);ajax_JSON("/AjaxHandlers/LightboxDelFrom/"+lbs+".json",getpost,_160);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(_163,_164,_165){var _166="";if(typeof (_165)=="object"){_166=_165.pluck("id");}else{_166=[_165];}_166=_166.reverse();var _167=_166.join("|");if(_167&&_167.length>500){_167="";}var _168=_163+"|||"+_164+(_167?"||"+_167:"");return _168;}function refreshTopLightbox(){if(gsession){self.location="/SwishSearch?n=1&lb_view=1";}else{self.location="/bin/Cklb?ref=/SwishSearch?lb_view=1";}}function saveLightbox(_169,_16a){var lbs=make_lightbox_string(gusername,currentlbname,(typeof (document.currentlbstash)!="undefined"?document.currentlbstash:1));var _16c=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var _16d=getpost;if(typeof (document.currentlbstash)=="object"&&document.currentlbstash.length>50){var _16e=document.currentlbstash.pluck("id").reverse().join("|");if(_16c){_16c+="&";}_16c+="payload="+_16e;_16d="POST";}ajax_JSON("/AjaxHandlers/LightboxSave/"+lbs+".json",_16d,_16c);}}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 _173=pmousedelta[0];var _174=pmousedelta[1];mouseX=(sX||0);mouseY=(sY||0);var _175;if(typeof (event)=="undefined"){mouseX=Event.pointerX(e);mouseY=Event.pointerY(e);_175=e.target;}else{mouseX=Event.pointerX(event);mouseY=Event.pointerY(event);_175=event.target;}if(Math.abs(mouseX-document.mouseLocSnapX)>150||Math.abs(mouseY-document.mouseLocSnapY)>150){hp();}else{var _176=60;if(_175&&_175.nodeName=="IMG"){_176=Element.getDimensions(_175)["height"];}if((mouseX+Element.getDimensions($("pimid"))["width"])>winW){_173=(mouseX-Element.getDimensions($("pimid"))["width"]-pmousedelta[0]-45);}else{_173+=mouseX;}if(_173<0){_173=pmousedelta[0];}if((mouseY-Math.min(_176,420)+pmousedelta[1]-20)<document.body.scrollTop){_174=document.body.scrollTop-pmousedelta[1];if((_174+40)>winH){_174=(_174-Math.min(_176,420)+pmousedelta[1]);if(((_174+Math.max(_176,420)-document.body.scrollTop)-winH)>0){_174=_174-(typeof (event)=="undefined"?Math.min((_176+160),420):(gloCrop=="panoramic"||(gloCrop!=""&&gloCrop!="vertical")?190:380));}}}else{if((mouseY+Math.max(_176,420))>winH){_174=(mouseY-Math.min(_176,420)+pmousedelta[1]);if(((_174+Math.max(_176,420)-document.body.scrollTop)-winH)>0){_174=_174-(typeof (event)=="undefined"?Math.min((_176+160),420):(gloCrop=="panoramic"||(gloCrop!=""&&gloCrop!="vertical")?190:380));}if(_174<document.body.scrollTop){_174=document.body.scrollTop-pmousedelta[1];}}else{_174+=mouseY;if((_174+40)>winH){_174=(_174-Math.min(_176,420)+pmousedelta[1]);if(((_174+Math.max(_176,420)-document.body.scrollTop)-winH)>0){_174=_174-(typeof (event)=="undefined"?Math.min((_176+160),420):(gloCrop=="panoramic"||(gloCrop!=""&&gloCrop!="vertical")?190:380));}}}}$("pimid").style.left=parseInt(_173)+"px";$("pimid").style.top=parseInt(_174)+"px";}}}function getMouseCoordinates(e){if(browser!="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.preloadNextPage=preloadNextPage;this.previousPage=previousPage;this.setBackPage=setBackPage;this.setupPageSize=setupPageSize;function currentPage(){if($("cdheader")){$("cdheader").style.display="block";}setuppagesize();if(document.currentLayer1Mode=="searchresults"){var _178=$H({snum:(firstpictureonpage?firstpictureonpage:0),viewmode:viewmode,buildmode:"",resized:""});dispatchBuildimages(_178);}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 _17a=(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{if($("navContainer")){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 _17d=$H({showstart:1,snum:0,viewmode:viewmode}).toJSON();self.location=nextlink+"snum="+prevtogoto+"#nav="+_17d;}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 preloadNextPage(){preloadcurrent=prestart;preloadnextimg();}function setBackPage(){}}function afPreview(){this.hp=hp;this.hpoff=hpoff;this.portSize=portSize;this.previewSet=previewSet;this.sp=sp;this.sp_act=sp_act;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 sp(oObj,_181,_182,mode){if(oObj.id){currMousedOverObj=oObj.id;}if(currMousedOverObj!=id[_182]){ajax_JSON("/AjaxHandlers/ImageInfo/"+_181+".json",getpost,null);}sp_act(oObj.id,_181,mode,_182,0);}function sp_act(_184,_185,mode,dex,_188){if((!$("previewsSel").selectedIndex||$("previewsSel").selectedIndex!=1)&&suspendpreviews==0){if(mode=="on"){Event.observe(document,"mousemove",mouseSnap);setTimeout("Event.stopObserving(document, 'mousemove', mouseSnap)",200);Event.observe(document,"mousemove",pfindmouse);if((_184==currMousedOverObj)&&((document.ajaxLoaded&&_185==document.JSONobj.getImgDat("id"))||_185==id[dex])){var temp=true;gloCrop=(_185==id[dex]?crp[dex]:document.JSONobj.getImgDat("crop"));gloCrop=(gloCrop?gloCrop:"horizontal");var crop=gloCrop;if(smallscreen=="1"&&(crop=="panoramic"||crop=="vertical")){prloadimg(_185,crop);}var _18b=(_185==id[dex]?fs[dex]:document.JSONobj.getImgDat("file_size"));if(_18b<5){_18b="";}else{if(!_18b.toString().match(/[A-Za-z]/)){_18b+="Mb";}}var _18c=(typeof (showdimensions)!="undefined"?(_185==id[dex]?dim[dex]:document.JSONobj.getImgDat("dimensions")):"");if(_18c){var dimr=_18c.match(/^(\d+)x(\d+)$/);if(dimr!=null&&dimr.length>1){_18c="[&nbsp;"+dimr[1]+"px&nbsp;x&nbsp;"+dimr[2]+"px&nbsp;]";}}var _18e=(_185==id[dex]?unescape(scp[dex]):document.JSONobj.getImgDat("short_caption"));if(_18e&&_18e.length>130){var tsc="";for(z=0;z<170;z++){var c=_18e.charAt(z);if(temp==true){if((z>130)&&(c==".")){temp=false;tsc+=c+" ...";}else{if((z>150)&&(c==" ")){temp=false;tsc+=" ...";}else{tsc+=c;}}}}_18e=tsc;}var _191="";if(typeof (o)=="object"&&typeof (o[dex])!="undefined"){_191=(_185==id[dex]?o[dex]:document.JSONobj.getImgDat("orig_id"));}else{_191=_185;}var _192=(_185==id[dex]?rm[dex]:document.JSONobj.getImgDat("rmrftype"));var _193=(_185==id[dex]?unescape(pho[dex]):document.JSONobj.getImgDat("photographer"));var _194=(_185==id[dex]?imr[dex]:document.JSONobj.getImgDat("image_restrictions"));_194=(_194?" :: <span style=\"color:#990000\"> This image has restrictions. Click to View </span>":"");var _195={imageid:_185,displayimageid:_191,rmrftype:_192,filesize:_18b,shortcaption:_18e,dimensions:_18c,photographer:_193,imagerestrictions:_194};$("previewpane_metdat_"+_185).innerHTML=Templates.sp_act__metadata.evaluate(_195);$("pimid").style.visibility="visible";new Effect.Appear($("pimid"),{duration:0.1});}else{if(_188<10){_188++;setTimeout("sp_act('"+_184+"', '"+_185+"', '"+mode+"', '"+dex+"', '"+_188+"')",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 retY=parseInt(document.body.offsetHeight-20);var retX=parseInt(document.body.offsetWidth-20);var iX=window.innerWidth;var iY=window.innerHeight;retX=(iX<retX?iX:retX);retY=(iY<retY?iY:retY);return [retX,retY];}}function afRelease(){this.iconStatus=iconStatus;this.releaseSetPage=releaseSetPage;this.saveAllReleases=saveAllReleases;this.validateCheckboxes=validateCheckboxes;function saveAllReleases(){for(var cnt=showstartnumber_trap;cnt<endnumber;cnt++){sor(cnt);}return false;}function releaseSetPage(_19b){if(_19b==""){return;}var _19c=$A();for(var cnt=showstartnumber_trap;cnt<endnumber;cnt++){if(id[cnt]){_19c.push(id[cnt]);var _19e=$("releasecontrol"+cnt);if(_19e){$A(_19e.elements).each(function(chx){var val=chx.value;if(val&&chx.type=="checkbox"){if(val==_19b||(_19b=="MODEL AND PROPERTY RELEASED"&&(val=="MODEL RELEASED"||val=="PROPERTY RELEASED"))){chx.checked=true;}else{chx.checked=false;}}});}if($("shortrel"+cnt)){var _1a1=_19b;_1a1=_1a1.substring(0,16)+(_19b.length>16?"...":"");$("shortrel"+cnt).innerHTML="Release: "+_1a1;}sor(cnt);}}return false;}function validateCheckboxes(thar){var cc=0;var grel="";$A(thar.form.elements).each(function(chx){if(chx.checked){cc++;grel=chx.value;}});if(cc>1){var _1a6=new Object;if(thar.form.elements["MODEL RELEASED"].checked&&thar.form.elements["PROPERTY RELEASED"].checked&&thar.name.toString().match(/(MODEL|PROPERTY) RELEASED/)){_1a6["MODEL RELEASED"]=1;_1a6["PROPERTY RELEASED"]=1;grel="MODEL AND PROPERTY RELEASED";}else{_1a6[thar.name]=1;grel=thar.name;}$A(thar.form.elements).each(function(chx){if(chx.checked&&_1a6[chx.value]!=1){chx.checked=false;}});}if($("shortrel"+thar.form.shdex.value)){var _1a8=grel;_1a8=_1a8.substring(0,16)+(grel.length>16?"...":"");$("shortrel"+thar.form.shdex.value).innerHTML="Release: "+_1a8;}}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 afSearch(){this.checkIt=checkIt;this.expandIt=expandIt;this.narrowIt=narrowIt;this.optimizeSearch=optimizeSearch;this.popKeywords=popKeywords;this.searchType=searchType;this.standardSearch=standardSearch;this.searchPreferences=searchPreferences;this.writeSearch=writeSearch;this.writeSimilar=writeSimilar;this.writeStandardSimilar=writeStandardSimilar;this.writeStandardSearch=writeStandardSearch;function searchType(){if(typeof (g_custom)=="function"){g_custom();}else{g_standard();}}function standardSearch(){var url2=$F("Keywords");var _1aa;if($("Username")){_1aa=$F("Username");}pagetype="search";var _1ab="";if(typeof (q_args)!="undefined"&&q_args){_1ab=q_args.match(/Keywords=(.*?)(\&|$)/);if(typeof (_1ab)!="undefined"&&_1ab&&_1ab.length>1){_1ab=_1ab[1];}else{_1ab="";}_1ab=unescape(_1ab);}if(url2.length<1&&_1ab.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(_1ab.length>0&&(url2.length<1||url2=="enter keywords")){url2=_1ab;$("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 _1ac="";if($("method")&&typeof ($("method").value)!="undefined"&&$("method").value=="within"){_1ac="/SwishSearch?Keywords="+q_id+"&ex_keys="+url2;}else{_1ac="/SwishSearch?Keywords="+url2;}if($("displaypanel")){if(typeof (suspendWithPeople)=="undefined"&&$("displaypanel").people){if($("displaypanel").people[1].checked==true){_1ac+="+haspeople";}if($("displaypanel").people[2].checked==true){_1ac+="+nobody";}if($("displaypanel").people[3]&&$("displaypanel").people[3].checked==true){_1ac+="+hascrowd";}}if($("displaypanel").custom){$A($("displaypanel").custom).each(function(itm){_1ac+="+"+itm.value;});}if($("displaypanel").outline){if($("displaypanel").outline[0].checked==true){_1ac+="+outlinable";}else{if($("displaypanel").outline[1].checked==true){_1ac+="+not+outlinable";}}}if(typeof (suspendYesNoRestrictons)=="undefined"&&$("displaypanel").restrictions){if($("displaypanel").restrictions[1].checked==true){_1ac+="+NOT+imagehasrestrictions";}}if($("displaypanel").xtrasql&&$("displaypanel").xtrasql[1].checked==true){_1ac+="&xtrasql=(releasedmodel+or+releasedproperty+or+releasednotapplicable+or+releasedmodelandproperty)";}var _1ae=1;$A($("displaypanel").orient).each(function(itm){if(!itm.checked){_1ae=0;}});if(!_1ae){if($("displaypanel").orient[0].checked==true){_1ac+="&orient=horizontal";}if($("displaypanel").orient[1].checked==true){_1ac+="&orient=vertical";}if($("displaypanel").orient[2].checked==true){_1ac+="&orient=panoramic";}if($("displaypanel").orient[3].checked==true){_1ac+="&orient=square";}}if($("displaypanel").rmrftype){if($("displaypanel").rmrftype[0].checked==true&&$("displaypanel").rmrftype[1].checked==false){_1ac+="&searchinclude=RM";}if($("displaypanel").rmrftype[1].checked==true&&$("displaypanel").rmrftype[0].checked==false){_1ac+="&searchinclude=RF";}}if($("displaypanel").color){if($("displaypanel").color[1].checked==true){_1ac+="&color=color";}if($("displaypanel").color[2].checked==true){_1ac+="&color=gray";}}if(typeof (showIllusPhotog)!="undefined"){if($("displaypanel").searchinclude[0].checked==true&&$("displaypanel").searchinclude[1].checked==false){_1ac+="&searchinclude=illustration";}if($("displaypanel").searchinclude[1].checked==true&&$("displaypanel").searchinclude[0].checked==false){_1ac+="&searchinclude=photography";}}}if($("spec_idx")){if($("spec_idx").selectedIndex==1){_1ac+="&spec_idx=ed";}if($("spec_idx").selectedIndex==2){_1ac+="&spec_idx=ne";}}if(EAD("share_control_sphotog")){_1ac+="&site="+$F("share_control_sphotog");}if(EAD("share_control_status")){_1ac+="&status_view="+$F("share_control_status");}if(EAD("share_control_view")){_1ac+="&view="+$F("share_control_view");}if(EAD("share_control_release")){_1ac+="&release_view="+$F("share_control_release");}if(_1aa&&_1aa!=""){_1ac+="&Username="+encodeURI(_1aa);}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=_1ac;}else{alert("You must first type in keywords to search for.");document.isn.Keywords.focus();}}}function searchPreferences(val,mode){var _1b2=ggetCookie("gsearchprefs");if(_1b2){}else{_1b2=new String(" ");}var _1b3=new String("");if(val=="released"&&mode=="remove"){}else{if((_1b2.indexOf("a")>=0)||(val=="released"&&mode=="add")){_1b3+="a";}}if(val=="norestrictions"&&mode=="remove"){}else{if((_1b2.indexOf("b")>=0)||(val=="norestrictions"&&mode=="add")){_1b3+="b";}}if(val=="people"&&mode=="remove"){}else{if(((_1b2.indexOf("c")>=0)&&(val!="withpeople")&&(val!="withcrowd"))||(val=="nobody"&&mode=="add")){_1b3+="c";}else{if(((_1b2.indexOf("d")>=0)&&(val!="withcrowd"))||(val=="withpeople"&&mode=="add")){_1b3+="d";}else{if((_1b2.indexOf("e")>=0)||(val=="withcrowd"&&mode=="add")){_1b3+="e";}}}}if(document.displaypanel.orient){if(document.displaypanel.orient[0]&&document.displaypanel.orient[0].checked==true){_1b3+="f";}if(document.displaypanel.orient[1]&&document.displaypanel.orient[1].checked==true){_1b3+="g";}if(document.displaypanel.orient[2]&&document.displaypanel.orient[2].checked==true){_1b3+="h";}if(document.displaypanel.orient[3]&&document.displaypanel.orient[3].checked==true){_1b3+="i";}}if(typeof (rmonly)=="undefined"&&document.displaypanel.rmrftype){if(document.displaypanel.rmrftype[0]&&document.displaypanel.rmrftype[0].checked==true){_1b3+="j";}if(document.displaypanel.rmrftype[1]&&document.displaypanel.rmrftype[1].checked==true){_1b3+="k";}}if(document.displaypanel.color){if(document.displaypanel.color[0].checked==true){_1b3+="m";}if(document.displaypanel.color[1].checked==true){_1b3+="n";}if(document.displaypanel.color[2].checked==true){_1b3+="o";}}if(typeof (showIllusPhotog)!="undefined"){if(document.displaypanel.searchinclude[0].checked==true){_1b3+="0";}if(document.displaypanel.searchinclude[1].checked==true){_1b3+="1";}}gsetCookie("gsearchprefs",_1b3,"","/",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 _1b4=" checked";var _1b5=_1b4;var _1b6=_1b5;var _1b7=_1b5;var _1b8="";var _1b9=_1b5;var _1ba=_1b5;var _1bb="";var _1bc="";var _1bd="";var _1be=_1b5;var _1bf="";var _1c0=_1b5;var _1c1="";var _1c2="";var rmc="checked";var rfc=rmc;var _1c5=" checked";var _1c6=_1c5;var _1c7=" selected";var _1c8="";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{_1b4=" ";}if(gsearchprefs.indexOf("g")>=0){}else{_1b5=" ";}if(gsearchprefs.indexOf("h")>=0){}else{_1b7=" ";}if(gsearchprefs.indexOf("i")>=0){}else{_1b6=" ";}}if(typeof (showIllusPhotog)!="undefined"){if(gsearchprefs.indexOf("1")<0&&gsearchprefs.indexOf("0")<0){}else{if(gsearchprefs.indexOf("1")<0){_1c6=" ";}if(gsearchprefs.indexOf("0")<0){_1c5=" ";}}}if(typeof (showSearchWithin)!="undefined"){if($("method")&&$F("method")=="within"){_1c7="";_1c8="selected";}else{_1c7="selected";_1c8="";}}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){_1b9="";_1b8="checked";}if(gsearchprefs.indexOf("c")>=0||gsearchprefs.indexOf("d")>=0||gsearchprefs.indexOf("e")>=0){if(gsearchprefs.indexOf("c")>=0){_1ba="";_1bb="";_1bc="checked";_1bd="";}if(gsearchprefs.indexOf("d")>=0){_1ba="";_1bb="checked";_1bc="";_1bd="";}if(gsearchprefs.indexOf("e")>=0){_1ba="";_1bb="";_1bc="";_1bd="checked";}}if(gsearchprefs.indexOf("a")>=0){_1bf="checked";_1be="";}if(gsearchprefs.indexOf("m")>=0||gsearchprefs.indexOf("n")>=0||gsearchprefs.indexOf("o")>=0){if(gsearchprefs.indexOf("m")>=0){_1c0="checked";_1c1="";_1c2="";}if(gsearchprefs.indexOf("n")>=0){_1c0="";_1c1="checked";_1c2="";}if(gsearchprefs.indexOf("o")>=0){_1c0="";_1c1="";_1c2="checked";}}}var _1c9="<form action=\"javasc"+"ript:g(); return false;\" method=get name=displaypanel id=displaypanel>";_1c9+="<div id=\"searchpanelouter\"><table cellspacing=0 cellpadding=10 border=0 width=100% height="+panelheight+">";_1c9+="<tr><td valign=top align=left class=\"light1\"><div id=\"searchpanelcolumn1\">";_1c9+="<b>ORIENTATION:</b><br>";_1c9+="<table cellspacing=3 cellpadding=0 border=0><tr>";_1c9+="<td><nobr><input type=checkbox name=orient value=horizontal onclick=javasc"+"ript:fsearchprefs(\"f\",\"add\"); "+_1b4+"> Horizontal</nobr></td></tr>";_1c9+="<tr><td><input type=checkbox name=orient value=vertical onclick=javasc"+"ript:fsearchprefs(\"g\",\"add\"); "+_1b5+"> Vertical</td></tr>";_1c9+="<tr><td><input type=checkbox name=orient value=panoramic onclick=javascr"+"ipt:fsearchprefs(\"h\",\"add\"); "+_1b7+"> Panororamic</td></tr>";_1c9+="<tr><td><input type=checkbox name=orient value=square onclick=javasc"+"ript:fsearchprefs(\"i\",\"add\"); "+_1b6+"> Square</td></tr>";_1c9+="</table><br>";_1c9+="<b>COLOR:</b><br>";_1c9+="<table cellspacing=3 cellpadding=0 border=0>";_1c9+="<tr><td><nobr><input "+_1c0+" type=radio name=color value=\"\" onclick=javascr"+"ipt:fsearchprefs(\"color\",\"add\");> Any</td></tr>";_1c9+="<tr><td><nobr><input "+_1c1+" type=radio name=color value=color onclick=javascr"+"ipt:fsearchprefs(\"color\",\"add\");> Color</td></tr>";_1c9+="<tr><td><input "+_1c2+" type=radio name=color value=gray onclick=javascr"+"ipt:fsearchprefs(\"color\",\"add\");> B/W</td></tr>";_1c9+="</table></div>";if(typeof (rmonly)=="undefined"){_1c9+="<BR><b>TYPE:</b><br>";_1c9+="<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>";_1c9+="</tr><tr><td><input type=\"checkbox\" name=\"rmrftype\" value=\"RF\" "+rfc+" onclick=javascr"+"ipt:fsearchprefs(\"RF\",\"add\");> Royalty Free</font></td></tr></table>";}_1c9+="</td><td valign=top align=left class=\"light1\"><div id=\"searchpanelcolumn2\">";if(typeof (showIllusPhotog)!="undefined"){_1c9+="<b>MEDIA:</b><br>";_1c9+="<input type=\"checkbox\" name=\"searchinclude\" value=\"illustration\""+_1c5+" onclick=javascr"+"ipt:fsearchprefs(\"1\",\"add\"); />Illustration<br/>";_1c9+="<input type=\"checkbox\" name=\"searchinclude\" value=\"photography\""+_1c6+" onclick=javascr"+"ipt:fsearchprefs(\"0\",\"add\"); />Photography<br/>";_1c9+="<br/>";}if(typeof (suspendYesNoRestrictons)=="undefined"){_1c9+="<b>RESTRICTIONS:</b><br>";_1c9+="<input "+_1b9+" type=radio name=restrictions value=\"\" onclick=javascr"+"ipt:fsearchprefs(\"norestrictions\",\"remove\");> Any<br>";_1c9+="<input "+_1b8+" type=radio name=restrictions value=not+imagehasrestrictions  onclick=javascr"+"ipt:fsearchprefs(\"norestrictions\",\"add\");> No Restrictions<br>";_1c9+="<br>";}if(typeof (suspendWithPeople)=="undefined"){_1c9+="<b>PEOPLE:</b><br>";_1c9+="<input "+_1ba+" type=radio name=people value=\"\" onclick=javasc"+"ript:fsearchprefs(\"people\",\"remove\");> Any<br>";_1c9+="<input "+_1bb+" type=radio name=people value=withpeople onclick=javasc"+"ript:fsearchprefs(\"withpeople\",\"add\");> With People<br>";_1c9+="<input "+_1bc+" type=radio name=people value=nobody onclick=javascr"+"ipt:fsearchprefs(\"nobody\",\"add\");> Without People<br>";_1c9+="<input "+_1bd+" type=radio name=people value=withcrowd onclick=javascr"+"ipt:fsearchprefs(\"withcrowd\",\"add\");> Crowd<br>";}_1c9+="<br><b>RELEASES:</b><br>";_1c9+="<font class=small>";_1c9+="<input "+_1be+" type=radio name=xtrasql value=\"\" onclick=javascr"+"ipt:fsearchprefs(\"released\",\"remove\");> Any release status<br>";_1c9+="<input "+_1bf+" type=radio name=xtrasql value=released onclick=javascr"+"ipt:fsearchprefs(\"released\",\"add\");> Only show released images<br>";if(typeof (showSearchWithin)!="undefined"){_1c9+="<br/><b>METHOD:</b><br/>";_1c9+="<nobr>&nbsp;<select id=\"method\" name=\"method\" class=\"smallmenu\" style=\"height:16px;\"><option value=\"new\" "+_1c7+">as a new search</option><option value=\"within\" "+_1c8+">within current results</option></select></nobr><br/>";}_1c9+="<BR><a href=\"javascript: return false;\" onclick=\"g(); return false;\"><img src=\"/graphics/button_go.gif\" alt=\"search\" border=\"0\"></a><BR><BR><A href=\"javascript: return false;\" onclick=\"hidedisplaypanel(1); return false;\">[x] close search options panel</A>";_1c9+="</td></tr></table>";var temp=Position.cumulativeOffset($("tablerow2"));center_panel(340,panelheight,_1c9,temp[1]);Event.observe(document,"mousemove",getMouseXY);}function optimizeSearch(){var _1cb=60;var _1cc="";if(optimizemenu==1&&pagetype=="search"){if(_1cb<results_total){_1cc+="<TABLE cellspacing=0 cellpadding=1 border=0>";_1cc+="<FORM name=\"optimizer\" action=\"#\">";_1cc+="<TR><TD>";_1cc+="<SELECT NAME=\"narrow\" ONCHANGE=\"narrowit(this.form.narrow.options[this.form.narrow.selectedIndex].value);\" class=\"smallmenu\">";_1cc+="<OPTION VALUE=\"#\">Narrow your search results";_1cc+="<OPTION VALUE=\"colorgray\">Remove black and white images";_1cc+="<OPTION VALUE=\"colorrgb\">Remove color images";_1cc+="<OPTION VALUE=\"imagehasrestrictions\">Remove restricted images";_1cc+="<OPTION VALUE=\"orientationvertical\">Remove verticals";_1cc+="<OPTION VALUE=\"(orientationhorizontal+OR+orientationpanoramic)\">Remove horizontals";if(spec_idx!="ed"){_1cc+="<OPTION VALUE=\"lowres\">Remove small scans (< 30 Mb)";}_1cc+="<OPTION VALUE=\"agefiveyears\">Only show recent images (<5 yrs)";_1cc+="<OPTION VALUE=\"agetenyears\">Remove very old images (>10 yrs)";_1cc+="</SELECT></td></tr></form></table>";_1cc+="";}else{_1cc+="";_1cc+="<FORM name=\"optimizer\" action=\"#\"><SELECT NAME=\"narrow\" ONCHANGE=\"expandit(this.form.narrow.options[this.form.narrow.selectedIndex].value);\" class=\"smallmenu\">";_1cc+="<OPTION VALUE=\"#\">Expand your search results";_1cc+="<OPTION VALUE=\"deep\">Have IPN members perform a deep search";if(spec_idx!="ne"){_1cc+="<OPTION VALUE=\"expand\">Show me the broadest set of images";}_1cc+="</SELECT></form>";_1cc+="";}}return (_1cc);}function narrowIt(url){if(url=="#"){alert("please select an item from the list");}else{var url1="/SwishSearch?spec_idx="+spec_idx+"&Keywords="+ukeys+"+NOT+"+url;self.location=url1;}}function expandIt(url){if(url=="#"){alert("please select an item from the list");}else{if(url=="deep"){var url1="/deepsearch.shtml";self.location=url1;}else{var url1="/SwishSearch?synsearch=true&spec_idx=ne&Keywords="+ukeys;self.location=url1;}}}function checkIt(_1d1){place=detect.indexOf(_1d1)+1;thestring=_1d1;return place;}function writeSimilar(myid,_1d3,_1d4,_1d5,_1d6,mode,_1d8,_1d9){if(typeof (writesimilar_custom)=="function"){return writesimilar_custom(myid,_1d3,_1d4,_1d5,_1d6,mode,_1d8,_1d9);}else{return writesimilar_standard(myid,_1d3,_1d4,_1d5,_1d6,mode,_1d8,_1d9);}}function writeStandardSimilar(myid,_1db,_1dc,_1dd,_1de,mode,_1e0,_1e1){_1e0=(_1e0||"");_1e1=(_1e1||"");var _1e2=st[_1db];var _1e3=_1e2.split(" ");var _1e4=_1e3[1].split(",");if(_1e4.length>1){_1e4=_1e3[0]+" "+_1e4.join(" ");_1e3=_1e4.split(" ");}var _1e5=_1e3.length;if(mode=="normal"||mode=="huge"){if(parseInt(_1e5)<5){simindicator=_1e5;}else{simindicator=4;}}else{if(parseInt(_1e5)<4){simindicator=_1e5;}else{simindicator=3;}}var _1e6="";var _1e7=myid;var _1e8=myid;var _1e9=15;var _1ea=15;if(_1de=="next"){var n=sw[_1db];n++;sw[_1db]=n;if(sw[_1db]>=_1e5){sw[_1db]=0;n=0;}_1e7=_1e3[n];}else{if(_1de=="prev"){var n=sw[_1db];n--;sw[_1db]=n;if(sw[_1db]<0){sw[_1db]=_1e5-1;n=_1e5-1;}_1e7=_1e3[n];}}if(isNaN((sw[_1db]+1))){sw[_1db]=0;}var _1ec=172+adminheight;if(mode=="list"||mode=="editing"){_1e6+="<TABLE width=298 cellspacing=2 cellpadding=0 border0 height="+_1ec+"><TR><TD valign=top width=149 align=center>";}_1e6+="<table cellpadding=0 cellspacing=0 border=0><TR><TD colspan=2 align=right valign=bottom bgcolor=#c9c9c9 width=18 height=18>";_1e6+="<a href=\"javasc"+"ript:enlarge2('"+myid+"'"+","+"'"+_1db+"', '"+_1e7+"');\" TITLE=\"ID:"+_1e7;if(showphotographer==1){"  \r&copy; "+_1dc;}if(showfilesize){_1e6+="  \rSIZE: "+myfilesize;}_1e6+="  \r"+"CAPTION: "+_1dd;if(mode=="huge"){_1e6+="\"><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/420/60/"+_1e7+".JPG\" border=\"0\" alt=\"loading...\" height=\"190\"></a></TD>";}else{if(mode=="med"){_1e9=10;_1ea=14;_1e6+="\"><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+_1e7+".JPG\" border=\"0\" vspace=\"0\" hspace=\"0\" alt=\"loading...\" height=72></a></TD>";}else{if(mode=="tiny"){_1e9=8;_1ea=12;_1e6+="\"><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+_1e7+".JPG\" border=\"0\" vspace=\"0\" hspace=\"0\" alt=\"loading...\" height=45></a></TD>";}else{_1e9=12;_1ea=16;_1e6+="\"><img src=\"http://globaldyn.ipnstock.com/"+dynimagesname+"/135/50/"+_1e7+".JPG\" border=\"0\" vspace=\"0\" hspace=\"0\" alt=\"loading...\"></a></TD>";}}}_1e6+="<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(mode=="normal"||mode=="huge"||mode=="large"){_1e6+="<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{_1e6+="<TD colspan=2 background=/graphics/similars_lc"+simindicator+".gif height=8></TD>";}_1e6+="<TD width=12 height=8 background=/graphics/similars_lr"+simindicator+".gif></TD></TR></TABLE>";if(mode=="normal"||mode=="med"||mode=="tiny"||mode=="large"){_1e6+="<Table cellpadding=0 cellspacing=0 border=0><TR><TD valign=top align=center>";}if(mode!="editing"){_1e6+="<DIV class=icons><a href=\"javascript: return false;\" onclick=\"lightbox_addto('"+_1e7+"'); return false;\" class=iconlink title=\"Add to your current lightbox\">LB+</a>";_1e6+="<a href=\"javascript: return false;\" onclick=\"return price_image('"+_1e7+"','"+rm[_1e7]+"');\" class=iconlink Title=\"Price Image\">$</a>";_1e6+="<a href=\"javasc"+"ript:enlarge2('"+_1e7+"'"+","+"'"+_1db+"');\" class=iconlink title=\"Enlarge image and more info\"><font class=eye>i</font></a>";if(mode=="huge"){}else{if(mode=="list"){_1e6+="&nbsp;&nbsp;"+(_1e0?"<a href=\""+_1e0+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>":"")+"</DIV>";}else{_1e6+="</DIV>";}}}if(mode=="med"||mode=="tiny"){_1e6+="<font class=xsmall>"+_1e7+"</font>";_1e6+="</TD><TD valign=top align=center width=40><nobr>";}if(mode=="list"||mode=="normal"||mode=="large"||mode=="editing"){_1e6+="</TD><TD valign=\"top\">";}_1e6+="<A HREF=\"\" onclick=\"writesimilar('"+_1e8+"','"+_1db+"','";_1e6+=_1dc+"','";_1e6+=_1dd+"','prev','"+mode+"', '"+_1e0+"','"+_1e1+"'); return false;\" TITLE=\"show similars\">";_1e6+="<IMG SRC=\"/graphics/similars_prev.gif\" border=\"0\" hspace=\"1\" height=\""+_1e9+"\" width=\""+_1ea+"\" align=\"absmiddle\"></A>";if(mode=="list"||mode=="huge"||mode=="normal"||mode=="large"||mode=="editing"){_1e6+="<font class=xsmall>"+(sw[_1db]+1)+" of "+_1e5+"</font>";}_1e6+="<A HREF=\"\" onclick=\"writesimilar('"+_1e8+"','"+_1db+"','";_1e6+=_1dc+"','";_1e6+=_1dd+"','next','"+mode+"', '"+_1e0+"','"+_1e1+"'); return false;\" TITLE=\"show similars\">";_1e6+="<IMG src=\"/graphics/similars_next.gif\" border=\"0\" hspace=\"1\" height=\""+_1e9+"\" width=\""+_1ea+"\" align=\"absmiddle\"></A></nobr><BR>";if(mode=="med"||mode=="tiny"){_1e6+="<font class=xsmall>"+(sw[_1db]+1)+" of "+_1e5+"</font>";}if(mode=="list"||mode=="editing"){_1e6+="<font class=xsmall>ID:"+_1e7;if(showphotographer==1){_1e6+="  <BR>&copy; "+currentYear+" "+_1dc;}if(showfilesize){_1e6+="<nobr>"+myfilesize+"</nobr>";}_1e6+=_1e1+"<BR>CAPTION: "+_1dd+"</font><BR>";if(mode=="editing"){_1e6+="<br/><a href=\"javascript: return false;\" onclick=\"launchwin('/SwishSearch?show_all=1&similar_to="+_1e7+"', 'edit sims', 600, 800, 100, 100); return false;\" title=\"Edit Similar Images\">Edit&nbsp;Similar&nbsp;Images</a>";}}if(mode=="huge"){_1e6+="</DIV>";}_1e6+="</td></TR></TABLE>";if(_1e0){_1e6+="<a href=\""+_1e0+"\" class=\"hiresdl_link\"><font color=\"#cc0000\">Download Hires</font></a>";}if(_1de=="start"){return _1e6;}if(_1de=="prev"){MM_setTextOfLayer("d"+_1e8,"",_1e6);}if(_1de=="next"){MM_setTextOfLayer("d"+_1e8,"",_1e6);}}function popKeywords(oId,oLbj,_1ef){var _1f0=$(oId);if(_1f0){if(_1f0.style.display=="none"){_1f0.style.display="block";var _1f1;if($("lbbuttons")){_1f1=Position.cumulativeOffset($("lbbuttons"))[1];}else{_1f1=winH;}var _1f2=_1f1-Position.cumulativeOffset(_1f0)[1]+"px";_1f0.style.maxHeight=_1f2;_1f0.style.overflowY="auto";}else{_1f0.style.display="none";}}if(_1ef){oLbj=$(_1ef);}if(oLbj){if(oLbj.innerHTML=="Show keywords"){oLbj.innerHTML="Hide keywords";}else{if(oLbj.innerHTML=="Hide keywords"){oLbj.innerHTML="Show keywords";}}}}}function afShare(){this.checkID=checkID;this.makeShareControlString=makeShareControlString;this.saveReleaseControl=saveReleaseControl;this.saveShares=saveShares;this.shareSetPage=shareSetPage;this.toggleShareControlCookie=toggleShareControlCookie;this.validateRadioButtons=validateRadioButtons;function makeShareControlString(id,_1f4){if(typeof id==="object"&&id.length){id=id.join("|");}var _1f5=id+"|||"+_1f4;return _1f5;}function toggleShareControlCookie(type){var _1f7=ggetCookie(gusername+"sc_on");if(!_1f7||type){viewmode="editing";_1f7=1;}else{viewmode="";_1f7="";}gsetCookie("gviewmode",viewmode,"","/",gGetCookieDom());gsetCookie(gusername+"sc_on",_1f7,"","/",gGetCookieDom());if(!type){var s=self.location.href;self.location.href=s.replace(/\&sc_boot\=1/g,"");}}function checkID(_1f9){if($(_1f9)&&$F(_1f9)&&!$F(_1f9).match(/^\-\- .* \-\-$/)){return true;}else{return false;}}function saveShares(dex,_1fb){if(!_1fb||_1fb=="share"){var _1fc=$F("sharecontrol"+dex);ajax_JSON("/AjaxHandlers/ShareSetShare/"+make_share_control_string(id[dex],_1fc)+".json",getpost,"");}if(!_1fb||_1fb=="weight"){var _1fd=$F("weightcontrol"+dex);ajax_JSON("/AjaxHandlers/ShareSetWeight/"+make_share_control_string(id[dex],_1fd)+".json",getpost,"");}if($("cellwrapper"+dex)){$("cellwrapper"+dex).style.backgroundColor="orange";}}function saveReleaseControl(dex){var _1ff=$A();var _200=unescape(relcon[dex]).toString().replace(/checked="?checked"?/gi,"");$A($("releasecontrol"+dex)).each(function(itm){if(itm.checked){_1ff.push(itm.value);var _202=new RegExp("value=\""+itm.value+"\"");_200=_200.replace(_202,"value=\""+itm.value+"\" checked=\"checked\"");}});relcon[dex]=escape(_200);_1ff=_1ff.join("|");ajax_JSON("/AjaxHandlers/ShareSetRelease/"+make_share_control_string(id[dex],_1ff)+".json",getpost,"");if($("cellwrapper"+dex)){$("cellwrapper"+dex).style.backgroundColor="orange";}}function validateRadioButtons(thar){if(!$(thar)&&!$F(thar)){return;}var nama=thar.name;nama=nama.replace(/(cocon|shcon)/,"");var pix=$F(thar);var dex=$F($(thar).form.dexer);var brd="white";var _208="pending";if(pix=="n"||pix=="r"||pix.match(/^(notshared|rejected)/)){if(pix=="n"||pix=="notshared"){_208="notshared";}else{_208="rejected";}brd="#DF0000";}else{if(!isNaN(pix)||pix=="a"||pix.match(/^shared/)){_208="shared";brd="#77BB33";}else{if(pix.match(/^hold/)){_208="hold";}}}if($("d"+nama)){$("d"+nama).style.background=brd;}var _209=unescape(shsync[dex]);_209=_209.split("|");shsync[dex]=escape(_208+"|"+_209[1]);var _20a="";if(thar.name.match(/shcon/)){_20a="ShareSetShare";}else{_20a="ShareSetCombined";}ajax_JSON("/AjaxHandlers/"+_20a+"/"+make_share_control_string(nama,pix)+".json",getpost,"");}function shareSetPage(_20b){if(_20b==""){return;}var _20c=$A();var _20d=_20b+$F("share_control_view")+$F("share_control_home_sphotog");var _20e="";if(typeof (cocon)=="object"&&cocon[0]){_20e=_20b.toString().substring(0,1);}for(var cnt=showstartnumber_trap;cnt<endnumber;cnt++){if(id[cnt]){_20c.push(id[cnt]);if(_20b.match(/pending|hold/)){$("d"+id[cnt]).style.background="white";}else{if(_20b.match(/notshared|rejected/)){$("d"+id[cnt]).style.background="#DF0000";}else{if(_20b.match(/^shared/)){$("d"+id[cnt]).style.background="#77BB33";}}}var _210=$("shf"+id[cnt]);if(_210){$A(_210.elements).each(function(rad){if(rad.value==_20d){rad.checked=true;}else{if(_20e&&(rad.value==_20e||(_20e=="s"&&rad.value.match(/^[a1-4]$/)))){rad.checked=true;}else{rad.checked=false;}}});}var _212=unescape(shsync[cnt]);_212=_212.split("|");shsync[cnt]=escape(_20b+"|"+_212[1]);}}ajax_JSON("/AjaxHandlers/ShareSetShare/"+make_share_control_string(_20c,_20d)+".json",getpost,"");return false;}}function afSystem(){this.debug=debug;this.empty=empty;this.getVars=getVars;this.screenInfo=screenInfo;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 _215=document.location.href.split("?")[1].split("&");urlParams=new Object;for(var x=0;x<_215.length;x++){var tmp=_215[x].split("=");if(tmp[0]){urlParams[unescape(tmp[0])]=unescape(tmp[1]);}}}function screenInfo(){setuppagesize();alert($F("pixperpage")+" browser is "+browser+" and os is "+OS+" width="+document.body.offsetWidth+","+self.innerWidth+","+winW+" winH="+winH+", truevertHeight="+truevertHeight);}}function afURL(){this.createNextLink=createNextLink;function createNextLink(args){var _219=args["enlargeview"];var _21a=args["method"];var _21b=args["q_args"];var qID=args["qID"];var _21d=args["ucats"];var _21e=args["color"];var date=args["date"];var _220=args["orient"];var _221=args["preQArgs"];var _222=args["scriptName"];var _223=args["searchInclude"];var sort=args["sort"];var _225=args["specIdx"];var _226=args["VCDBrowse"];var _227=String(_222+"?"+(_21e?"&color="+_21e:"")+(_220?"&orient="+_220:"")+(_225?"&spec_idx="+_225:"")+(sort?"&sort="+sort:"")+(_223?"&searchinclude="+_223:"")+((typeof (_226)!="undefined"&&_226)?"&VCDBrowse="+_226:""));if(typeof (_21b)!="undefined"){if(_21b.match(/lb_view=1/)){_227+="&n=1&lb_view=1";}else{if(_21b.match(/rid=/)){var rid=_21b.match(/rid=([^\&]+)/);if(rid[1]){_227+="&n=1&rid="+rid[1];}}else{if(_21b.match(/fn=/)){var fid=_21b.match(/fn=([^\&]+)/);if(fid[1]){_227+="&n=1&fn="+fid[1];}}}}}var _22a=_227+"&snum=0";if(typeof (_221)!="undefined"){var _22b=_221.match(/vmo=([^&]+)/);if(_22b&&_22b[1]){_227+="&vmo="+escape(_22b[1]);}}_227+="&method="+_21a+"&q_id="+qID+"&"+_21d;if(_219){setTimeout("enlarge2('"+_219+"', 0)",500);}return ({narrowurl:_22a,nextlink:_227});}}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 _232=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(!_232.opener){_232.opener=(typeof (parent)!="undefined"?parent:self);}if(_232.focus){_232.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,_234,_235){if(navigator.appName=="Netscape"){_235=parseInt(_235)+16;}var Win=window.open(url,"displayWindow","width="+_234+",height="+_235+",resizable=1,scrollbars=yes,menubar=no,status=no");Win.focus();}function displayWindow2(url,_238,_239){var Win2=window.open(url,"displayWindow2","width="+_238+",height="+_239+",resizable=0,scrollbars=no,menubar=no,status=no");Win2.focus();}}