if(typeof ($)!="function"){document.write("<script src=\"/javascripts/prototype.js\" type=\"text/javascript\"></script>");}MACIE5=false;var firstpictureonpage=(typeof (firstpictureonpage)!="undefined"?firstpictureonpage:0);var snum=(snum?snum:0);var tset=(tset?tset:"on");var showstartnumber_trap=0;var currentlbname;var currentlblist;var feat_requestview;var typeoflbaction;var sphotog;var pre_q_args;var winW;var baseurl;var carnit=1;gloCrop="";var currentLbdivMode;currentLayer1Mode=(document.currentLayer1Mode?currentLayer1Mode:"searchresults");document.currentLayer1Mode=currentLayer1Mode;if(document.currentLayer1Mode=="enlarge"){document.currentLayer1Mode="searchresults";currentLayer1Mode="searchresults";}var cartview=(cartview?cartview:"");var enlargeview=(enlargeview?enlargeview:"");var viewmode=((typeof (viewmode)!="undefined")?viewmode:"");var lightbox_built=0;currMousedOverObj="";suspendpreviews=0;scr="";var d=new Date();var currentYear=d.getFullYear();document.currentlbstash="";if(typeof (dynimagesname)=="undefined"){dynimagesname="dyn_images";}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")+"&";}});}var agt=navigator.userAgent;var yourOS="PC";if(agt.indexOf("Mac")!=-1){yourOS="Mac";}var yourBrowse="IE";if(navigator.appName=="Netscape"){yourBrowse="NS";}if(navigator.appVersion.substr(22,1)>="5"){ver5="Yes";}var now=new Date();gfixDate(now);now.setTime(now.getTime()+365*24*60*60*1000);var bad;lbexpansionspace=0;var pmousedelta=[20,-30];var loadImg=new Image();loadImg.src="/graphics/loading.png";var detect=navigator.userAgent.toLowerCase();var OS,browser,version,total,thestring;if(checkIt("konqueror")){browser="Konqueror";OS="Linux";}else{if(checkIt("safari")){browser="Safari";}else{if(checkIt("omniweb")){browser="OmniWeb";}else{if(checkIt("firefox")){browser="Firefox";}else{if(checkIt("opera")){browser="Opera";}else{if(checkIt("msie")){browser="Internet Explorer";}else{if(!checkIt("compatible")){browser="Netscape Navigator";version=detect.charAt(8);}else{browser="An unknown browser";}}}}}}}if(!version){version=detect.charAt(place+thestring.length);}var getpost="POST";if(browser=="Firefox"){getpost="GET";}var pngsupport=1;if(browser=="Internet Explorer"&&parseInt(version)<7){pngsupport=0;}if(!OS){if(checkIt("linux")){OS="Linux";}else{if(checkIt("x11")){OS="Unix";}else{if(checkIt("mac")){OS="Mac";}else{if(checkIt("win")){OS="Windows";}else{OS="an unknown operating system";}}}}}if((yourOS=="Mac"&&yourBrowse=="NS")||(yourOS=="Mac"&&yourBrowse=="IE"&&ver5!="Yes")){document.write("<LINK rel=\"stylesheet\" href=\"/css/main2.css\" type=\"text/css\">");}else{document.write("<LINK rel=\"stylesheet\" href=\"/css/main2.css\" type=\"text/css\">");}if(yourBrowse=="IE"||browser=="Internet Explorer"){document.write("<LINK rel=\"stylesheet\" href=\"/css/fixed4ie.css\" type=\"text/css\">");}gsession=ggetCookie("gmpsess");gusert=ggetCookie("usert");gcartimages=ggetCookie("gcartimages");gusername=ggetCookie("username");gcurrency=ggetCookie("currency");gfirstname=ggetCookie("firstname");if(typeof (scriptname)!="undefined"){viewmode=(viewmode||ggetCookie("gviewmode"));pixperpage=12;grange="legal";winW=700;winH=460;area=12;resized=0;c=-1;fmstartnumber=0;overflowtype="hidden";if((agt.indexOf("Mac")!=-1)&&(navigator.appName.indexOf("Microsoft")!=-1)){overflowtype="hidden";MACIE5=true;}else{MACIE5=false;}optimizemenu=0;showphotographer=1;showrelease=1;showfilesize=1;showcaptionview=1;nextlink=String(scriptname+"?"+(color?"&color="+color:"")+(orient?"&orient="+orient:"")+(spec_idx?"&spec_idx="+spec_idx:"")+(sort?"&sort="+sort:"")+(date?"&date="+date:"")+(searchinclude?"&searchinclude="+searchinclude:"")+(photoginclude?"&photoginclude="+photoginclude:"")+(vcdbrowse?"&VCDBrowse="+vcdbrowse:""));if(typeof (q_args)!="undefined"&&q_args.match(/lb_view=1/)){nextlink+="&n=1&lb_view=1";}else{if(typeof (q_args)!="undefined"&&q_args.match(/rid=/)){var rid=q_args.match(/rid=([^\&]+)/);if(rid[1]){nextlink+="&n=1&rid="+rid[1];}}else{if(typeof (q_args)!="undefined"&&q_args.match(/fn=/)){var fid=q_args.match(/fn=([^\&]+)/);if(fid[1]){nextlink+="&n=1&fn="+fid[1];}}}}narrowurl=nextlink+"&snum=0";if(typeof (pre_q_args)!="undefined"){var vmo_arg=pre_q_args.match(/vmo=([^&]+)/);if(vmo_arg&&vmo_arg[1]){nextlink+="&vmo="+escape(vmo_arg[1]);}}nextlink+="&method="+method+"&q_id="+q_id+"&"+ucats;if(enlargeview){setTimeout("enlarge2('"+enlargeview+"', 0)",500);}}if(typeof (gsession)!="undefined"&&gsession&&gusername){if(cartview){document.currentLbdivMode="cart";document.currentLayer1Mode="cartview";currMousedOverObj="shop_cart";}if((typeof (pagetype)!="undefined"&&pagetype=="lb")||(typeof (pre_q_args)!="undefined"&&(pre_q_args.match(/lb_view=1/)||pre_q_args.match(/fn=/)))||(typeof (q_args)!="undefined"&&q_args.match(/vmo=/))){pagetype="lb";gsetCookie("gwhichstartpage","","","/",gGetCookieDom());}}else{if(cartview){top.location="/bin/Cklb?ref=/SwishSearch?cartview=1";}}tempW=winW;if(feat_requestview){document.thisIsFeatureView=true;}var lbdisplaymode=ggetCookie("ghidelightbox");if(typeof (pagetype)!="undefined"){Event.observe(window,"load",currentpage);Event.observe(window,"resize",checkpageresize);Event.observe(window,"click",hp);}var nodeTree;function handleBuilder(){if(typeof (Builder)!="undefined"){nodeTree=$H({cart_build_act__buttons:Builder.node("div",{id:"lbbuttons"},[Builder.node("table",{cellspacing:0,cellpadding:0,width:"100%",height:"20"},[Builder.node("tbody",[Builder.node("tr",[Builder.node("td",[Builder.node("a",{href:"",onclick:"lightbox_build('changing'); return false;",title:"SWITCH TO YOUR CART"},[Builder.node("img",{src:"/graphics/cart_enabled_02.gif",border:0,hspace:0,vspace:0})])]),Builder.node("td",{align:"right"},[Builder.node("div",{"style":"padding:0 16px 4px 0"},[Builder.node("a",{href:"",onclick:"cart_build('changing'); return false;",title:"Switch to your cart"},[Builder.node("img",{border:0,src:"/graphics/tab_vc_off.gif"})])])])])])])]),cart_build_act__actions:Builder.node("span",{},[Builder.node("a",{href:"#",onclick:"cart_display(); return false;",className:"lblink",style:"text-decoration:none; cursor:pointer;"},"View Cart and Calculate Usage Fees")," | ",Builder.node("a",{href:"#",onclick:"cart_check(); return false;",className:"lblink",style:"text-decoration:none; cursor:pointer;"},"Checkout"),(document.thisIsFeatureView?" | ":""),(document.thisIsFeatureView?Builder.node("a",{href:"#",className:"lblink",onclick:"$(\"LBdiv\").style.visibility = \"hidden\"",style:"cursor:pointer;"},"[x] Hide Cart"):"")])});}}handleBuilder();function price_image(_1,_2){if(!_1||!_1.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 _3="/AjaxHandlers/ImageInfo/"+_1+".json";ajax_JSON(_3,"POST",null);price_image_act(_1,0,0);return false;}function price_image_act(_4,_5,_6){if(document.ajaxLoaded||_6){var _7=(document.JSONobj.getImgDat("tier")||"");launchwin("/bin/Rates?ln="+_4+"&calc_only=1&supst="+_7);}else{if(_5<5){_5++;setTimeout("price_image_act('"+_4+"','"+_5+"', 0 )",500);}else{_5++;price_image_act(_4,_5,1);}}return;}function center_panel(x,y,_a,tp){if(typeof (winH)=="undefined"){setuppagesize();}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 co=[6,80];if($("row2")){co=Position.cumulativeOffset($("row2"));if(Position.cumulativeOffset($("cdheader"))[1]>0){co=Position.cumulativeOffset($("cdheader"));}}else{co=Position.cumulativeOffset($("navContainer"));co[1]+=$("navContainer").getHeight();}panelx=co[0];panely=co[1]-((typeof (covertopadjust)!="undefined")?covertopadjust:0)+(Position.cumulativeOffset($("cdheader"))[1]<1?((typeof (covertopadjust)!="undefined")?covertopadjust:0):0);qq("co1"+co[1]+",panely"+panely+","+(Position.cumulativeOffset($("cdheader"))[1]<1)+","+((typeof (covertopadjust)!="undefined")?covertopadjust:0));}createDisplayPanel();createCoverLayer();$("displaypanellayer").style.top=panely+"px";$("displaypanellayer").style.left=panelx+"px";$("displaypanellayer").style.width=x+"px";$("displaypanellayer").style.height=y+"px";$("coverlayer").style.visibility="visible";$("displaypanellayer").style.visibility="hidden";new Effect.Appear("coverlayer",{duration:0.3,from:0,to:0.7});$("displaypanellayer").innerHTML=_a;setTimeout("displaypanelshow();",320);}function lightbox_new(){center_panel(290,200,Templates.lightbox_new__body.evaluate());}function test_valid_name(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 lightbox_new_send(){var _e="";if($("lightbox_new_name")){_e=$F("lightbox_new_name");}if(_e.length==0||_e.length>100){alert("Lightbox names must be between 1 and 100 characters long.");if(_e){_e="";}}else{if(test_valid_name(_e)){polllb();var _f=make_lightbox_string(gusername,_e,[{id:1}]);currentlbname=_e;simplemessage("creating your lightbox "+_e+" <blink>.</blink>","","LB");ajax_JSON("/AjaxHandlers/LightboxNew/"+_f+".json",getpost,null);}}}function lightbox_email_send(){var _10="/bin/Mail";var _11="ot=2&dsm=1&to_email="+$("to_email").value+"&mail_text="+escape($("mail_text").value);if($("allow_hrdl")&&$("allow_hrdl").checked==true){_11+=(typeof (emaillburladd)!="undefined"?emaillburladd:"");}if($("bill_to_customer")&&$("bill_to_customer").value.toString().length>0){_11+="&customer_id="+$("bill_to_customer").value;}if($("email_project")&&$("email_project").value.toString().length>0){_11+="&project="+$("email_project").value;}if($("email_notes")&&$("email_notes").value.toString().length>0){_11+="&notes="+$("email_notes").value;}if($("notify").checked==true){_11+="&notify=1";}if($("readonly").checked==true){_11+="&readonly=1";}ajax_TEXT(_10+"?"+_11,"GET");simplemessage("Sending your lightbox "+" <blink>.</blink>",0);}function lightbox_mod_act(_12){if(currentLbdivMode=="cart"){return false;}var _13=0;if(document.JSONobj&&document.JSONobj.getLbDat("lbname")){var _14=document.JSONobj.getLbDat("lbname");if(currentlbname==_14||!currentlbname){hidedisplaypanel(1);var _15=document.JSONobj.getLbDat("lblist");var lbl=document.JSONobj.getLbDat("lbnamelist");if(typeof (_15)!="array"&&typeof (_15)!="object"||!_15.length){_15=new Array(1);_15[0]={id:"1",rfcd:""};}document.currentlbstash=_15;currentlbname=_14;currentlblist=lbl;_13=0;lightbox_build(_15,_14,"",lbl);}else{_13=1;}}else{_13=1;}if(_13){setTimeout("lightbox_mod_act()",500);}}function simplemessage(m,_18,trg){if(trg&&$("LBdiv")){$("LBdiv").style.height="128px";$("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(!_18){setTimeout("hidedisplaypanel(1);",700);}}function lightbox_email(_1a){if(_1a=="sent"){simplemessage("Lightbox Sent!"+"<blink>.</blink>");}else{if(_1a=="close"){hidedisplaypanel(1);}else{var _1b={emaillbaddhtml:(typeof (emaillbaddhtml)!="undefined"?emaillbaddhtml:" "),currentlbname:currentlbname};center_panel(390,280,Templates.lightbox_email__body.evaluate(_1b));}}}function cart_mod_act(_1c){_1c++;if(!document.JSONobj&&!document.TEXTresp&&_1c<10){setTimeout("cart_mod_act('"+_1c+"')",500);}else{hidedisplaypanel(1);cart_build();if(document.currentLayer1Mode=="cartview"){cart_display("view");}}}function cart_reprice(_1d){if(typeof (_1d)=="undefined"){_1d=$H({callback:"cart_mod_act(0)"});}else{if(_1d.callback&&_1d.callback.toString().length>1){_1d.callback+=" cart_mod_act(0);";}else{_1d.callback="cart_mod_act(0)";}}ajax_JSON("/AjaxHandlers/CartReprice/all.json","POST",_1d);}function cart_addto(id,_1f){if(gsession&&gusername){if(document.JSONobj.getCartDat&&typeof (_1f)=="undefined"){for(var cti=0;cti<document.JSONobj.getCartDat("total");cti++){if(id==document.JSONobj.getCartDat("image_id",cti)){alert("That image is already in your Cart");return;}}}if(typeof (_1f)=="undefined"){_1f=$H({callback:"cart_mod_act(0)"});}else{if(_1f.callback&&_1f.callback.toString().length>1){_1f.callback+=" cart_mod_act(0);";}else{_1f.callback="cart_mod_act(0)";}}document.TEXTresp=null;simplemessage("Adding image to Shopping Cart <blink>.</blink>","","LB");if(typeof (_1f)=="object"&&_1f.Size_opname){Object.extend(_1f,{calc_rate:1});}ajax_JSON("/AjaxHandlers/CartAdd/"+id+".json","POST",_1f);}else{window.location="/bin/Cklb?ref=/SwishSearch%3FKeywords%3D"+escape(ukeys)+"%26cartview%3D1&atct="+id;}}function cart_delete_license(id,_22){if(typeof (_22)!="object"){return;}simplemessage("Removing License from Image<blink>.</blink>","","LB");var _23=$A(_22.opts).join("|");if(_23.toString().length){_22.opts=_23;}if(_22.callback&&_22.callback.toString().length>1){_22.callback+=" cart_mod_act(0);";}else{_22.callback="cart_mod_act(0)";}ajax_JSON("/AjaxHandlers/CartDelLicense/"+id+".json","POST",_22);}function cart_delete_image(id){simplemessage("Deleting image from Shopping Cart <blink>.</blink>","","LB");ajax_JSON("/AjaxHandlers/CartDel/"+id+".json","POST","callback=cart_mod_act(0)");}function lightbox_add2cart(){simplemessage("Adding lightbox images to Shopping Cart <blink>.</blink>","","LB");ajax_JSON("/AjaxHandlers/CartLbAdd/0000000000.json","POST","callback=cart_mod_act(0)");}function lightbox_delete(){simplemessage("Deleting your current lightbox "+currentlbname,"","LB");var _25=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var lbs=make_lightbox_string(gusername,currentlbname);currentlbname="";ajax_JSON("/AjaxHandlers/LightboxDelete/"+lbs+".json",getpost,_25);}function lightbox_rename(){var _27={currentlbname:currentlbname};center_panel(290,200,Templates.lightbox_rename__body.evaluate(_27));}function lightbox_rename_send(){var _28=$F("lightbox_new_name");if(_28.length==0||_28.length>100){alert("Lightbox names must be between 1 and 100 characters long.");_28="";}else{if(test_valid_name(_28)){simplemessage("renaming your lightbox "+_28+" <blink>.</blink>","LB");var _29=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var lbs=make_lightbox_string(gusername,currentlbname,_28);ajax_JSON("/AjaxHandlers/LightboxRename/"+lbs+".json",getpost,_29);currentlbname=_28;}}}function lightbox_change(_2b){polllb();currentlbname=_2b;simplemessage("Changing to Lightbox: "+_2b+"<blink>.</blink>","","LB");var lbs=make_lightbox_string(gusername,_2b);ajax_JSON("/AjaxHandlers/LightboxInfo/"+lbs+".json",getpost,null);}function lightbox_addto(id){if(gsession&&gusername){var _2e=(typeof (document.currentlbstash)=="object"?1:0);var _2f=(_2e?document.currentlbstash.pluck("id").join(" "):"");if(_2f.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 _30=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var lbs=make_lightbox_string(gusername,currentlbname,id);ajax_JSON("/AjaxHandlers/LightboxAddTo/"+lbs+".json",getpost,_30);if(_2e){lightbox_build(document.currentlbstash);}}}else{self.location="/bin/Cklb?ref=/SwishSearch%3F"+escape(pre_q_args)+"&atlb="+id;}}function lightbox_delete_image_enl(_32,_33){var _34;var _35="";var _36=gusername;if(typeof (mobject_id)!="undefined"&&mobject_id!=""){var _37=new Array;_37=mobject_id.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);_34=_37[3];_36=_37[2];_35=mobject_id;}else{if(typeof (pagetype)!="undefined"&&pagetype=="lb"){_34=dsplkys;}else{if(typeof (q_args)=="undefined"||!q_args.match(/rid=/)){return;}}}if(document.thisIsFeatureView&&typeof (feat_requestview)!="undefined"){ajax_TEXT("/R?del_id="+_32+"&rid="+feat_requestview,"GET",null);}else{ajax_TEXT("/bin/CreateLightbox?delid="+_32+"&vmo="+_35+"&uname="+_36+"&lbname="+_34,"GET",null);}for(var tt=0;tt<id.length;tt++){if(id[tt]==_32){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 _39=$H({showstart:showstartnumber_trap+1,snum:showstartnumber_trap,viewmode:"lb",buildmode:"",resized:""}).toJSON();dispatchAll(_39);}}if(_34==currentlbname&&(typeof (_33=="undefined")||_33!=1)&&(typeof (pre_q_args)!="undefined"&&!(pre_q_args.match(/vmo=|vmo%3D/)))){lightbox_delete_image(_32,1);}}function lightbox_delete_image(_3a,_3b){var nlb=new Array();var _3d="";var _3e="";for(var _3f=0;_3f<document.currentlbstash.length;_3f++){if(document.currentlbstash[_3f].id==_3a){var _40=_3f;if(typeof (mobject_id)!="undefined"&&mobject_id!=""){var _41=new Array;_41=mobject_id.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);_3d=_41[3];}else{if(typeof (pagetype)!="undefined"&&pagetype=="lb"){_3d=dsplkys;}}}else{nlb.push(document.currentlbstash[_3f]);}}document.currentlbstash=nlb;if(_3d&&_3d!=""&&_3d==currentlbname&&_3b!=1){lightbox_delete_image_enl(_3a,1);}if(typeof (document.currentlbstash)!="undefined"&&document.currentlbstash.length==0){lightbox_delete();}else{var _42=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var lbs=make_lightbox_string(gusername,currentlbname,_3a);ajax_JSON("/AjaxHandlers/LightboxDelFrom/"+lbs+".json",getpost,_42);lightbox_build(document.currentlbstash);}}function lightbox_build(_44,_45,_46,lbl){if(cartview&&carnit){carnit=0;document.currentlbstash=_44;cart_build("changing");cart_display();return;}hidedisplaypanel(1);if(typeof (_44)!="object"&&typeof (document.currentlbstash)=="undefined"){return;}else{if(typeof (document.currentlbstash)=="object"&&typeof (_44)!="object"){_44=document.currentlbstash;}}currentLbdivMode="lightbox";if(_45){currentlbname=_45;}if(lbl){currentlblist=lbl.split("|");}if(_46){scr=_46;}var _48=Position.cumulativeOffset($("LBdiv"));var _49=winH-_48[1]-18;document.currentlbstash=_44;if($("LBdiv")){var _4a=$A([]);_4a.push(Builder.node("div",{id:"lbbuttons"},[Builder.node("table",{cellspacing:0,cellpadding:0,width:"100%",height:"20"},[Builder.node("tbody",[Builder.node("tr",[Builder.node("td",[Builder.node("a",{href:"",onclick:"cart_build('changing'); return false;",title:"SWITCH TO YOUR CART"},[Builder.node("img",{src:"/graphics/lightbox_enabled_02.gif",border:0,hspace:0,vspace:0})])]),Builder.node("td",{align:"right"},[Builder.node("div",{"style":"padding:0 16px 4px 0"},[Builder.node("a",{href:"",onclick:"cart_build('changing'); return false;",title:"Switch to your cart"},[Builder.node("img",{border:0,src:"/graphics/tab_vc_off.gif"})])])])])])])]));var _4b=$A([]);if(currentlblist&&currentlblist.length>0){var _4c=0;$A(_44).each(function(_4d){if(_4d.id==1){_4c=1;}});var _4e=(_4c?(_44.length-1):_44.length);_4b.push(Builder.node("b",{},""));var _4f=document.createElement("select");_4f.setAttribute("name","n");_4f.setAttribute("id","lightbox_menu");_4f.setAttribute("class","smallmenu");_4f.onchange=function(){lightbox_change(this.options[this.selectedIndex].value);};for(var i=0;i<currentlblist.length;i++){if(currentlblist[i]!=""){var _51;_51=document.createElement("option");_51.setAttribute("value",currentlblist[i]);_51.appendChild(document.createTextNode(currentlblist[i].substring(0,25)+(currentlblist[i].length>25?"...":"")));if(currentlblist[i]==currentlbname){_51.setAttribute("selected","selected");}_4f.appendChild(_51);}}_4b.push(_4f);_4b.push(Builder.node("b",{},"("+_4e+") "));}var _52="";var _53="";var _54="";var _55="";var _56="";var _57="";var _58="";var _59="";if(1==0){_52="Make new lightbox";_53="View expanded lightbox";_54="Email lightbox";_55="Add Lightbox to Cart";_56="Delete Lightbox";_57="Rename Lightbox";_58="Make LB a Feature";_59="Copy LB to User";tlb9="Resort LB";}else{_52="New";_53="View";_54="Email";_55="Add to Cart";_56="Delete";_57="Rename";_58="ADMIN: Make Feature";_59="Copy";tlb9="Sort";}_4b.push(Builder.node("a",{"href":"","class":"lblink","onclick":"lightbox_new(); return false;"},_52)," | ",Builder.node("a",{"href":"","onclick":"var d = new Date(); d.setMinutes(d.getMinutes()+5); gsetCookie('gprewhichstartpage', showstartnumber_trap, d, '/', gGetCookieDom()); toplightboxrefresh(); return false;","class":"lblink"},_53)," | ",Builder.node("a",{"href":"","class":"lblink","onclick":"lightbox_email(); return false;"},_54)," | ",Builder.node("a",{"href":"","class":"lblink","onclick":"lightbox_add2cart(); return false;"},_55)," | ",Builder.node("a",{"href":"","class":"lblink","onclick":"lightbox_delete(); return false;"},_56)," | ",Builder.node("a",{"href":"","class":"lblink","onclick":"lightbox_rename(); return false;"},_57));if(typeof (makelightboxfeature)!="undefined"){_4b.push(" | ",Builder.node("a",{"href":"","class":"lblink","onclick":"launchwin('"+makelightboxfeature+currentlbname+"', 'make feature', 500, 400, 100, 100); return false;"},_58));}if(typeof (copylightboxtouser)!="undefined"){_4b.push(" | ",Builder.node("a",{href:"","class":"lblink","onclick":"launchwin('"+copylightboxtouser+"', 'copy_lightbox', 300, 300, 300, 400); return false;"},_59));}if(typeof (enlargedlbsort)!="undefined"){_4b.push(" | ",Builder.node("a",{href:"","class":"lblink","onclick":"if(pagetype=='lb') { center_panel(390,120, '<div style=\"background:#FFF;height:120px;font-size:11pt;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));}if(viewmode=="editing"){_4b.push(" | ",Builder.node("a",{"href":"","class":"lblink","onclick":"showhideLB(); return false;",style:"cursor:pointer"},"[+|-]"));}var _5a="block";if(lbdisplaymode&&viewmode=="editing"){_5a="none";}_4a.push(Builder.node("div",{"id":"lblinks","class":"lbname lbscroll","style":"overflow: auto; overflow-y:hidden"},[Builder.node("nobr",{},_4b)]));var _5b=$A([]);var _5c=30;if(_44.length>0){if(_5a=="block"){_5c=130;}else{if(_5a=="none"){_5c=40;}}var _5d="hidden";var _5e=parseInt(winW/79);var _5f="100%";if(_5e<_44.length){_5d="scroll";_5f=79*_44.length;_5f=_5f+"px";}var _60=50;if(truevertHeight<340){vlim=25;}else{if(truevertHeight<450){vlim=35;}else{vlim=58;}}for(lbi=0;lbi<_44.length;lbi++){if(_44[lbi].id==""){continue;}lbid=_44[lbi].id;if((lbid==1&&_44.length<2)||lbid!=1){var _61={"className":"lblink","title":"Enlarge this image"};var _62={"id":"dlb"+lbi+"s_lbi"};if(_44[lbi].rfcd&&_44[lbi].rfcd.toString().length){var pm=unescape(_44[lbi].rfcd.toString()).match(/SwishSearch\?n\=1\&fn\=(.*)\&supst\=cd/);if(pm!=null){var _64=pm[1];_61.href="/SwishSearch?n=1&fn="+_64+"&supst=cd";_62.href="/SwishSearch?n=1&fn="+_64+"&supst=cd";_62.onclick=function(){true;};}}else{_61.href="";_61["onclick"]="hp(); enlarge2('"+lbid+"','"+lbi+"'); return false;";_62.href="";_62.onclick="if (suspendpreviews==0) { hp(); enlarge2('"+lbid+"', '"+lbi+"'); } return false;";}var _65=(lbid!=1?Builder.node("div",{"id":"siconlbdeletesmall65","style":"padding-left: 1px; padding-right: 1px; padding-bottom:6px;"},[Builder.node("a",{"onclick":"lightbox_delete_image('"+lbid+"'); return false;",className:"lblink","title":"Remove this image from the lightbox"},[]),]):"");if(lbid=="1"){lbid="1a";}_5b.push(Builder.node("div",{"id":"dlb_"+lbi,"name":"dlb_"+lbi,"style":"float:left; height:"+(_60+18)+"px; overflow:hidden","align":"center"},[Builder.node("a",_62,[Builder.node("img",{"id":"dlb_"+lbid,"onmouseover":"prloadimg('"+lbid+"'); pmousedelta[1] = -180; sp(this, '"+lbid+"', '"+lbi+"','"+tset+"');",onmouseout:"hp(); pmousedelta[1] = -30;","src":"http://gdynx.ipnstock.com/"+dynimagesname+"/135/50/"+lbid+".JPG",border:0,height:_60,className:"lbimg","hspace":2})]),Builder.node("br"),_65]));}}}else{if(currentlbname){_5b.push(Builder.node("div",{"id":"dlb_0","name":"dlb_0","style":"float:left; height:"+(_60+18)+"px; overflow:hidden;","align":"center"},[Builder.node("a",{"href":"","onclick":"return false;","id":"dlb0s_lbi","onmouseover":"prloadimg('1'); sp(this, '1', '0','"+tset+"');","onmouseout":"hp();"},[Builder.node("img",{"src":"http://gdynx.ipnstock.com/"+dynimagesname+"/135/50/1a.JPG",border:0,height:_60,className:"lbimg","hspace":2})])]));}}_4a.push(Builder.node("div",{"class":"lbscroll","style":"position: relative; overflow:"+_5d+"; overflow-y:hidden; height:"+(_5c-45)+"px;"},[Builder.node("div",{"id":"LBimgdiv","style":"position:absolute; left:0; top:0; padding: 1px 0 0 13px; height:"+(_5c-30)+"px; width:"+_5f+"; display:"+_5a+";"},[_5b])]));$("LBdiv").replace("<div id=\"LBdiv\"></div>");$("LBdiv").innerHTML="";$("LBdiv").style.height=_5c+"px";_4a.each(function(_66){$("LBdiv").appendChild(_66);});if(lbdisplaymode==1&&viewmode=="editing"){$("LBimgdiv").hidden=1;}}lightbox_built=1;return;}function showhideLB(){if($("LBimgdiv").hidden==1){$("LBimgdiv").style.display="block";$("LBdiv").style.height="130px";$("LBimgdiv").hidden=0;gsetCookie("ghidelightbox","","","/",gGetCookieDom());}else{$("LBimgdiv").style.display="none";$("LBdiv").style.height="40px";$("LBimgdiv").hidden=1;gsetCookie("ghidelightbox","1","","/",gGetCookieDom());}currentpage();}function polllb(_67,_68){var lbs=make_lightbox_string(gusername,currentlbname,(typeof (document.currentlbstash)!="undefined"?document.currentlbstash:1));var _6a=((typeof (mobject_id)!="undefined"&&mobject_id!="")?"mob="+mobject_id:"");var _6b=getpost;if(typeof (document.currentlbstash)=="object"&&document.currentlbstash.length>50){var _6c=document.currentlbstash.pluck("id").reverse().join("|");if(_6a){_6a+="&";}_6a+="payload="+_6c;_6b="POST";}ajax_JSON("/AjaxHandlers/LightboxSave/"+lbs+".json",_6b,_6a);}function make_lightbox_string(_6d,_6e,_6f){var _70="";if(typeof (_6f)=="object"){_70=_6f.pluck("id");}else{_70=[_6f];}_70=_70.reverse();var _71=_70.join("|");if(_71&&_70.length>50){_71="";}var _72=_6d+"|||"+_6e+(_71?"||"+_71:"");return _72;}function make_share_control_string(id,_74){if(typeof id==="object"&&id.length){id=id.join("|");}var _75=id+"|||"+_74;return _75;}function cart_away(){top.location="/bin/Cart?op=ckout";}function cart_check(){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 _76=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)){_76=0;}}else{_76=0;}}}else{_76=0;}if(_76==1){cart_away();}else{alert("There are unlicensed images in your cart, or it is empty.  To license image(s) first click the 'specify usage and calculate fee' link for each image in your cart and use the Rate calculator. Rates vary based on usage.");topcartrefresh();}}}function cart_display(_77){if(document.cart_display_lock){return;}var _78=$H({showstart:"cartview",snum:firstpictureonpage,viewmode:"cartview",flp:_77}).toJSON();if(_77){dispatchAll(_78);}else{try{YAHOO.util.History.navigate("nav",_78);}catch(e){dispatchAll(_78);}}}function dispatchCart_display(_79){if(typeof (_79)!="object"){return;}var _7a=_79["flp"];document.cart_display_lock=1;document.currentLayer1Mode="cartview";if($("cdheader")){$("cdheader").style.display="none";}if(!_7a){_7a="view";}ajax_HTML("Layer1","/bin/Cart?op="+_7a,"GET");$("Layer1").style.overflow="scroll";$("Layer1").style.overflowX="hidden";if($("pagingrow")&&document.currentLayer1Mode!="searchresults"){$("pagingrow").innerHTML="";}document.cart_display_lock=0;}function cart_build(_7b){currentLbdivMode="cart";$("LBdiv").style.height="130px";if(_7b=="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","POST",{"callback":"cart_build_act()"});currMousedOverObj="shop_cart";}function cart_build_act(){if(!$("LBdiv")){return;}if(!isNaN(document.JSONobj.getCartDat("total"))){hidedisplaypanel(1);var _7c=$A([]);var _7d=document.JSONobj.getCartDat("total");handleBuilder();_7c.push(Builder.node("div",{id:"lbbuttons"},[Builder.node("table",{cellspacing:0,cellpadding:0,width:"100%",height:"20"},[Builder.node("tbody",[Builder.node("tr",[Builder.node("td",[Builder.node("a",{href:"",onclick:"lightbox_build('changing'); return false;",title:"SWITCH TO YOUR CART"},[Builder.node("img",{src:"/graphics/cart_enabled_02.gif",border:0,hspace:0,vspace:0})])]),Builder.node("td",{align:"right"},[Builder.node("div",{"style":"padding:0 16px 4px 0"},[Builder.node("a",{href:"",onclick:"cart_build('changing'); return false;",title:"Switch to your cart"},[Builder.node("img",{border:0,src:"/graphics/tab_vc_off.gif"})])])])])])])]),Builder.node("div",{"id":"cartlinks","class":"lbname","style":"overflow: auto; overflow-y:hidden;"},[Builder.node("b",{},"Shopping Cart  "+(_7d?_7d:0)+" images "),nodeTree.cart_build_act__actions]));if(document.JSONobj.getCartDat("total")>0){var _7e=parseInt((winW*0.65)/document.JSONobj.getCartDat("total"));if(winH<340){vlim=45;}else{if(winH<450){vlim=50;}else{vlim=58;}}if(_7e>vlim){_7e=vlim;}else{if(_7e<18){_7e=18;}}var _7f=$A([]);for(cti=0;cti<document.JSONobj.getCartDat("total");cti++){ctimid=document.JSONobj.getImgDat("id",cti);ctid=document.JSONobj.getCartDat("id",cti);_7f.push(Builder.node("div",{align:"center",id:"dct"+cti+"s",name:"dct"+cti+"s","style":"float:left; height:"+(_7e+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://gdynx.ipnstock.com/"+dynimagesname+"/135/50/"+ctimid+".JPG",height:_7e,border:0,"className":"lbimg",hspace:2})]),Builder.node("div",{"id":"siconlbdeletesmall65","style":"padding:0px;clear:both"},[Builder.node("a",{href:"",onclick:"cart_delete_image(\""+ctid+"\"); return false;",title:"Remove this image from the cart"},[])])]));}_7c.push(Builder.node("div",{"className":"lbscroll","style":"position: relative; overflow: hidden; overflow-y:hidden; height: 82px;"},[Builder.node("div",{"id":"LBimgdiv","style":"position:absolute; left:0; top:-3px; padding: 0;padding-left: 13px;"},[_7f,Builder.node("BR",{"style":"clear:both"})])]));var _80=new Date();_80.setTime(_80.getTime()+(60*24*60*60*1000));gsetCookie("gcartimages",cti,_80,"/",gGetCookieDom());}$("LBdiv").replace("<DIV id=\"LBdiv\"></DIV>");$("LBdiv").innerHTML="";$("LBdiv").style.height="137px";_7c.each(function(_81){$("LBdiv").appendChild(_81);});}}function gfixDate(_82){var _83=new Date(0);var _84=_83.getTime();if(_84>0){_82.setTime(_82.getTime()-_84);}}function g(){var _85=$F("Keywords");var _86;if($("Username")){_86=$F("Username");}pagetype="search";var _87="";var _88="";if($("displaypanellayer").style&&$("displaypanellayer").style.visibility=="visible"){var _89=new Array();for(var i=0;i<$("displaypanel").photographers.length;i++){if($("displaypanel").photographers.options[i].selected){_89.push($("displaypanel").photographers.options[i].value);}}if(_89.length){_88+="&photoginclude="+_89.join("||");if(_85=="Keyword or image number(s)"){_85="BlendImages&sort=orig_iddesc";}}if(typeof (q_args)!="undefined"&&q_args){_87=q_args.match(/Keywords=(.*?)(\&|$)/);if(typeof (_87)!="undefined"&&_87&&_87.length>1){_87=_87[1];}else{_87="";}_87=unescape(_87);}}if(typeof (photogcodes)=="undefined"&&(_85.length<1||_85=="Keyword or image number(s)")&&_87.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(_87.length>0&&(_85.length<1||_85=="Keyword or image number(s)")&&_88.length==0){_85=_87;$("Keywords").value=_85;}if((EAD("share_control_sphotog")||EAD("share_control_status")||EAD("share_control_view")||EAD("share_control_release"))&&_85=="Keyword or image number(s)"){_85="";}var _8b="";if($("method")&&typeof ($("method").value)!="undefined"&&$("method").value=="within"){_8b="/SwishSearch?Keywords="+q_id+"&ex_keys="+_85;}else{_8b="/SwishSearch?Keywords="+_85;}if($("displaypanel")){if(typeof (suspendWithPeople)=="undefined"&&$("displaypanel").people){if($("displaypanel").people[1].checked==true){_8b+="+haspeople";}if($("displaypanel").people[2].checked==true){_8b+="+nobody";}if($("displaypanel").people[3]&&$("displaypanel").people[3].checked==true){_8b+="+hascrowd";}}if($("displaypanel").custom){$A($("displaypanel").custom).each(function(itm){_8b+="+"+itm.value;});}if($("displaypanel").outline){if($("displaypanel").outline[0].checked==true){_8b+="+outlinable";}else{if($("displaypanel").outline[1].checked==true){_8b+="+not+outlinable";}}}if(typeof (suspendYesNoRestrictons)=="undefined"&&$("displaypanel").restrictions){if($("displaypanel").restrictions[1].checked==true){_8b+="+NOT+imagehasrestrictions";}}if(_88.length>5){_8b+=_88;}if($("displaypanel").xtrasql&&$("displaypanel").xtrasql[1].checked==true){_8b+="&xtrasql=(releasedmodel+or+releasedproperty+or+releasednotapplicable+or+releasedmodelandproperty)";}var _8d=1;$A($("displaypanel").orient).each(function(itm){if(!itm.checked){_8d=0;}});if(!_8d){if($("displaypanel").orient[0].checked==true){_8b+="&orient=horizontal";}if($("displaypanel").orient[1].checked==true){_8b+="&orient=vertical";}if($("displaypanel").orient[2].checked==true){_8b+="&orient=square";}}if($("displaypanel").rmrftype){if($("displaypanel").rmrftype[0].checked==true&&($("displaypanel").rmrftype[1].checked==false)){_8b+="&searchinclude=RF";}if($("displaypanel").rmrftype[1].checked==true&&($("displaypanel").rmrftype[0].checked==false)){_8b+="&searchinclude=RM";}}if($("displaypanel").color){if($("displaypanel").color[1].checked==true){_8b+="&color=color";}if($("displaypanel").color[2].checked==true){_8b+="&color=gray";}}if(typeof (showIllusPhotog)!="undefined"){if($("displaypanel").searchinclude[0].checked==true&&$("displaypanel").searchinclude[1].checked==false){_8b+="&searchinclude=illustration";}if($("displaypanel").searchinclude[1].checked==true&&$("displaypanel").searchinclude[0].checked==false){_8b+="&searchinclude=photography";}}}if($("spec_idx")){if($("spec_idx").selectedIndex==1){_8b+="&spec_idx=ed";}if($("spec_idx").selectedIndex==2){_8b+="&spec_idx=ne";}}if(EAD("share_control_sphotog")){_8b+="&site="+$F("share_control_sphotog");}if(EAD("share_control_status")){_8b+="&status_view="+$F("share_control_status");}if(EAD("share_control_view")){_8b+="&view="+$F("share_control_view");}if(EAD("share_control_release")){_8b+="&release_view="+$F("share_control_release");}if(_86&&_86!=""){_8b+="&Username="+encodeURI(_86);}gsetCookie("gwhichstartpage","","","/",gGetCookieDom());if(_85!="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 "+_85+" <blink>.</blink></font></B></TD></TR></TABLE>");self.location=_8b;}else{alert("You must first type in keywords to search for.");document.risn.Keywords.focus();}}}function gwhichindex(_8f){gsetCookie("gwhichindex",_8f,"","/",gGetCookieDom());}function fsearchprefs(val,_91){var _92=ggetCookie("gsearchprefs");if(_92){}else{_92=new String(" ");}var _93=new String("");if(val=="released"&&_91=="remove"){}else{if((_92.indexOf("a")>=0)||(val=="released"&&_91=="add")){_93+="a";}}if(val=="norestrictions"&&_91=="remove"){}else{if((_92.indexOf("b")>=0)||(val=="norestrictions"&&_91=="add")){_93+="b";}}if(val=="people"&&_91=="remove"){}else{if(((_92.indexOf("c")>=0)&&(val!="withpeople")&&(val!="withcrowd"))||(val=="nobody"&&_91=="add")){_93+="c";}else{if(((_92.indexOf("d")>=0)&&(val!="withcrowd"))||(val=="withpeople"&&_91=="add")){_93+="d";}else{if((_92.indexOf("e")>=0)||(val=="withcrowd"&&_91=="add")){_93+="e";}}}}if(document.displaypanel.orient){if(document.displaypanel.orient[0]&&document.displaypanel.orient[0].checked==true){_93+="f";}if(document.displaypanel.orient[1]&&document.displaypanel.orient[1].checked==true){_93+="g";}if(document.displaypanel.orient[2]&&document.displaypanel.orient[2].checked==true){_93+="i";}}if(document.displaypanel.rmrftype){if(document.displaypanel.rmrftype[0]&&document.displaypanel.rmrftype[0].checked==true&&(document.displaypanel.rmrftype[1].checked==false)){_93+="k";}if(document.displaypanel.rmrftype[1]&&document.displaypanel.rmrftype[1].checked==true&&(document.displaypanel.rmrftype[0].checked==false)){_93+="j";}}if(document.displaypanel.rmrftype[0]&&document.displaypanel.rmrftype[0].checked&&document.displaypanel.rmrftype[1]&&document.displaypanel.rmrftype[1].checked){_93+="kj";}if(document.displaypanel.color){if(document.displaypanel.color[0].checked==true){_93+="m";}if(document.displaypanel.color[1].checked==true){_93+="n";}if(document.displaypanel.color[2].checked==true){_93+="o";}}if(typeof (showIllusPhotog)!="undefined"){if(document.displaypanel.searchinclude[0].checked==true){_93+="0";}if(document.displaypanel.searchinclude[1].checked==true){_93+="1";}}gsetCookie("gsearchprefs",_93,"","/",gGetCookieDom());}function htmlit(){}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 switch_share_control(_97){var _98=ggetCookie(gusername+"sc_on");if(!_98||_97){viewmode="editing";_98=1;}else{viewmode="";_98="";}gsetCookie("gviewmode",viewmode,"","/",gGetCookieDom());gsetCookie(gusername+"sc_on",_98,"","/",gGetCookieDom());if(!_97){var s=self.location.href;self.location.href=s.replace(/\&sc_boot\=1/g,"");}}function EAD(_9a){if($(_9a)&&$F(_9a)&&!$F(_9a).match(/^\-\- .* \-\-$/)){return true;}else{return false;}}function sos(dex,_9c){if(!_9c||_9c=="share"){var _9d=$F("sharecontrol"+dex);ajax_JSON("/AjaxHandlers/ShareSetShare/"+make_share_control_string(id[dex],_9d)+".json",getpost,"");}if(!_9c||_9c=="weight"){var _9e=$F("weightcontrol"+dex);ajax_JSON("/AjaxHandlers/ShareSetWeight/"+make_share_control_string(id[dex],_9e)+".json",getpost,"");}if($("cellwrapper"+dex)){$("cellwrapper"+dex).style.backgroundColor="orange";}}function sor(dex){var _a0=$A();$A($("releasecontrol"+dex)).each(function(itm){if(itm.checked){_a0.push(itm.value);}});_a0=_a0.join("|");ajax_JSON("/AjaxHandlers/ShareSetRelease/"+make_share_control_string(id[dex],_a0)+".json",getpost,"");if($("cellwrapper"+dex)){$("cellwrapper"+dex).style.backgroundColor="orange";}}function validaterad(_a2){if(!$(_a2)&&!$F(_a2)){return;}var _a3=_a2.name;_a3=_a3.replace(/(cocon|shcon)/,"");var pix=$F(_a2);var dex=$F($(_a2).form.dexer);var brd="white";var _a7="pending";if(pix=="n"||pix=="r"||pix.match(/^(notshared|rejected)/)){if(pix=="n"||pix=="notshared"){_a7="notshared";}else{_a7="rejected";}brd="#DF0000";}else{if(!isNaN(pix)||pix=="a"||pix.match(/^shared/)){_a7="shared";brd="#77BB33";}else{if(pix.match(/^hold/)){_a7="hold";}}}if($("d"+_a3)){$("d"+_a3).style.background=brd;}var _a8=unescape(shsync[dex]);_a8=_a8.split("|");shsync[dex]=escape(_a7+"|"+_a8[1]);var _a9="";if(_a2.name.match(/shcon/)){_a9="ShareSetShare";}else{_a9="ShareSetCombined";}ajax_JSON("/AjaxHandlers/"+_a9+"/"+make_share_control_string(_a3,pix)+".json",getpost,"");}function init_share_radios(){for(var cnt=showstartnumber_trap;cnt<endnumber;cnt++){var _ab=unescape(shsync[cnt]);_ab=_ab.split("|");var _ac=_ab[0]+$F("share_control_view")+$F("share_control_home_sphotog");var _ad="";if(typeof (cocon)=="object"&&cocon[0]){_ad=_ab[0].toString().substring(0,1);}var _ae=$("shf"+id[cnt]);if(_ae){$A(_ae.elements).each(function(rad){if(rad.value==_ac){rad.checked=true;}else{if(_ad&&(rad.value==_ad||(_ad=="s"&&rad.value.match(/^[a1-4]$/)))){rad.checked=true;}else{rad.checked=false;}}});}}}function share_set_page(_b0){if(_b0==""){return;}var _b1=$A();var _b2=_b0+$F("share_control_view")+$F("share_control_home_sphotog");var _b3="";if(typeof (cocon)=="object"&&cocon[0]){_b3=_b0.toString().substring(0,1);}for(var cnt=showstartnumber_trap;cnt<endnumber;cnt++){if(id[cnt]){_b1.push(id[cnt]);if(_b0.match(/pending|hold/)){$("d"+id[cnt]).style.background="white";}else{if(_b0.match(/notshared|rejected/)){$("d"+id[cnt]).style.background="#DF0000";}else{if(_b0.match(/^shared/)){$("d"+id[cnt]).style.background="#77BB33";}}}var _b5=$("shf"+id[cnt]);if(_b5){$A(_b5.elements).each(function(rad){if(rad.value==_b2){rad.checked=true;}else{if(_b3&&(rad.value==_b3||(_b3=="s"&&rad.value.match(/^[a1-4]$/)))){rad.checked=true;}else{rad.checked=false;}}});}var _b7=unescape(shsync[cnt]);_b7=_b7.split("|");shsync[cnt]=escape(_b0+"|"+_b7[1]);}}ajax_JSON("/AjaxHandlers/ShareSetShare/"+make_share_control_string(_b1,_b2)+".json",getpost,"");return false;}function validatechx(_b8){var cc=0;var _ba="";$A(_b8.form.elements).each(function(chx){if(chx.checked){cc++;_ba=chx.value;}});if(cc>1){var _bc=new Object;if(_b8.form.elements["MODEL RELEASED"].checked&&_b8.form.elements["PROPERTY RELEASED"].checked&&_b8.name.toString().match(/(MODEL|PROPERTY) RELEASED/)){_bc["MODEL RELEASED"]=1;_bc["PROPERTY RELEASED"]=1;_ba="MODEL AND PROPERTY RELEASED";}else{_bc[_b8.name]=1;_ba=_b8.name;}$A(_b8.form.elements).each(function(chx){if(chx.checked&&_bc[chx.value]!=1){chx.checked=false;}});}if($("shortrel"+_b8.form.shdex.value)){var _be=_ba;_be=_be.substring(0,16)+(_ba.length>16?"...":"");$("shortrel"+_b8.form.shdex.value).innerHTML="Release: "+_be;}}function enlarge2(_bf,_c0,_c1,_c2){var _c3=$H({ssid:_bf,ssdex:_c0,fimg:_c1,nc:_c2,showstart:"ss",snum:firstpictureonpage,viewmode:"ss"}).toJSON();try{YAHOO.util.History.navigate("nav",_c3);}catch(e){dispatchAll(_c3);}}function dispatchEnlarge2(_c4){if(typeof (_c4)!="object"){return;}var _c5=_c4["ssid"];var _c6=_c4["ssdex"];var _c7=_c4["fimg"];var _c8=_c4["nc"];var _c9=document.currentLayer1Mode;document.currentLayer1Mode="enlarge";var url="/AjaxHandlers/ImageInfo/"+(_c7?_c7:_c5)+".json";var drk="";if(_c8){drk="&drk="+Math.random(10);}ajax_JSON(url,getpost,"callback=enlarge2_act('"+_c5+"','"+_c6+"','"+(_c7?_c7:"")+"','"+_c9+"')"+drk);}function enlarge2_act__generateTierRows(_cc,_cd,_ce,_cf){var _d0="";if(_cd=="RF"){var _d1="";$A(_cc.tierinfo).each(function(_d2){Object.extend(_d2,{enlargetid:_cc.image_id,usage:_d2.subof,img_id:_ce,encount:(_cf?_cf:"''")});_d1+=Templates.tieredimgpricing__rfslug_row.evaluate(_d2);});_d0=Templates.tieredimgpricing__rfslug.evaluate({"rows":_d1});}else{if(_cd=="RR"){var _d3="";$A(_cc.tierinfo).each(function(_d4){Object.extend(_d4,{enlargetid:_cc.image_id,usage:_d4.subof,img_id:_ce,encount:(_cf?_cf:"''")});if(_d4.opt_selected==1){_d4.removebutton=Templates.tieredimgpricing__rrslug_row_removebutton.evaluate(_d4);}_d3+=Templates.tieredimgpricing__rrslug_row.evaluate(_d4);});_d0=Templates.tieredimgpricing__rrslug.evaluate({"rows":_d3});}}return _d0;}function enlarge2_act(_d5,_d6,_d7,_d8){_d7=(_d7=="undefined"?"":_d7);hp();setuppagesize();$("Layer1").style.height=truevertHeight+100+"px";var _d9=0;if(id[_d6]==document.JSONobj.getImgDat("id")){_d9=1;}if(_d9||(document.ajaxLoaded&&(_d5.match(document.JSONobj.getImgDat("id"))))){if(typeof (viewmode)!="undefined"&&viewmode=="ss"){gsetCookie("gcurrentview","","","/",gGetCookieDom());}if($("cdheader")){$("cdheader").style.display="none";}if((!document.thisIsFeatureView&&_d9&&st[_d6]&&st[_d6].length>13)||overflowtype=="hidden"){suspendtrap=1;}gSetBackpage();if(firstpictureonpage){gsetCookie("gwhichstartpage",firstpictureonpage,"","/",gGetCookieDom());}var _da;var _db=document.JSONobj.getImgDat("short_caption");_db=(_db?_db:" ");var _dc=document.JSONobj.getImgDat("long_caption");_dc=(_dc?_dc:" ");if(typeof (uselongcaption)!="undefined"&&_dc!=" "){if(uselongcaption=="useboth"){if(_db==" "){_da=_db;}else{_da="<span id=\"enlarge_short_caption\">"+_db+" <a href=\"\" onclick=\"$('enlarge_short_caption').style.display='none'; $('enlarge_long_caption').style.display='inline'; return false;\">more&nbsp;&gt;&gt;</a></span><span style=\"display:none\" id=\"enlarge_long_caption\">"+_dc+"  <a href=\"\" onclick=\"$('enlarge_long_caption').style.display='none'; $('enlarge_short_caption').style.display='inline'; return false;\">&lt;&lt;&nbsp;less</a></span>";}}else{_da=_dc;}}else{_da=_db;}var _dd=(_d9&&o[_d6]?o[_d6]:document.JSONobj.getImgDat("orig_id"));var _de=(_d9&&cs[_d6]?cs[_d6]:document.JSONobj.getImgDat("comp_link"));var _df=document.JSONobj.getImgDat("rmrftype");var _e0=document.JSONobj.getImgDat("tieredimgpricing");var _e1=enlarge2_act__generateTierRows(_e0,_df,_d5,_d6);var _e2=document.JSONobj.getImgDat("photographer")+((document.JSONobj.getImgDat("agent_name")&&document.JSONobj.getImgDat("agent_name")!="")?"/"+document.JSONobj.getImgDat("agent_name"):"");var _e3=(document.JSONobj.getImgDat("file_size")<5?"Scan on Demand":document.JSONobj.getImgDat("file_size")+" Mb");var _e4=document.JSONobj.getImgDat("released");var _e5=document.JSONobj.getImgDat("image_restrictions");var _e6=document.JSONobj.getImgDat("comp_allow");var _e7=(typeof (showdimensions)!="undefined"?document.JSONobj.getImgDat("dimensions"):"");if(_e7){var _e8=_e7.match(/^(\d+)x(\d+)$/);if(typeof (_e8)=="object"){_e7="<br/><b>Original Dimensions:</b>&nbsp;"+_e8[1]+"px&nbsp;x&nbsp;"+_e8[2]+"px";}}var _e9=parseInt(_d6)+1;var _ea=id[_e9];var _eb=parseInt(_d6)-1;var _ec=id[_eb];var _ed="";if((!document.thisIsFeatureView)&&_d9&&v[_d6]&&(v[_d6]=="H")){var _ee=+_d5.substring(0,2)+"/"+_d5.substring(0,5)+"/"+_d5;_ed+="<EMBED SRC=\"http://tools.cgibackgrounds.com/qtvideo/"+_ee+".MOV\" WIDTH=420 HEIGHT=280></EMBED>";}else{var _ef="0000000000";if(_d7){_ef=_d7;}else{_ef=_d5;}_ed+="<div style=\"z-index:2;position:absolute;top: 0px; left: 0px;\">"+"<img src=\"http://gdynx.ipnstock.com/"+dynimagesname+"/"+((typeof (localwatermark)!="undefined"&&!pngsupport)?"wm":"420")+"/60/"+_ef+".JPG\" border=0 style=\"display:inline; clear:none; border:1px solid grey;\" id=\""+_ef+"\"></a></div>"+((typeof (localwatermark)!="undefined"&&pngsupport)?"<div style=\"z-index:3;position:absolute;top: 0px; left: 0px;overflow: hidden;\"><IMG src="+localwatermark+" style=\"margin-top: -20px;\" border=0></div>":"");}var _f0="";if(!document.thisIsFeatureView&&_d9&&st[_d6]&&st[_d6].length>13){var _f1=st[_d6];var _f2=_f1.split(" ");var _f3=_f2[1].split(",");if(_f3.length>1){_f3=_f2[0]+" "+_f3.join(" ");_f2=_f3.split(" ");}var _f4=_f2.length;if(_f4>40){simheight=(70-_f4/2);}else{simheight=70-_f4;}var _f5="";for(var i=0;i<_f4;i++){_f5+="<span valign=bottom style=\"float:left;\">"+"<a href=\"javasc"+"ript:enlarge2('"+_d5+"'"+","+"'"+_d6+"','"+_f2[i]+"');\" TITLE=\"ID:"+_f2[i];if(showphotographer==1){_f5+="  \r&copy; "+_e2;}_f5+=" click image to view similar\"><img src=http://gdynx.ipnstock.com/"+dynimagesname+"/135/50/"+_f2[i]+".JPG border=0 vspace=2 hspace=2 height="+simheight+" align=left></a></span>";}_f0=Templates.enlarge2_act__similars.evaluate({simcolinfo:_f5});}var _f7="";var _f8="";var _f9="";if(_d8=="cartview"){_f9="<A HREF=\"\" onclick=\"document.currentLayer1Mode='cartview'; viewmode='"+viewmode+"';gsetCookie('gviewmode','"+viewmode+"', '', '/', gGetCookieDom());currentpage(); return false;\" class=\"orangelink\"><FONT style=\"font-size:9pt; font-family:Arial;\">&#8593;</font> BACK TO CART</A><BR><BR>";}else{if(document.thisIsFeatureView){_f9="<A HREF=\"\" onclick=\"document.currentLayer1Mode='searchresults'; viewmode='"+viewmode+"';gsetCookie('gviewmode','"+viewmode+"', '', '/', gGetCookieDom()); self.location = self.location; return false;\" class=\"orangelink\"><FONT style=\"font-size:9pt; font-family:Arial;\">&#8593;</font> BACK TO REQUEST RESULTS</A><BR><BR>";}else{_f9="<A HREF=\"\" onclick=\"document.currentLayer1Mode='searchresults'; viewmode='"+viewmode+"';gsetCookie('gviewmode','"+viewmode+"', '', '/', gGetCookieDom()); currentpage(); return false; \" class=\"orangelink\">Return to Search Results</A>";}}if(_d9){if(_d8!="cartview"){if((snum+_d6)>0){_f7="<A HREF=\"\" onclick=\"enlarge2('"+_ec+"','"+_eb+"'); return false;\" TITLE=\"GO TO THE PREVIOUS IMAGE\"><IMG SRC=/images/arrow_back.gif width=14 height=8 border=0></a>";}if((Number(snum)+Number(_d6)+1)<Number(total)){_f8="<A HREF=\"\" onclick=\"enlarge2('"+_ea+"','"+_e9+"'); return false;\" TITLE=\"GO TO THE NEXT IMAGE\"><IMG SRC=/images/arrow_next.gif width=12 height=8 border=0></A>";}}}var _fa="";if(_d7){_fa=_d7;}else{_fa=_d5;}var _fb="";if(_d8!="cartview"){if(gsession&&gusername&&_e6=="Y"){_fb="<tr><td><div id=\"siconcompsmall65\" style=\"margin-left: 3px;\"><a href=\"/bin/Comp/"+gusername+"/"+_de+"/"+_fa+".JPG\" TITLE=\"Download a comp image\"></a></div></td><td><div id=\"iconrighttextlink\"><a href=\"/bin/Comp/"+gusername+"/"+_de+"/"+_fa+".JPG\">DOWNLOAD COMP</a></div></td></tr>";}else{if(gsession){_fb="<tr><td><div id=\"siconcompsmall65\" style=\"margin-left: 3px;\"><a href=\"/bin/Comp/"+gusername+"/"+_de+"/"+_fa+".JPG\" TITLE=\"Download a comp image\"></a></div></td><td><div id=\"iconrighttextlink\"><a href=\"/bin/Comp/"+gusername+"/"+_de+"/"+_fa+".JPG\">DOWNLOAD COMP</a></div></td></tr>";}else{_fb="<tr><td><div id=\"siconcompsmall65\" style=\"margin-left: 3px;\"><a href=\"/bin/Comp/guest/"+_de+"/"+_fa+".JPG\" TITLE=\"Download a comp image\"></a></div></td><td><div id=\"iconrighttextlink\"><a href=\"/bin/Comp/guest/"+_de+"/"+_fa+".JPG\">DOWNLOAD COMP</a></div></td></tr>";}}}var _fc=(_e1?"<BR/><div id=\"enlargeratetiers\" class=\"enlargeratetiers\">"+_e1+"</div>":"");var _fd=(showrelease?"<b>Release:</b> "+_e4+"<br>":"");var _fe=(_df=="RM"?"<tr><td><div id=\"siconpricesmall65\" style=\"margin-left: 6px;\"><a href=\"#\" onclick=\"license('"+_fa+"'); return false;\"></div></td><td><div id=\"iconrighttextlink\"><a href=\"#\" onclick=\"license('"+_fa+"'); return false;\">CHECK USAGE RATES</a></div></td></tr>":"");var _ff=_e2;if(_e2.indexOf("/")>0){_ff=_ff.substring(0,_ff.indexOf("/"));}var _100=((_e2&&showphotographer)?"<b>Photographer:</b> <A href=\"/SwishSearch?Keywords="+_ff+"\" class=\"orangelink\">"+_e2+"</a><br>":"");var _101=((!_d7&&showfilesize)?"<b>File Size:</b> "+_e3:"");var _102=(_e5?"<BR/><span style=\"color:#990000\">"+_e5+"</span>":"");var _103=new Array();document.JSONobj.getKeywords().each(function(kwd){var _105=unescape(q_args);if(_105.match(/Keywords=[^\+\&]+\+/)){_105=_105.replace(/Keywords=[^\+]+\+/,"Keywords="+kwd+"+");}else{if(_105.match(/Keywords=[^\+\&]+\&/)){_105=_105.replace(/Keywords=[^\+\&]+\&/,"Keywords="+kwd+"&");}else{if(_105.match(/Keywords=[^\+\&]+$/)){_105=_105.replace(/Keywords=[^\+\&]+$/,"Keywords="+kwd);}else{_105=_105.replace(/((rid|\&rid)|(vmo|\&vmo)|(lb_view|\&lb_view)|(cartview|\&cartview))=[^\&]+/,"");_105="Keywords="+kwd+"&"+_105;_105=_105.replace(/\&+/,"&");}}}_105=_105.replace("&spec_idx=ne","");_103.push("<a class=\"keywordinfo\" href=\"/SwishSearch?"+_105+"&spec_idx=ne\">"+kwd+"</a>");});var _106=_103.join(", ");var _107=_dd;var _108=document.JSONobj.getImgDat("date_shot");var _109=unescape(document.JSONobj.getImgDat("rfcdObj")+" ");var _10a="";if(_109.toString().length>1){_109=_109.evalJSON();_10a=Templates.rfcd__cdimage_detail.evaluate(_109);}var _10b=$H({enlargetid:_fa,dateshot:_108,rfcdlinkslug:_10a,keywordinfo:_106,displayenlargetid:_107,restrictionsinfo:_102,rmpricelink:_fe,filesizeinfo:_101,photographerinfo:_100,releaseinfo:_fd,ratetierinfo:_fc,downloadcomplink:_fb,navenlargedlinksprev:_f7,navenlargedlinksnext:_f8,navbacklinks:_f9,similarscolumn:_f0,themediainsert:_ed,rmrftype:_df,myshortcaption:_da,dimensions:_e7});$("Layer1").style.overflow="auto";MM_setTextOfLayer("Layer1","",Templates.enlarge2_act__body.evaluate(_10b));MM_preloadImages("http://gdynx.ipnstock.com/"+dynimagesname+"/420/60/"+_ea+".JPG");}else{gsetCookie("gviewmode","ss","","/",gGetCookieDom());self.location=nextlink+"snum="+(Number(firstpictureonpage)+Number(snum));}}function writesearch(){panelheight=430;if(typeof (showIllusPhotog)!="undefined"){panelheight+=parseInt(showIllusPhotog);}gsearchprefs=ggetCookie("gsearchprefs");var _10c=" checked";var _10d=_10c;var _10e=_10d;var _10f=_10d;var _110="";var _111=_10d;var _112=_10d;var _113="";var _114="";var _115="";var _116=_10d;var _117="";var _118=_10d;var _119="";var _11a="";var rmc="checked";var rfc=rmc;var rrc=rmc;var _11e=" checked";var _11f=_11e;var _120=" selected";var _121="";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{_10c=" ";}if(gsearchprefs.indexOf("g")>=0){}else{_10d=" ";}if(gsearchprefs.indexOf("h")>=0){}else{_10f=" ";}if(gsearchprefs.indexOf("i")>=0){}else{_10e=" ";}}if(typeof (showIllusPhotog)!="undefined"){if(gsearchprefs.indexOf("1")<0&&gsearchprefs.indexOf("0")<0){}else{if(gsearchprefs.indexOf("1")<0){_11f=" ";}if(gsearchprefs.indexOf("0")<0){_11e=" ";}}}if(typeof (showSearchWithin)!="undefined"){if($("method")&&$F("method")=="within"){_120="";_121="selected";}else{_120="selected";_121="";}}if(gsearchprefs.indexOf("j")<0||gsearchprefs.indexOf("k")<0||gsearchprefs.indexOf("1")<0){if(gsearchprefs.indexOf("k")<=0){rfc="";}if(gsearchprefs.indexOf("j")<=0){rmc="";}if(gsearchprefs.indexOf("1")<=0){rrc="";}}if(gsearchprefs.indexOf("b")>=0){_111="";_110="checked";}if(gsearchprefs.indexOf("c")>=0||gsearchprefs.indexOf("d")>=0||gsearchprefs.indexOf("e")>=0){if(gsearchprefs.indexOf("c")>=0){_112="";_113="";_114="checked";_115="";}if(gsearchprefs.indexOf("d")>=0){_112="";_113="checked";_114="";_115="";}if(gsearchprefs.indexOf("e")>=0){_112="";_113="";_114="";_115="checked";}}if(gsearchprefs.indexOf("a")>=0){_117="checked";_116="";}if(gsearchprefs.indexOf("m")>=0||gsearchprefs.indexOf("n")>=0||gsearchprefs.indexOf("o")>=0){if(gsearchprefs.indexOf("m")>=0){_118="checked";_119="";_11a="";}if(gsearchprefs.indexOf("n")>=0){_118="";_119="checked";_11a="";}if(gsearchprefs.indexOf("o")>=0){_118="";_119="";_11a="checked";}}}var _122="<form action=\"javasc"+"ript:g(); return false;\" method=get name=displaypanel id=displaypanel>";_122+="<table cellspacing=0 cellpadding=10 border=0 width=100% height="+panelheight+">";_122+="<tr><td valign=top align=left style=\"background: #fff; height: 20px;\" colspan=2>";if(typeof (showSearchWithin)!="undefined"){_122+="<nobr>&nbsp;<select id=\"method\" name=\"method\" class=\"smallmenu\" style=\"height:18px; width: 120px;\"><option value=\"new\" "+_120+">New Search</option><option value=\"within\" "+_121+">Search Within Results</option></select></nobr><br/>";}_122+="</td>";_122+="</tr><tr><td valign=top align=left class=\"light1\">";if(typeof (rmselector)!="undefined"||typeof (rfselector)!="undefined"||typeof (rrselector)!="undefined"){_122+="<b>SEARCH FILTERS</b><br><table cellspacing=\"0\" cellpadding=\"3\" border=\"0\">";if(typeof (rfselector)!="undefined"){_122+="<tr><td><nobr><input type=\"checkbox\" name=\"rmrftype\" value=\"RF\" "+rfc+" onclick=javascr"+"ipt:fsearchprefs(\"RF\",\"add\");> Royalty Free</nobr></td></tr>";}if(typeof (rmselector)!="undefined"){_122+="<tr><td><nobr><input type=\"checkbox\" name=\"rmrftype\" value=\"RM\" "+rmc+" onclick=javascr"+"ipt:fsearchprefs(\"RM\",\"add\");> Rights Managed</nobr></td></tr>";}_122+="</table><BR>";}_122+="<b>ORIENTATION:</b><br>";_122+="<table cellspacing=3 cellpadding=0 border=0><tr>";_122+="<td><nobr><input type=checkbox name=orient value=horizontal onclick=javasc"+"ript:fsearchprefs(\"f\",\"add\"); "+_10c+"> Horizontal</nobr></td></tr>";_122+="<tr><td><input type=checkbox name=orient value=vertical onclick=javasc"+"ript:fsearchprefs(\"g\",\"add\"); "+_10d+"> Vertical</td></tr>";_122+="<tr><td><input type=checkbox name=orient value=square onclick=javasc"+"ript:fsearchprefs(\"i\",\"add\"); "+_10e+"> Square</td></tr>";_122+="</table><br>";if(typeof (vcdoptions)!="undefined"){_122+="<b>BROWSE VCDs</b><BR><Select name=VCDoption onchange=\"javascript:self.location.href=this.options[this.selectedIndex].value\">";_122+=vcdoptions+"</select>";}if(typeof (tpriorsearchmenu)!="undefined"&&tpriorsearchmenu.length>50){_122+=tpriorsearchmenu+"<BR>";}_122+="</td><td valign=top align=left class=\"light1\">";_122+="<b>Filter by contributor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"\" onclick=\"clearPhotogs(document.risn); return false;\"><span style=\"color:#14aae8\">clear</span></a></b><br/><select name=\"photographers\" size=\"12\" multiple class=\"photographersList\" style=\"color:#000\">";if(typeof (artistoptions)!="undefined"){_122+=artistoptions;}_122+="</select></div><p style=\"margin-top:3px; width:175px; font-size: 7pt;\">(To select more than one option, hold down \"Ctrl\" or \"Cmd\" on your keyboard)</p>";_122+="<BR><a href=\"\" onclick=\"g(); return false;\"><img src=\"/graphics/button_go.gif\" alt=\"search\" border=\"0\"></a><BR><BR><A href=\"\" onclick=\"hidedisplaypanel(1); return false;\">[x] hide search options</A>";_122+="</td></tr></table></form>";var temp=$A();if($("tablerow2")){temp=Position.cumulativeOffset($("tablerow2"));}else{temp=[0,6];}center_panel(453,panelheight,_122,temp[1]);Event.observe(document,"mousemove",getMouseXY);}function getMouseXY(e){if(browser!="Internet Explorer"){msX=e.pageX;msY=e.pageY;}else{msX=event.clientX+document.body.scrollLeft;msY=event.clientY+document.body.scrollTop;}if(document.risn&&(msX<panelx||msY>(panely+panelheight))){document.risn.Keywords.blur();hidedisplaypanel(1);}}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 displaypanelshow(){createDisplayPanel();$("displaypanellayer").style.zIndex="1001";$("displaypanellayer").style.visibility="visible";new Effect.Appear("displaypanellayer",{duration:0.5});setTimeout("divshim(1);",200);}function divshim(twid){if(typeof ($)=="function"&&$("DivShim")){if(twid){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 autodropset(){autodropmode=0;gsearchprefs=ggetCookie("gsearchprefs");if(gsearchprefs){if(gsearchprefs.indexOf("f")>=0&&gsearchprefs.indexOf("g")>=0&&gsearchprefs.indexOf("i")>=0||!(gsearchprefs.indexOf("f")>=0||gsearchprefs.indexOf("g")>=0||gsearchprefs.indexOf("i")>=0)){}else{autodropmode=1;}if(gsearchprefs.indexOf("j")>=0&&gsearchprefs.indexOf("k")>=0&&gsearchprefs.indexOf("1")>=0||!(gsearchprefs.indexOf("j")>=0||gsearchprefs.indexOf("k")>=0||gsearchprefs.indexOf("1")>=0)){}else{autodropmode=1;}}}function toggleadvanced(adm){autodropset();if($("displaypanellayer").style&&$("displaypanellayer").style.visibility=="visible"&&!(adm)){hidedisplaypanel();}else{writesearch();}}function hidedisplaypanel(mode){createCoverLayer();divshim(0);createDisplayPanel();if($("displaypanellayer").style&&$("displaypanellayer").style.visibility=="visible"){if(mode==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 coveroff(){createCoverLayer();$("coverlayer").style.visibility="hidden";}function buildpages(_12a,_12b,snum){suspendtrap=1;var _12d="<table width=\"100%\"><tr><td valign=\"top\">";_12d+="<NOBR><FONT class=page>";var _12e=parseInt(_12a)+parseInt(snum)+1;var _12f=parseInt(_12b)+parseInt(snum);if(Number(currentpagenum)>0){_12d+="<A href=\"\" onclick=\"document.currentLayer1Mode='searchresults';prevpage(); return false;\"><IMG SRC=/images/arrow_back.gif width=14 height=8 border=0></A>&nbsp;";}else{if(_12e<=total){_12d+="<IMG SRC=/images/arrow_back.gif width=14 height=8 border=0>";}}if(_12e<=total){_12d+="Page&nbsp;<SELECT name=\"pageurl\" align=\"absmiddle\"  onChange=\"document.currentLayer1Mode='searchresults'; self.location=this.options[this.selectedIndex].value; return false;\" class=\"smallmenu\" style=\"width:52px;margin-left: 3px;margin-right: 3px; margin-bottom: 2px;\">";totalpages=(Math.ceil((snum)/(parseInt($F("pixperpage"))))+Math.ceil((total-snum)/(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){_12d+="<OPTION VALUE=\""+encodeURI(nextlink)+"snum="+((psn-2)*(parseInt(gpixperpagev)))+"\">&lt; "+(Number(psn)-1)+"</option>";}for(i=psn;i<=pen;i++){if(i==(Number(currentpagenum)+1)){_12d+="<OPTION VALUE=\""+encodeURI(nextlink)+"snum="+((i-1)*(parseInt(gpixperpagev)))+"\" SELECTED>"+i+"</option>";}else{_12d+="<OPTION VALUE=\""+encodeURI(nextlink)+"snum="+((i-1)*(parseInt(gpixperpagev)))+"\">"+i+"</option>";}}if(pen!=totalpages){_12d+="<OPTION VALUE=\""+encodeURI(nextlink)+"snum="+((Number(pen))*(parseInt(gpixperpagev)))+"\">&gt; "+(Number(pen)+1)+"</option>";}_12d+="</select> of "+totalpages;if(grange!="outofrange"){_12d+="&nbsp;<A HREF=\"\" onclick=\"document.currentLayer1Mode='searchresults';nextpage(); return false;\"><IMG SRC=/images/arrow_next.gif width=12 height=8 border=0></A></font>";}_12d+="</NOBR></td><td align=\"right\">";if(document.thisIsFeatureView){_12d+="<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 _130=" Set All: <a href=\"\" onclick=\"return share_set_page('shared'); \">Accepted</a> | <a href=\"\" onclick=\"return share_set_page('rejected'); \">Rejected</a> | <a href=\"\" onclick=\"return share_set_page('pending'); \">Pending</a> ";$("Layerpreviews").innerHTML=_130;}}_12d+="</td></tr></table>";$("Layerpages").style.overflow="visible";$("Layerpages").style.display="block";MM_setTextOfLayer("Layerpages","",_12d);}function buildimages(_131,mode,_133){if(typeof (cartview)!="undefined"&&cartview&&mode!="current"){return;}if(typeof (id)=="undefined"){return;}var _134=parseInt(_131)+parseInt(snum)+1;var _135=$H({showstart:_134,snum:_131,viewmode:viewmode,buildmode:mode,resized:_133}).toJSON();try{YAHOO.util.History.navigate("nav",_135);}catch(e){dispatchAll(_135);}}function dispatchBuildimages(args){var _137=args["snum"];var mode=args["buildmode"];var _139=args["resized"];viewmode=args["viewmode"];$("Layer1").style.height=winH+"px";$("Layer1").style.overflow="hidden";if($("cdheader")){(typeof (dsplkys)!="undefined"?(dsplkys.substring(0,6)=="BLDVCD"?$("cdheader").style.display="block":$("cdheader").style.display="none"):$("cdheader").style.display="block");}document.currentLayer1Mode="searchresults";createCoverLayer();if(!MACIE5){var _13a=Element.getOpacity("coverlayer");}if(_13a>0.2){hidedisplaypanel();}suspendcheck=1;if(_137>1||_139==1){setuppagesize();}showstartnumber_trap=parseInt(_137);var _13b="";grange="legal";MM_setTextOfLayer("Layer1","","<CENTER> <BR><BR><BR><BR><BR><BR><BR><BR>loading ...</CENTER>");var cnt=_137;firstpictureonpage=_137;endnumber=parseInt(gpixperpagev)+parseInt(_137);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=/)))){_13b+="&nbsp;&nbsp;<A href=\"\" onclick=\"viewmode='"+viewmode+"';gsetCookie('gviewmode','"+viewmode+"', '', '/', gGetCookieDom()); self.location='/SwishSearch"+pre_q_args+"'; return false;\"><FONT style=\"font-size:9pt; font-family:Arial;\">&#8593;</font> BACK TO SEARCH RESULTS</A><BR/><BR/>";}while(cnt<endnumber){if(id[cnt]){_13b+=htmlit_custom(cnt);}else{if((snum+cnt)>=total){if(grange!="outofrange"){_13b+="<span valign=bottom style=\"float:left;\"><div align=center valign=bottom style=\"width:130; height:50px; overflow: hidden;\">";if(pagetype=="lb"){_13b+="<BR></DIV></SPAN> ";}else{_13b+="<BR><nobr>&nbsp;&nbsp;</nobr></DIV></SPAN> ";}}grange="outofrange";}else{grange="illegalpage";}}cnt++;}if(snum+cnt==total){grange="outofrange";}if(grange=="illegalpage"||mode=="forcesearch"){if(mode=="forcesearch"){self.location="/SwishSearch?Keywords="+searchwords+"&snum="+(Number(firstpictureonpage)+Number(snum));return;}else{if(mode=="next"){self.location=nextlink+"snum="+(Number(firstpictureonpage)+Number(snum));MM_setTextOfLayer("Layer1","","<CENTER> <BR><BR><BR><BR><BR><BR><BR><BR>loading next set of images...</CENTER>");}else{prevtogoto=Number(snum)+Number(_137)-parseInt($F("pixperpage"));if(prevtogoto<0){prevtogoto=0;}self.location=nextlink+"snum="+prevtogoto;}}}else{MM_setTextOfLayer("Layer1","",_13b);if(shsync[0]){setTimeout("init_share_radios()",1);}var _13d="<table style=\"position:absolute; z-index:999; top:-6px; border: solid #ccc 0px;border-top-width: 1px;\" align=left width=100% height=17 cellpadding=0 cellspacing=0 border=0><TR><TD align=left width=90% style=\"padding-top: 5px;\">"+footer();_13d+="</TD><TD align=\"right\"  width=10% style=\"padding-top: 5px;\"><div style=\"padding-right: 20px; height: 12px;\">";if((typeof (snum)!="undefined"&&Number(snum)>1)||(typeof (_137)!="undefined"&&Number(_137)>1)){_13d+="<nobr><A HREF=javasc"+"ript:prevpage(); TITLE=\"PREVIOUS PAGE\"><IMG SRC=/graphics/arrow_prev2.gif width=11 height=12 border=0 style=\"margin-right:12px;\"></A>";}else{_13d+="<nobr>";}if(grange!="outofrange"){_13d+="<A HREF='' onclick='nextpage(); return false;' name=bottomnext TITLE=\"NEXT PAGE\"><IMG SRC=/graphics/arrow_next2.gif width=45 height=12 border=0></A></nobr></div>";}_13d+="</TD></TR></table>";$("pagingrow").innerHTML=_13d;lastimage=cnt;if($("pixperpage")){prestart=endnumber-1;preend=(lastimage+parseInt($F("pixperpage")));if(_137==0){var _13e=6000+parseInt($F("pixperpage")*30);self.setTimeout("preloadnextpage()",_13e);}else{var _13e=1000;self.setTimeout("preloadnextpage()",_13e);}}}}else{enlarge2(id[0],0);}currentpagenum=Math.ceil((Number(snum)+Number(_137))/parseInt($F("pixperpage")));buildpages(_137,endnumber,snum);iconstatus();}function iconstatus(){if(viewmode){if($("sicontiny")){$("sicontiny").className="sizeiconblocks";}if($("siconbig")){$("siconbig").className="sizeiconblocks";}if($("siconlarge")){$("siconlarge").className="sizeiconblocks";}if($("siconmed")){$("siconmed").className="sizeiconblocks";}if($("sicontab")){$("sicontab").className="sizeiconblocks";}if($("siconhuge")){$("siconhuge").className="sizeiconblocks";}if($("siconlist")){$("siconlist").className="sizeiconblocks";}if(viewmode=="table"){if($("sicontab")){$("sicontab").className="sicontabactive";}}else{if(viewmode=="list"){if($("siconlist")){$("siconlist").className="siconlistactive";}}else{if(viewmode=="tiny"){if($("sicontiny")){$("sicontiny").src="/graphics/icon_miniv2_on.gif";}}else{if(viewmode=="med"){if($("siconmed")){$("siconmed").className="siconmedactive";}}else{if(viewmode=="huge"){if($("siconhuge")){$("siconhuge").className="siconhugeactive";}}else{if(viewmode=="large"){if($("siconhuge")){$("siconhuge").className="siconhugeactive";}}}}}}}}}function writesimilar(myid,_140,_141,_142,_143,mode,_145){var _146=st[_140];var _147=_146.split(" ");var _148=_147[1].split(",");if(_148.length>1){_148=_147[0]+" "+_148.join(" ");_147=_148.split(" ");}var _149=_147.length;if(mode=="normal"||mode=="huge"){if(parseInt(_149)<5){simindicator=_149;}else{simindicator=4;}}else{if(parseInt(_149)<4){simindicator=_149;}else{simindicator=3;}}var _14a="";var _14b=myid;var _14c=myid;var _14d=15;var _14e=15;if(_143=="next"){var n=sw[_140];n++;sw[_140]=n;if(sw[_140]>=_149){sw[_140]=0;n=0;}_14b=_147[n];}else{if(_143=="prev"){var n=sw[_140];n--;sw[_140]=n;if(sw[_140]<0){sw[_140]=_149-1;n=_149-1;}_14b=_147[n];}}if(isNaN((sw[_140]+1))){sw[_140]=0;}var _150=172+adminheight;if(mode=="list"||mode=="editing"){_14a+="<TABLE width=298 cellspacing=2 cellpadding=0 border0 height="+_150+"><TR><TD valign=top width=149 align=center>";}_14a+="<table cellpadding=0 cellspacing=0 border=0><TR><TD colspan=2 align=right valign=bottom bgcolor=#c9c9c9 width=18 height=18>";_14a+="<a href=\"javasc"+"ript:enlarge2('"+myid+"'"+","+"'"+_140+"', '"+_14b+"');\" TITLE=\"ID:"+_14b;if(showphotographer==1){"  \r&copy; "+_141;}if(showfilesize){_14a+="  \rSIZE: "+myfilesize;}_14a+="  \r"+"CAPTION: "+_142;if(mode=="huge"){_14a+="\"><img src=\"http://gdynx.ipnstock.com/"+dynimagesname+"/420/60/"+_14b+".JPG\" border=\"0\" alt=\"loading...\" height=\"190\"></a></TD>";}else{if(mode=="med"){_14d=10;_14e=14;_14a+="\"><img src=\"http://gdynx.ipnstock.com/"+dynimagesname+"/135/50/"+_14b+".JPG\" border=\"0\" vspace=\"0\" hspace=\"0\" alt=\"loading...\" height=72></a></TD>";}else{if(mode=="tiny"){_14d=8;_14e=12;_14a+="\"><img src=\"http://gdynx.ipnstock.com/"+dynimagesname+"/135/50/"+_14b+".JPG\" border=\"0\" vspace=\"0\" hspace=\"0\" alt=\"loading...\" height=45></a></TD>";}else{_14d=12;_14e=16;_14a+="\"><img src=\"http://gdynx.ipnstock.com/"+dynimagesname+"/135/50/"+_14b+".JPG\" border=\"0\" vspace=\"0\" hspace=\"0\" alt=\"loading...\"></a></TD>";}}}_14a+="<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"){_14a+="<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{_14a+="<TD colspan=2 background=/graphics/similars_lc"+simindicator+".gif height=8></TD>";}_14a+="<TD width=12 height=8 background=/graphics/similars_lr"+simindicator+".gif></TD></TR></TABLE>";if(mode=="normal"||mode=="med"||mode=="tiny"||mode=="large"){_14a+="<Table cellpadding=0 cellspacing=0 border=0><TR><TD valign=top align=center>";}if(mode!="editing"){_14a+="<DIV class=icons><a href=\"\" onclick=\"lightbox_addto('"+_14b+"'); return false;\" class=iconlink title=\"Add to your current lightbox\">LB+</a>";_14a+="<a href=\"\" onclick=\"return price_image('"+_14b+"','"+rm[_14b]+"');\" class=iconlink Title=\"Price Image\">$</a>";_14a+="<a href=\"javasc"+"ript:enlarge2('"+_14b+"'"+","+"'"+_140+"');\" class=iconlink title=\"Enlarge image and more info\"><font class=eye>i</font></a>";if(mode=="huge"){}else{if(mode=="list"){_14a+="&nbsp;&nbsp;"+(typeof (_145)!="undefined"?_145:"")+"</DIV>";}else{_14a+="</DIV>";}}}if(mode=="med"||mode=="tiny"){_14a+="<font class=xsmall>"+_14b+"</font>";_14a+="</TD><TD valign=top align=center width=40><nobr>";}if(mode=="list"||mode=="normal"||mode=="large"||mode=="editing"){_14a+="</TD><TD valign=\"top\">";}_14a+="<A HREF=\"\" onclick=\"writesimilar('"+_14c+"','"+_140+"','";_14a+=_141+"','";_14a+=_142+"','prev','"+mode+"'); return false;\" TITLE=\"show similars\">";_14a+="<IMG SRC=\"/graphics/similars_prev.gif\" border=\"0\" hspace=\"1\" height=\""+_14d+"\" width=\""+_14e+"\" align=\"absmiddle\"></A>";if(mode=="list"||mode=="huge"||mode=="normal"||mode=="large"||mode=="editing"){_14a+="<font class=xsmall>"+(sw[_140]+1)+" of "+_149+"</font>";}_14a+="<A HREF=\"\" onclick=\"writesimilar('"+_14c+"','"+_140+"','";_14a+=_141+"','";_14a+=_142+"','next','"+mode+"'); return false;\" TITLE=\"show similars\">";_14a+="<IMG src=\"/graphics/similars_next.gif\" border=\"0\" hspace=\"1\" height=\""+_14d+"\" width=\""+_14e+"\" align=\"absmiddle\"></A></nobr><BR>";if(mode=="med"||mode=="tiny"){_14a+="<font class=xsmall>"+(sw[_140]+1)+" of "+_149+"</font>";}if(mode=="list"||mode=="editing"){_14a+="<font class=xsmall>ID:"+_14b;if(showphotographer==1){_14a+="  <BR>&copy; "+currentYear+" "+_141;}if(showfilesize){_14a+="<nobr>"+myfilesize+"</nobr>";}_14a+=myreleased+"<BR>CAPTION: "+_142+"</font><BR>";if(mode=="editing"){_14a+="<br/><a href=\"\" onclick=\"launchwin('/SwishSearch?show_all=1&similar_to="+_14b+"', 'edit sims', 600, 800, 100, 100); return false;\" title=\"Edit Similar Images\">Edit&nbsp;Similar&nbsp;Images</a>";}}if(mode=="huge"){_14a+="</DIV>";}_14a+="</td></TR></TABLE>";if(_143=="start"){return _14a;}if(_143=="prev"){MM_setTextOfLayer("d"+_14c,"",_14a);}if(_143=="next"){MM_setTextOfLayer("d"+_14c,"",_14a);}}function currentpage(){setuppagesize();if(document.currentLayer1Mode=="searchresults"){qq("running buildimages");var _151=$H({snum:(firstpictureonpage?firstpictureonpage:0),viewmode:viewmode,buildmode:"",resized:""});dispatchBuildimages(_151);}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){qq("cdheader top"+Position.cumulativeOffset($("cdheader"))[1]);$("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(Position.cumulativeOffset($("cdheader"))[1]>0){co=Position.cumulativeOffset($("cdheader"));}}else{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 _153=(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&&gusername){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{}truevertHeight=winH;if(!(gsession&&gusername)){if(winH<450){smallscreen=1;}}if(area>0){totalimagesthatcanfit=area;gpixperpagev=totalimagesthatcanfit;$("pixperpage").value=gpixperpagev;}else{gpixperpagev=ggetCookie("gpixperpage");if(!gpixperpagev){gpixperpagev=12;}}createCoverLayer();$("coverlayer").style.width=winW+"px";if($("lbbuttons")){$("coverlayer").style.height=(Position.cumulativeOffset($("lbbuttons"))[1]-Position.cumulativeOffset($("row2"))[1]+Element.getHeight("lbbuttons"))+"px";}else{$("coverlayer").style.height=(winH+30)+"px";}var co=[];if($("row2")){co=Position.cumulativeOffset($("row2"));}else{co=Position.cumulativeOffset($("navContainer"));co[1]+=$("navContainer").getHeight();}$("coverlayer").style.top=co[1]+"px";$("coverlayer").style.left=co[0]+"px";}function preloadnextpage(){preloadcurrent=prestart;preloadnextimg();}function preloadnextimg(){preloadcurrent++;if(preloadcurrent<preend&&endnumber<preend){objImage=new Image();Event.observe(objImage,"load",function(){setTimeout("preloadnextimg();",10);});objImage.src="http://gdynx.ipnstock.com/"+dynimagesname+"/135/50/"+id[preloadcurrent]+".JPG";}}function nextpage(){buildimages(lastimage,"next");}function prevpage(){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;}}self.location=nextlink+"snum="+prevtogoto;}else{buildimages(backpagestart,"prev");}}function footer(){if(typeof (customfooter)!="undefined"){return customfooter;}else{return Templates.footer__body.evaluate({currentyear:currentYear});}}function tellme(){setuppagesize();alert($F("pixperpage")+" browser is "+browser+" and os is "+OS+" width="+document.body.offsetWidth+","+self.innerWidth+","+winW+" winH="+winH+", truevertHeight="+truevertHeight);}function 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 prloadimg(prid,crop){if(!$("pimid")){document.body.appendChild(Builder.node("div",{id:"pimid",style:"position:absolute; top:-500px"}));}var _159=$H({id:"previewimg_"+prid,src:"/graphics/loading.png",border:0,alt:"Loading...",lowsrc:"/graphics/spacer.gif"});if(winH<450){smallscreen=1;if(typeof (crop)!="undefined"){if(crop=="vertical"){_159["height"]=(((winH-100)<180)?180:(winH-50));}else{_159["height"]=((winH-142)<160)?160:(winH-102);}}else{_159["height"]=195;}}else{smallscreen=0;}$("pimid").innerHTML="";$("pimid").style.visibility="hidden";var _15a=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",_159)]),Builder.node("div",{id:"previewpane_metdat_"+prid},"")]),Builder.node("img",{src:"http://gdynx.ipnstock.com/"+dynimagesname+"/420/60/"+prid+".JPG",style:"display:none",onload:"if($('previewimg_"+prid+"')) $('previewimg_"+prid+"').src = this.src"})])]);$("pimid").appendChild(_15a);}function sp(oObj,_15c,_15d,mode){if(oObj.id){currMousedOverObj=oObj.id;}if(currMousedOverObj!=id[_15d]){ajax_JSON("/AjaxHandlers/ImageInfo/"+_15c+".json",getpost,null);}sp_act(oObj.id,_15c,mode,_15d,0);}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 sp_act(_160,_161,mode,dex,_164){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((_160==currMousedOverObj)&&((document.ajaxLoaded&&_161==document.JSONobj.getImgDat("id"))||_161==id[dex])){var temp=true;gloCrop=(_161==id[dex]?crp[dex]:document.JSONobj.getImgDat("crop"));gloCrop=(gloCrop?gloCrop:"horizontal");var crop=gloCrop;if(smallscreen=="1"&&(crop=="panoramic"||crop=="vertical")){prloadimg(_161,crop);}var _167=(_161==id[dex]?fs[dex]:document.JSONobj.getImgDat("file_size"));if(_167<5){_167="";}else{if(!_167.toString().match(/[A-Za-z]/)){_167+="Mb";}}var _168=(typeof (showdimensions)!="undefined"?(_161==id[dex]?dim[dex]:document.JSONobj.getImgDat("dimensions")):"");if(_168){var dimr=_168.match(/^(\d+)x(\d+)$/);if(dimr!=null&&dimr.length>1){_168="[&nbsp;"+dimr[1]+"px&nbsp;x&nbsp;"+dimr[2]+"px&nbsp;]";}}var _16a=(_161==id[dex]?unescape(scp[dex]):document.JSONobj.getImgDat("short_caption"));if(_16a&&_16a.length>130){var tsc="";for(z=0;z<170;z++){var c=_16a.charAt(z);if(temp==true){if((z>130)&&(c==".")){temp=false;tsc+=c+" ...";}else{if((z>150)&&(c==" ")){temp=false;tsc+=" ...";}else{tsc+=c;}}}}_16a=tsc;}var _16d="";if(typeof (o)=="object"&&typeof (o[dex])!="undefined"){_16d=(_161==id[dex]?o[dex]:document.JSONobj.getImgDat("orig_id"));}else{_16d=_161;}var _16e=(_161==id[dex]?rm[dex]:document.JSONobj.getImgDat("rmrftype"));var _16f=(_161==id[dex]?unescape(pho[dex]):document.JSONobj.getImgDat("photographer"));var _170=(_161==id[dex]?imr[dex]:document.JSONobj.getImgDat("image_restrictions"));_170=(_170?" :: <span style=\"color:#990000\"> This image has restrictions. Click to View </span>":"");var _171={imageid:_161,displayimageid:_16d,rmrftype:_16e,filesize:_167,shortcaption:_16a,dimensions:_168,photographer:_16f,imagerestrictions:_170};$("previewpane_metdat_"+_161).innerHTML=Templates.sp_act__metadata.evaluate(_171);$("pimid").style.visibility="visible";new Effect.Appear($("pimid"),{duration:0.1});}else{if(_164<10){_164++;setTimeout("sp_act('"+_160+"', '"+_161+"', '"+mode+"', '"+dex+"', '"+_164+"')",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 pfindmouse(e,sX,sY){if($("pimid")){var _179=pmousedelta[0];var _17a=pmousedelta[1];mouseX=(sX||0);mouseY=(sY||0);var _17b;if(typeof (event)=="undefined"){mouseX=Event.pointerX(e);mouseY=Event.pointerY(e);_17b=e.target;}else{mouseX=Event.pointerX(event);mouseY=Event.pointerY(event);_17b=event.target;}if(Math.abs(mouseX-document.mouseLocSnapX)>150||Math.abs(mouseY-document.mouseLocSnapY)>150){hp();}else{var _17c=60;if(_17b&&_17b.nodeName=="IMG"){_17c=Element.getDimensions(_17b)["height"];}if((mouseX+Element.getDimensions($("pimid"))["width"])>winW){_179=(mouseX-Element.getDimensions($("pimid"))["width"]-pmousedelta[0]-45);}else{_179+=mouseX;}if(_179<0){_179=pmousedelta[0];}if((mouseY-Math.min(_17c,420)+pmousedelta[1]-20)<document.body.scrollTop){_17a=document.body.scrollTop-pmousedelta[1];if((_17a+40)>winH){_17a=(_17a-Math.min(_17c,420)+pmousedelta[1]);if(((_17a+Math.max(_17c,420)-document.body.scrollTop)-winH)>0){_17a=_17a-(typeof (event)=="undefined"?Math.min((_17c+160),420):(gloCrop=="panoramic"||(gloCrop!=""&&gloCrop!="vertical")?190:380));}}}else{if((mouseY+Math.max(_17c,420))>winH){_17a=(mouseY-Math.min(_17c,420)+pmousedelta[1]);if(((_17a+Math.max(_17c,420)-document.body.scrollTop)-winH)>0){_17a=_17a-(typeof (event)=="undefined"?Math.min((_17c+160),420):(gloCrop=="panoramic"||(gloCrop!=""&&gloCrop!="vertical")?190:380));}if(_17a<document.body.scrollTop){_17a=document.body.scrollTop-pmousedelta[1];}}else{_17a+=mouseY;if((_17a+40)>winH){_17a=(_17a-Math.min(_17c,420)+pmousedelta[1]);if(((_17a+Math.max(_17c,420)-document.body.scrollTop)-winH)>0){_17a=_17a-(typeof (event)=="undefined"?Math.min((_17c+160),420):(gloCrop=="panoramic"||(gloCrop!=""&&gloCrop!="vertical")?190:380));}}}}$("pimid").style.left=parseInt(_179)+"px";$("pimid").style.top=parseInt(_17a)+"px";}}}function dispatchAll(_17d){var oC=(typeof (_17d)=="object"?_17d:_17d.evalJSON());var fpop=(typeof (firstpictureonpage)!="undefined"?firstpictureonpage:0);if(oC.viewmode=="ss"){dispatchEnlarge2(oC);}else{if(oC.viewmode=="cartview"){document.currentLbdivMode="cart";document.currentLayer1Mode="cartview";viewmode="cartview";currMousedOverObj="shop_cart";dispatchCart_display(oC);}else{if(oC.snum<fpop){document.currentLayer1Mode=oC.viewmode;viewmode=oC.viewmode;oC["buildmode"]=oC["buildmode"]||"prev";dispatchBuildimages(oC);}else{if(oC.snum>fpop){document.currentLayer1Mode=oC.viewmode;viewmode=oC.viewmode;oC["buildmode"]=oC["buildmode"]||"next";dispatchBuildimages(oC);}else{if(oC.snum==fpop){document.currentLayer1Mode=oC.viewmode;viewmode=oC.viewmode;oC["buildmode"]=oC["buildmode"]||"current";dispatchBuildimages(oC);}}}}}}function reDispatch(){dispatchAll(YAHOO.util.History.getCurrentState());}function MM_setTextOfLayer(_180,x,_182){var obj=$(_180);if(obj!=null){if($("pagingrow")&&document.currentLayer1Mode!="searchresults"){$("pagingrow").innerHTML="";}if(document.layers){document.write(unescape(_182));document.close();}else{obj.innerHTML=unescape(_182);}}}function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3){if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc){x.oSrc=x.src;}x.src=a[i+2];}}}function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++){x.src=x.oSrc;}}function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p){d.MM_p=new Array();}var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++){if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}}function toplightboxrefresh(){if(gsession&&gusername){self.location="/SwishSearch?n=1&lb_view=1";}else{self.location="/bin/Cklb?ref=/SwishSearch?lb_view=1";}}function topcartrefresh(){if(gsession&&gusername){self.location="/SwishSearch?n=1&cartview=1";}else{self.location="/bin/Cklb?ref=/SwishSearch?cartview=1";}}function displayWindow(url,_190,_191){if(navigator.appName=="Netscape"){_191=parseInt(_191)+16;}var Win=window.open(url,"displayWindow","width="+_190+",height="+_191+",resizable=1,scrollbars=yes,menubar=no,status=no");Win.focus();}function displayWindow2(url,_194,_195){var Win2=window.open(url,"displayWindow2","width="+_194+",height="+_195+",resizable=0,scrollbars=no,menubar=no,status=no");Win2.focus();}function optimize(){}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(_19b){place=detect.indexOf(_19b)+1;thestring=_19b;return place;}function popkeys2(oId,oLbj){var _19e=$(oId);if(_19e){if(_19e.style.display=="none"){_19e.style.display="block";var _19f;if($("lbbuttons")){_19f=Position.cumulativeOffset($("lbbuttons"))[1];}else{_19f=winH;}var _1a0=_19f-Position.cumulativeOffset(_19e)[1]+"px";_19e.style.maxHeight=_1a0;_19e.style.overflowY="auto";}else{_19e.style.display="none";}}if(oLbj){if(oLbj.innerHTML=="Show keywords"){oLbj.innerHTML="Hide keywords";}else{if(oLbj.innerHTML=="Hide keywords"){oLbj.innerHTML="Show keywords";}}}}function gsetCookie(name,_1a2,_1a3,path,_1a5,_1a6){var _1a7=name+"="+escape(_1a2)+((_1a3)?"; expires="+_1a3.toGMTString():"")+((path)?"; path="+path:"")+((_1a5)?"; domain="+_1a5:"")+((_1a6)?"; secure":"");document.cookie=_1a7;}function ggetCookie(name){var dc=document.cookie;var _1aa=name+"=";var _1ab=dc.indexOf("; "+_1aa);if(_1ab==-1){_1ab=dc.indexOf(_1aa);if(_1ab!=0){return null;}}else{_1ab+=2;}var end=document.cookie.indexOf(";",_1ab);if(end==-1){end=dc.length;}return unescape(dc.substring(_1ab+_1aa.length,end));}function gdeleteCookie(name,path,_1af){if(ggetCookie(name)){document.cookie=name+"="+((path)?"; path="+path:"")+((_1af)?"; domain="+_1af:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}function gsetCookie2(_1b0,_1b1){gsetCookie(_1b0,_1b1,"","/",gGetCookieDom());}function gGetCookieDom(){var _1b2=document.domain;var _1b3=_1b2.split(".");var end=_1b3.length-1;var _1b5=_1b3.length-2;var _1b6=_1b3[end];var _1b7=_1b3[_1b5];var _1b8="."+_1b7+"."+_1b6;return _1b8;}function gSetBackpage(){var _1b9="";if(location.href){_1b9=location.href;}gsetCookie("backpage",_1b9,"","/",gGetCookieDom());}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 nada(){}function launchwin(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 _1c1=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(!_1c1.opener){_1c1.opener=(typeof (parent)!="undefined"?parent:self);}if(_1c1.focus){_1c1.focus();}}function hovercopyright(){if($("copyright")){if(typeof (customhovermessage)!="undefined"&&customhovermessage!=""){$("copyright").innerHTML=customhovermessage;}else{$("copyright").innerHTML=Templates.hovercopyright__text.evaluate({currentyear:currentYear,baseurl:baseurl});}}}function license(id){launchwin("/bin/Rates?supst=multiuse&calc_only=1&usage=1&ln="+id);}function twidle_price_img(_1c3,type,_1c5){setTimeout("twidle_price_img_delay("+_1c3+", '"+type+"', '"+_1c5+"')",10);return false;}function getVars(){if(!document.location.href.split("?")[1]){return;}var _1c6=document.location.href.split("?")[1].split("&");urlParams=new Object;for(var x=0;x<_1c6.length;x++){var tmp=_1c6[x].split("=");if(tmp[0]){urlParams[unescape(tmp[0])]=unescape(tmp[1]);}}}function twidle_price_img_delay(_1c9,type,_1cb){var _1cc="lic"+_1c9;if(document[_1cc].loaded=="true"){return;}if(type=="RF"){var _1cd=new Image();_1cd.src="/graphics/specify_filesize.gif";document[_1cc].src=_1cd.src;}if(_1cb=="$ 0.00"){}else{var _1cd=new Image();_1cd.src="/graphics/ready_to_license.gif";document[_1cc].src=_1cd.src;}document[_1cc].loaded="true";return true;}function jotTime(){var d=new Date();var tnow=d.getMilliseconds();return tnow;}function qq(b){if(ggetCookie("debug")){alert(b);}}function qqon(){gsetCookie2("debug","1");}function qqoff(){gsetCookie2("debug","");}var gpsearches=ggetCookie("psearches");if(gpsearches){priorsearcharray=gpsearches.split("|");var tpriorsearchmenu="<br/><select name=psearch class=priorsearchmenu onchange=\"javascript:self.location.href=this.options[this.selectedIndex].value\"><option value=#>Your previous searches</option>";for(var i=priorsearcharray.length-1;i>=0;i--){var itemarray=priorsearcharray[i].split("~");var ta=itemarray[1];if(ta.length>40){ta=itemarray[1].substring(0,39)+"...";}tpriorsearchmenu+="<option value=/SwishSearch?"+itemarray[0]+">"+ta+"</option>";}tpriorsearchmenu+="</select>";}

