function pd_build_styles(a){var b=styles_array[a];_$("st_name").innerHTML=b.name;var c="";if(style_id==0){if(b.m_id>0){style_id=b.m_id}else if(b.w_id>0){style_id=b.w_id}else if(b.n_id>0){style_id=b.n_id}}if(b.w_id>0){if(style_id==b.w_id){c+=pd_map.wide+" | ";if(b.w_desc==""){_$("st_description").innerHTML=pd_map.style_desc_wide}else{_$("st_description").innerHTML=b.w_desc}}else{c+='<a href="javascript:pd_change_style('+b.w_id+');">'+pd_map.wide+"</a> | "}}if(b.m_id>0){if(style_id==b.m_id){c+=pd_map.medium+" ";if(b.n_id>0){c+=" | "}if(b.m_desc==""){_$("st_description").innerHTML=pd_map.style_desc_medium}else{_$("st_description").innerHTML=b.m_desc}}else{c+='<a href="javascript:pd_change_style('+b.m_id+');">'+pd_map.medium+"</a>";if(b.n_id>0){c+=" | "}}}if(b.n_id>0){if(style_id==b.n_id){c+=pd_map.narrow+" ";if(b.n_desc==""){_$("st_description").innerHTML=pd_map.style_desc_narrow}else{_$("st_description").innerHTML=b.n_desc}}else{c+='<a href="javascript:pd_change_style('+b.n_id+');">'+pd_map.narrow+"</a> "}}_$("st_sizes").innerHTML=c;_$("st_number").innerHTML=a+1+" of "+styles_array.length;_$("st_image").style.background="url( "+pd_map.image_path+"/"+b.tag+".png) no-repeat top left";_$("regular").checked=true;_$("styleID").value=style_id}function pd_pick_style(a){found=false;for(x=0;x<=styles_array.length-1;x++){if(styles_array[x].n_id==a||styles_array[x].m_id==a||styles_array[x].w_id==a){current_pos=x;pd_change_style(a);found=true;break}}if(!found){current_pos=0;pd_build_styles(current_pos)}}function pd_change_style(a){style_id=a;if(style_id<1e3){_$("regular").checked=true;pd_build_styles(current_pos)}else{_$("custom").checked=true}_$("styleID").value=style_id}function pd_move(a){if(a=="next"){if(styles_array.length<=current_pos+1){current_pos=0}else{current_pos=current_pos+1}}else if(a=="prev"){if(current_pos==0){current_pos=styles_array.length-1}else{current_pos=current_pos-1}}style_id=0;pd_build_styles(current_pos)}function st_results(a,b){if(b=="show"){a.style.backgroundPosition="top right"}else if(b=="hide"){a.style.backgroundPosition="top left"}}var pd_map={wide:"Wide",medium:"Medium",narrow:"Narrow",style_desc_wide:"Width: 630px, the wide style is good for blog posts.",style_desc_medium:"Width: 300px, the medium style is good for general use.",style_desc_narrow:"Width 150px, the narrow style is good for sidebars etc.",style_desc_micro:"Width 150px, the micro style is useful when space is tight.",image_path:""};var styles_array=new Array;var s=new pd_style;s.name="Aluminum";s.n_id=101;s.m_id=102;s.w_id=103;s.tag="st-alum-light";styles_array.push(s);var s=new pd_style;s.name="Plain White";s.n_id=104;s.m_id=105;s.w_id=106;s.tag="st-plain-light";styles_array.push(s);var s=new pd_style;s.name="Plain Black";s.n_id=107;s.m_id=108;s.w_id=109;s.tag="st-plain-dark";styles_array.push(s);var s=new pd_style;s.name="Paper";s.n_id=110;s.m_id=111;s.w_id=112;s.tag="st-paper";styles_array.push(s);var s=new pd_style;s.name="Skull Dark";s.n_id=113;s.m_id=114;s.w_id=115;s.tag="st-skull-dark";styles_array.push(s);var s=new pd_style;s.name="Skull Light";s.n_id=116;s.m_id=117;s.w_id=118;s.tag="st-skull-light";styles_array.push(s);var s=new pd_style;s.name="Micro";s.n_id=157;s.n_desc=pd_map.style_desc_micro;s.tag="st-micro";styles_array.push(s);var s=new pd_style;s.name="Plastic White";s.n_id=119;s.m_id=120;s.w_id=121;s.tag="st-plastic-white";styles_array.push(s);var s=new pd_style;s.name="Plastic Grey";s.n_id=122;s.m_id=123;s.w_id=124;s.tag="st-plastic-grey";styles_array.push(s);var s=new pd_style;s.name="Plastic Black";s.n_id=125;s.m_id=126;s.w_id=127;s.tag="st-plastic-black";styles_array.push(s);var s=new pd_style;s.name="Manga";s.n_id=128;s.m_id=129;s.w_id=130;s.tag="st-manga";styles_array.push(s);var s=new pd_style;s.name="Tech Dark";s.n_id=131;s.m_id=132;s.w_id=133;s.tag="st-tech-dark";styles_array.push(s);var s=new pd_style;s.name="Tech Grey";s.n_id=134;s.m_id=135;s.w_id=136;s.tag="st-tech-grey";styles_array.push(s);var s=new pd_style;s.name="Tech Light";s.n_id=137;s.m_id=138;s.w_id=139;s.tag="st-tech-light";styles_array.push(s);var s=new pd_style;s.name="Working Male";s.n_id=140;s.m_id=141;s.w_id=142;s.tag="st-working-male";styles_array.push(s);var s=new pd_style;s.name="Working Female";s.n_id=143;s.m_id=144;s.w_id=145;s.tag="st-working-female";styles_array.push(s);var s=new pd_style;s.name="Thinking Male";s.n_id=146;s.m_id=147;s.w_id=148;s.tag="st-thinking-male";styles_array.push(s);var s=new pd_style;s.name="Thinking Female";s.n_id=149;s.m_id=150;s.w_id=151;s.tag="st-thinking-female";styles_array.push(s);var s=new pd_style;s.name="Sunset";s.n_id=152;s.m_id=153;s.w_id=154;s.tag="st-sunset";styles_array.push(s);var s=new pd_style;s.name="Music";s.n_id=155;s.m_id=156;s.tag="st-music";styles_array.push(s);var style_id=0;