/* Copyright (c) 2010, Accolade Designs */
var logoImg=new Image();logoImg="/web/images/Accolade_Designs.png";var opacity=1;var idArray=new Array();var imgArray=new Array();var linkArray=new Array();var curImage=0;var numImages=4;isOPERA=(navigator.userAgent.indexOf('Opera')>=0)?true:false;isIE=(document.all&& !isOPERA)?true:false;isDOM=(document.getElementById&& !isIE&& !isOPERA)?true:false;previous= -1;version=0;if(navigator.appVersion.indexOf("MSIE")!= -1){temp=navigator.appVersion.split("MSIE");version=parseFloat(temp[1])}isIE55up=version>=5.5;function preload(){imgArray[0]=new Image();imgArray[0].src="/web/images/preview100.gif";imgArray[1]=new Image();imgArray[1].src="/web/images/home1.jpg";imgArray[2]=new Image();imgArray[2].src="/web/images/home2.jpg";imgArray[3]=new Image();imgArray[3].src="/web/images/home3.jpg";linkArray[0]="/catalog/Plaques/1/sub_1_0";linkArray[1]="/catalog/Plaques/1/sub_1_0";linkArray[2]="/catalog/Corporate-Acrylic-Awards/0/sub_0_0";linkArray[3]="/catalog/Corporate-Trophies/3/sub_3_0";};function changePicture(){if(document.images){setTimeout("transformPicture();changePicture()",8000);}else{setTimeout("changePicture()",8000);}};function transformPicture(filterFunction){if(document.images){curImage++;if(curImage>=numImages){curImage=0;}if(filterFunction==null){filterFunction="revealTrans(duration=1.5, transition=12)";}var canBeFiltered=false;if(document.images.imgHome&&document.images.imgHome.style&&document.images.imgHome.style.filters){canBeFiltered=true;target=document.images.imgHome;}if(document.getElementById("imgHome")){target=document.getElementById("imgHome");canBeFiltered=true;}if(imgArray[curImage].complete){imgArray[curImage].src=imgArray[curImage].src;if(canBeFiltered&&isIE55up){target.style.filter=filterFunction;if(target.filters&&target.filters[0]){target.filters[0].Apply();target.filters[0].Play();}document.images.imgHome.src=imgArray[curImage].src;var link=document.getElementById("imgLink");if(link!=null){link.href=linkArray[curImage];}}else{fadeOut(document.getElementById('imgHome'));}}}};function fadeOut(target){if(opacity>.02){opacity-=0.02;target.style.opacity=opacity;setTimeout("fadeOut(document.getElementById('imgHome'));",0);}else{document.images.imgHome.src=imgArray[curImage].src;var link=document.getElementById("imgLink");if(link!=null){link.href=linkArray[curImage];}fadeIn(document.getElementById('imgHome'));}};function fadeIn(target){if(opacity<.99){opacity+=0.01;target.style.opacity=opacity;setTimeout("fadeIn(document.getElementById('imgHome'))",0);}else{opacity=1;}};expanded=new Array();function addExpanded(id){expanded[expanded.length]=id;};function removeExpanded(id){newExpanded=new Array();for(i=0,j=0;i<expanded.length;i++){if(expanded[i]!=id){newExpanded[j]=expanded[i];j++;}}expanded=newExpanded;};function movepic(img_name,img_src){if(document[img_name]!=null)document[img_name].src=img_src;};function processTree(id){if(hd(id)){if(content[id][0]){hideTree(id);}else{showTree(id);}}return false;};function processGroup(id){showTree(id);return false;};function hideTree(id){for(i=0;i<content[id][1].length;i++)hide(content[id][1][i]);content[id][0]=false;movepic('arrow'+id,'/web/images/nav/arrow_right.gif');removeExpanded(id);};function showTree(id){for(i=0;i<content[id][1].length;i++)show(content[id][1][i],'table-row');content[id][0]=true;movepic('arrow'+id,'/web/images/nav/arrow_down.gif');addExpanded(id);};function show(id,displayValue){if(document.getElementById(id)!=null){if(isDOM){document.getElementById(id).style.display=(displayValue)?displayValue:"block";}else if(isIE){document.all[id].style.display="block";}}};function hide(id){if(isDOM){document.getElementById(id).style.display="none";}else if(isIE){document.all[id].style.display="none";}};function highlight(id){myElement=document.getElementById(id);if(myElement!=null){myElement.style.borderColor="#9999CC";myElement.style.color="#333333";myElement.style.background="#FEDAA5";}};function m1(element){element.style.backgroundColor='#FFF6C0';};function m2(element){if(typeof selectStr!="undefined"&&element.id!=selectStr){element.style.backgroundColor='#FFFFFF';}else if(typeof selectStr=="undefined"){element.style.backgroundColor='#FFFFFF';}else if(element.id==selectStr){element.style.backgroundColor='#FEDAA5';}};function transitMap(){myWindow=window.open("","mywindow","location=0,status=1,scrollbars=0,width=600,height=680");myWindow.document.write('<div style="font-family: georgia,verdana, arial, helvetica, sans-serif;font-size:12px;"><div style="padding-bottom:3px;border-bottom:1px solid #C9C9C9;margin-bottom:8px;width:100%;font-size:20px;">FedEx Ground Transit Map</div>');myWindow.document.write('<div><img alt="" title="" src="/web/images/fedex_gnd_map.png"/></div>');myWindow.document.write('<div style="padding-bottom:30px;"><img alt="" title="" src="/web/images/gnd_legend.png"/><div style="padding-left:20px;padding-top:10px;">* Transit time in business days.<br><br>* FedEx Ground delivers on Mon-Fri. Deliveries to residential addresses are on Tues-Sat.</div></div>');myWindow.document.write('<div style="padding-bottom:3px;border-bottom:1px solid #C9C9C9;margin-bottom:8px;width:100%;font-size:20px;">Military Address</div><div>We will ship via US Postal Office for APO & FPO addresses. Please select AA, AE, or AP for the State. Please allow 2-3 weeks for delivery.</div></div>');myWindow.document.close();};String.prototype.endsWith=function(suffix){return this.indexOf(suffix,this.length-suffix.length)!== -1;};function eP(val){return(typeof(val)!=='undefined'&&val!=null);};function hd(val){if(es(val)){return false;}for(var i=0;i<val.length;i++){if(!isDigit(val.charAt(i))){return false;}}return true;};function isDigit(num){if(num.length>1){return false;}var string="1234567890";if(string.indexOf(num)!= -1){return true;}return false;};function RoundTo(value,decimals){return(Math.round(value*Math.pow(10,decimals))/Math.pow(10,decimals)).toFixed(decimals);};function es(text){return text==null||$.trim(text)==""||$.trim(text)=="<br>";};function isArray(obj){return obj.constructor==Array;};function gy(o,n,min,max,targetTips){if(o.val().length>max||o.val().length<min){o.addClass('ui-state-error');aA("Length of "+n+" must be between "+min+" and "+max+".",targetTips);return false;}else{return true;}};function checkRegexp(o,regexp,n){if(!(regexp.test(o.val()))){o.addClass('ui-state-error');aA(n);return false;}else{return true;}};function partial(func){var args=Array.prototype.slice.call(arguments,1);return function(){var allArguments=args.concat(Array.prototype.slice.call(arguments));return func.apply(this,allArguments);};};function clone(obj){if(obj==null||typeof(obj)!='object')return obj;var temp=new obj.constructor();for(var key in obj)temp[key]=clone(obj[key]);return temp;};function testClone(){var newStudio=clone(studio);};function showTab(trigger){$(trigger).parent('div').children('a').each(function(i){if(trigger.id==this.id){$(this).removeClass().addClass('tabOn');$(this).parent('div').next('div').children('#tabBody_'+i).fadeIn(500).find('input:first').focus();}else{$(this).removeClass().addClass('tabOff');$(this).parent('div').next('div').children('#tabBody_'+i).hide();}})};function loadAccordion(trigger,action,params,et){$(trigger).toggle(function(){$('body').css({'cursor':'wait'});$(trigger).children('a').append('<span class="ld"> Loading... <img style="vertical-align:middle;"  src="/web/images/loader.gif" /></span>');$(trigger).next('div').load(action,params,function(){$('body').css({'cursor':'default'});$(this).hide().insertAfter($(trigger)).slideDown(500);if(et!=null)et();$(trigger).children('a').children('span').remove();});return false;},function(){$(trigger).next('div').slideUp(500);});};function debug(text){}

