if(document.images){var blogThis_on=new Image;blogThis_on.src=strGraphicsProductsDirUrl+'product/actions/blogThis_on.gif';var blogThis_off=new Image;blogThis_off.src=strGraphicsProductsDirUrl+'product/actions/blogThis_off.gif';var enlarge_on=new Image;enlarge_on.src=strGraphicsProductsDirUrl+'actions/view3/large_on.gif';var enlarge_off=new Image;enlarge_off.src=strGraphicsProductsDirUrl+'actions/view3/large_off.gif';var super_on=new Image;super_on.src=strGraphicsProductsDirUrl+'actions/view3/super_on.gif';var super_off=new Image;super_off.src=strGraphicsProductsDirUrl+'actions/view3/super_off.gif';var magnify_on=new Image;magnify_on.src=strGraphicsProductsDirUrl+'actions/view3/magnify_on.gif';var magnify_off=new Image;magnify_off.src=strGraphicsProductsDirUrl+'actions/view3/magnify_off.gif';var customize_large_on=new Image;customize_large_on.src=strGraphicsProductsDirUrl+'actions/view3/customize_on.gif';var customize_large_off=new Image;
customize_large_off.src=strGraphicsProductsDirUrl+'actions/view3/customize_off.gif';var real_view_on=new Image;real_view_on.src=strGraphicsProductsDirUrl+'actions/view3/real_view_on.gif';var real_view_off=new Image;real_view_off.src=strGraphicsProductsDirUrl+'actions/view3/real_view_off.gif';var customize_on=new Image;customize_on.src=strGraphicsProductsDirUrl+'product/actions/customize_on.gif';var customize_off=new Image;customize_off.src=strGraphicsProductsDirUrl+'product/actions/customize_off.gif';var email_on=new Image;email_on.src=strGraphicsProductsDirUrl+'product/actions/email_on.gif';var email_off=new Image;email_off.src=strGraphicsProductsDirUrl+'product/actions/email_off.gif';var favorites_on=new Image;favorites_on.src=strGraphicsProductsDirUrl+'product/actions/favorites_on.gif';var favorites_off=new Image;favorites_off.src=strGraphicsProductsDirUrl+'product/actions/favorites_off.gif';var violation_on=new Image;violation_on.src=strGraphicsProductsDirUrl+'product/actions/violation_on.gif';
var violation_off=new Image;violation_off.src=strGraphicsProductsDirUrl+'product/actions/violation_off.gif';var box_discounts_on=new Image;box_discounts_on.src=strGraphicsProductsDirUrl+'product/add_to_cart/box_discounts_on.gif';var box_discounts_off=new Image;box_discounts_off.src=strGraphicsProductsDirUrl+'product/add_to_cart/box_discounts_off.gif';var box_safe_on=new Image;box_safe_on.src=strGraphicsProductsDirUrl+'product/add_to_cart/box_safe_on.gif';var box_safe_off=new Image;box_safe_off.src=strGraphicsProductsDirUrl+'product/add_to_cart/box_safe_off.gif';var edit_on=new Image;edit_on.src=strGraphicsProductsDirUrl+'product/add_to_cart/edit_on.gif';var edit_off=new Image;edit_off.src=strGraphicsProductsDirUrl+'product/add_to_cart/edit_off.gif';var hide_on=new Image;hide_on.src=strGraphicsProductsDirUrl+'product/add_to_cart/hide_on.gif';var hide_off=new Image;hide_off.src=strGraphicsProductsDirUrl+'product/add_to_cart/hide_off.gif';var view_price_on=new Image;
view_price_on.src=strGraphicsProductsDirUrl+'product/add_to_cart/view_price_on.gif';var view_price_off=new Image;view_price_off.src=strGraphicsProductsDirUrl+'product/add_to_cart/view_price_off.gif';var hide_price_on=new Image;hide_price_on.src=strGraphicsProductsDirUrl+'product/add_to_cart/hide_price_on.gif';var hide_price_off=new Image;hide_price_off.src=strGraphicsProductsDirUrl+'product/add_to_cart/hide_price_off.gif';var add_to_cart_on=new Image;add_to_cart_on.src=strGraphicsProductsDirUrl+'product/add_to_cart/add_to_cart_on.gif';var add_to_cart_off=new Image;add_to_cart_off.src=strGraphicsProductsDirUrl+'product/add_to_cart/add_to_cart_off.gif';var add_comment_on=new Image;add_comment_on.src=strGraphicsProductsDirUrl+'product/member_comments/add_comment_on.gif';var add_comment_off=new Image;add_comment_off.src=strGraphicsProductsDirUrl+'product/member_comments/add_comment_off.gif';var add_comment_in=new Image;add_comment_in.src=strGraphicsProductsDirUrl+'product/member_comments/add_comment_in.gif';
var customizeStamp_on=new Image;customizeStamp_on.src=strGraphicsProductsDirUrl+'product/stamps/box_bottom-on.gif';var customizeStamp_off=new Image;customizeStamp_off.src=strGraphicsProductsDirUrl+'product/stamps/box_bottom-off.gif';}var view_enlarged_url;var view_super_url;var view_magnified_url;var view_real_url;var view_options_url;var long_description_url;var email_to_friend_url;var add_to_favorites_url;var report_violation_url;var view_discounts_url;var view_safe_url;var view_enlarged_window;var view_super_window;var view_magnified_window;var view_real_window;var view_options_window;var long_description_window;var email_to_friend_window;var add_to_favorites_window;var report_violation_window;var view_discounts_window;var view_safe_window;function checkIfImageOnSide(){if(zcdProductType==235){if(eval('document.frmParms.'+document.frmParms.side.value+'_type.value')==''){alert('There is no image on this side');return false;}}else if(zcdProductType==137){
if(eval('strCardSide'+document.frmParms.side.value)==''){alert('There is no image on this side');return false;}}return true;}function update500ImgDims(){if(zcdProductType==235){if(eval('document.frmParms.'+document.frmParms.side.value+'_type.value')=='pckt'){intWidth500=500;intHeight500=500;}else if(eval('document.frmParms.'+document.frmParms.side.value+'_type.value')=='vert'){intWidth500=429;intHeight500=500;}else if(eval('document.frmParms.'+document.frmParms.side.value+'_type.value')=='horz'){intWidth500=500;intHeight500=429;}}else if(zcdProductType==137){if(document.frmParms.orientation.value=='vert'){intWidth500=357;intHeight500=500;}else{intWidth500=500;intHeight500=357;}}else if(zcdProductType==228){intWidth500=500;intHeight500=500;}else if(zcdProductType==168){intWidth500=500;intHeight500=187.5;}else{intWidth500=500;intHeight500=500;}}function openViewEnlargedWindow(){if(checkIfImageOnSide()){update500ImgDims();
view_enlarged_url=strPopupDirUrl+'view_enlarged.asp'+'?product_id='+zidProductId+'&width='+intWidth500+'&height='+(parseInt(intHeight500)+43)+strPrivateUrlArg;if((zcdProductType==235)||(zcdProductType==137)||(zcdProductType==158)){view_enlarged_url=view_enlarged_url+'&side='+document.frmParms.side.value;}view_enlarged_window=window.open(view_enlarged_url,'view_enlarged_window','top='+((screen.availHeight-intHeight500-43)/2)+',left='+((screen.availWidth-intWidth500-20)/2)+'+,resizable=yes,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no,width='+(intWidth500+20)+',innerWidth='+(intWidth500+20)+',height='+(intHeight500+43)+',innerHeight='+(intHeight500+43));view_enlarged_window.focus();}}function openViewSuperWindow(){var intSuperWidth;var intSuperHeight;var intX;var intY;if(checkIfImageOnSide()){update500ImgDims();if(screen.availWidth<(parseInt(intWidth500)*2)){intSuperWidth=screen.availWidth;intX=0;}else{intSuperWidth=parseInt(intWidth500)*2;
intX=(screen.availWidth-(parseInt(intWidth500)*2))/2;}if(screen.availHeight<(parseInt(intHeight500)*2)+30){intSuperHeight=screen.availHeight;intY=0;}else{intSuperHeight=(parseInt(intHeight500)*2)+30;intY=(screen.availHeight-((parseInt(intHeight500)*2)+30))/2;}view_super_url=strPopupDirUrl+'view_super.asp'+'?product_id='+zidProductId+'&width='+intX+'&height='+intY+strPrivateUrlArg;if((zcdProductType==235)||(zcdProductType==137)||(zcdProductType==158)){view_super_url=view_super_url+'&side='+document.frmParms.side.value;}if(zcdProductType==137&&document.frmParms.side.value=="04"){intSuperWidth=1000;intSuperHeight=1030;}if((intSuperWidth==(parseInt(intWidth500)*2))&&(intSuperHeight==(parseInt(intHeight500)*2)+30)){
view_super_window=window.open(view_super_url,'view_super_window','top='+((screen.availHeight-intSuperHeight)/2)+',left='+((screen.availWidth-intSuperWidth)/2)+'+,resizable=yes,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no,width='+intSuperWidth+',innerWidth='+intSuperWidth+',height='+intSuperHeight+',innerHeight='+intSuperHeight);}else if((intSuperWidth==(parseInt(intWidth500)*2))&&(intSuperHeight!=(parseInt(intHeight500)*2)+30)){view_super_window=window.open(view_super_url,'view_super_window','top='+((screen.availHeight-intSuperHeight+28)/2)+',left='+((screen.availWidth-intSuperWidth-17)/2)+'+,resizable=yes,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no,width='+(intSuperWidth+17)+',innerWidth='+(intSuperWidth+17)+',height='+(intSuperHeight-28)+',innerHeight='+(intSuperHeight-28));}else if((intSuperWidth!=(parseInt(intWidth500)*2))&&(intSuperHeight==(parseInt(intHeight500)*2)+30)){
view_super_window=window.open(view_super_url,'view_super_window','top='+((screen.availHeight-intSuperHeight-18)/2)+',left='+((screen.availWidth-intSuperWidth+10)/2)+'+,resizable=yes,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no,width='+(intSuperWidth-10)+',innerWidth='+(intSuperWidth-10)+',height='+(intSuperHeight+18)+',innerHeight='+(intSuperHeight+18));}else{view_super_window=window.open(view_super_url,'view_super_window','top='+((screen.availHeight-intSuperHeight-18)/2)+',left='+((screen.availWidth-intSuperWidth+10)/2)+'+,resizable=yes,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no,width='+(intSuperWidth-10)+',innerWidth='+(intSuperWidth-10)+',height='+(intSuperHeight-28)+',innerHeight='+(intSuperHeight-28));}view_super_window.focus();}}function OpenLongDescriptionWindow(){long_description_url=strPopupDirUrl+'long_description.asp'+'?product_id='+zidProductId;
long_description_window=window.open(long_description_url,'long_description_window','top='+((screen.availHeight-400)/2)+',left='+((screen.availWidth-400)/2)+'+,resizable=yes,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no,width=400,innerWidth=400,height=400,innerHeight=400');long_description_window.focus();}function OpenBlogThisWindow(blnContributorPage){blogThis_url=strPopupDirUrl+'blogThis.asp'+'?product_id='+zidProductId;if(blnContributorPage){blogThis_url=blogThis_url+"&contributorPage=true";}blogThis_window=window.open(blogThis_url,'blogThis_window','top='+((screen.availHeight-700)/2)+',left='+((screen.availWidth-900)/2)+'+,resizable=yes,status=no,scrollbars=yes,location=no,toolbar=no,directories=no,menubar=no,width=820,innerWidth=820,height=620,innerHeight=620');blogThis_window.focus();}function OpenEmailToFriendWindow(){email_to_friend_url=strPopupDirUrl+'email_to_friend.asp'+'?product_id='+zidProductId;
email_to_friend_window=window.open(email_to_friend_url,'email_to_friend_window','top='+((screen.availHeight-400)/2)+',left='+((screen.availWidth-400)/2)+'+,resizable=yes,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no,width=400,innerWidth=400,height=400,innerHeight=400');email_to_friend_window.focus();}function OpenAddToFavoritesWindow(){add_to_favorites_url=strPopupDirUrl+'add_to_favorites.asp'+'?product_id='+zidProductId;add_to_favorites_window=window.open(add_to_favorites_url,'add_to_favorites_window','top='+((screen.availHeight-200)/2)+',left='+((screen.availWidth-400)/2)+'+,resizable=yes,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no,width=400,innerWidth=400,height=200,innerHeight=200');add_to_favorites_window.focus();}function OpenReportViolationWindow(){report_violation_url=strPopupDirUrl+'report_violation.asp'+'?product_id='+zidProductId;
report_violation_window=window.open(report_violation_url,'report_violation_window','top='+((screen.availHeight-500)/2)+',left='+((screen.availWidth-500)/2)+'+,resizable=yes,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no,width=500,innerWidth=500,height=500,innerHeight=500');report_violation_window.focus();}function openViewSafeWindow(){view_safe_url=strPopupDirUrl+'safe.asp';view_safe_window=window.open(view_safe_url,'view_safe_window','top='+((screen.availHeight-465)/2)+',left='+((screen.availWidth-400)/2)+'+,resizable=yes,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no,width=400,innerWidth=400,height=465,innerHeight=465');view_safe_window.focus();}function openDiscountsWindow(intProductType){view_discounts_url=strPopupDirUrl+'discounts.asp'+'?type='+intProductType;
view_discounts_window=window.open(view_discounts_url,'view_discounts_window','top='+((screen.availHeight-480)/2)+',left='+((screen.availWidth-400)/2)+'+,resizable=yes,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no,width=400,innerWidth=400,height=480,innerHeight=480');view_discounts_window.focus();}function getLayer(strLayer){var i;var colLayers;if(document.layers){colLayers=layParent.document.layers;if(colLayers[strLayer])return colLayers[strLayer];for(i=0;i<colLayers;)return(getLayer(strLayer,colLayers[i++]));}else if(document.all){return document.all[strLayer];}else if(document.getElementById){return document.getElementById(strLayer);}}function btnOver(imgName){if(document.images){if(document.images[imgName].src!=eval(imgName+"_in.src")){document.images[imgName].src=eval(imgName+"_on.src");}}}function btnOut(imgName,blnForce){if(document.images){if((document.images[imgName].src!=eval(imgName+"_in.src"))||(blnForce)){document.images[imgName].src=eval(imgName+"_off.src");}}}
function btnIn(imgName){if(document.images){if(document.images[imgName].src!=eval(imgName+"_in.src")){document.images[imgName].src=eval(imgName+"_in.src");}}}function btnEditHideOver(strFrame){if(document.images){if(isVisible('iframe_'+strFrame)==false){document.images['btn_edit_hide_'+strFrame].src=edit_on.src;}else{document.images['btn_edit_hide_'+strFrame].src=hide_on.src;}}}function btnEditHideOut(strFrame){if(document.images){if(isVisible('iframe_'+strFrame)==false){document.images['btn_edit_hide_'+strFrame].src=edit_off.src;}else{document.images['btn_edit_hide_'+strFrame].src=hide_off.src;}}}function btnViewPriceOver(){if(document.images){if(isVisible('div_totals')==false){document.images.btn_view_price.src=view_price_on.src;}else{document.images.btn_view_price.src=hide_price_on.src;}}}function btnViewPriceOut(){if(document.images){if(isVisible('div_totals')==false){document.images.btn_view_price.src=view_price_off.src;}else{document.images.btn_view_price.src=hide_price_off.src;}}}
function showFrame(strFrame,blnEditHideClick,intProductType){if(isVisible('iframe_'+strFrame)==false){if(intProductType==228){hideAll();}btnIn('btn_'+strFrame);if((document.frmParms[strFrame+'_update'].value=='true')||(navigator.appName!='Microsoft Internet Explorer')){reloadFrame(strFrame);}makeVisible('iframe_'+strFrame);makeVisible('line_top_'+strFrame);makeVisible('line_bottom_'+strFrame);if(strFrame=='matting'){makeVisible('toolbar_matting');}if(document.images){if(blnEditHideClick){document.images['btn_edit_hide_'+strFrame].src=hide_on.src;}else{document.images['btn_edit_hide_'+strFrame].src=hide_off.src;}}}else{btnOut('btn_'+strFrame,true);makeInvisible('iframe_'+strFrame);makeInvisible('line_top_'+strFrame);makeInvisible('line_bottom_'+strFrame);if(strFrame=='matting'){makeInvisible('toolbar_matting');}if(document.images){if(blnEditHideClick){document.images['btn_edit_hide_'+strFrame].src=edit_on.src;}else{document.images['btn_edit_hide_'+strFrame].src=edit_off.src;}}}}function showTotals(){
if(isVisible('div_totals')==false){makeVisible('div_totals');makeVisible('iframe_totals');if(document.frmParms.totals_update.value=='true'){reloadFrame('totals');}}else{makeInvisible('div_totals');}}function showAddComment(){if(isVisible('iframe_add_comment')==false){btnIn('add_comment');makeVisible('iframe_add_comment');makeVisible('add_comment_separator');}else{btnOut('add_comment',true);makeInvisible('iframe_add_comment');makeInvisible('add_comment_separator');}}function clickMatTab(intMat){if(intMat!=document.frmParms.matting_num.value){document.frmParms.matting_num.value=intMat;if(document.images){document.images.toolbar_matting.src=eval('toolbar_matting'+intMat+'.src');}reloadFrame('matting');}}function isVisible(strItem){if(document.layers){return(getLayer(strItem).visibility=='visible')?true:false;}else{return(getLayer(strItem).style.visibility=='visible')?true:false;}}function makeVisible(strItem){if(document.layers){getLayer(strItem).visibility='show';getLayer(strItem).display='block';}else{
getLayer(strItem).style.visibility='visible';getLayer(strItem).style.display='block';}}function makeInvisible(strItem){if(document.layers){getLayer(strItem).visibility='hide';getLayer(strItem).display='none';}else{getLayer(strItem).style.visibility='hidden';getLayer(strItem).style.display='none';}}