function makeWin(imsrc,ww,wh){ww=ww+25;wh=wh+50;w1=window.open('','w1','width='+ww+',height='+wh+',status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes');w1.document.open();w1.document.write("<html><head><title>Image Zoom<\/title><META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\"><META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\"><\/head>");w1.document.write("<body bgcolor='#FFFFFF' text='#000000' leftmargin=2 topmargin=10><p align=center>");w1.document.write("<img name=theimg src="+imsrc+"><br>");w1.document.write("<a href=\"javascript:window.close();\"><font size=1 face=tahoma color=#000000>close window<\/font><\/a><\/body><\/html>");w1.document.focus()};function mailpage(){mail_str="mailto:?subject=Check out the "+document.title;mail_str+="&body=I thought you might be interested in the "+document.title;mail_str+=". You can view it at, "+location.href;location.href=mail_str}var br="#";function chcol(){for(var i=0;i<document.coll.colle.length;i++)if(document.coll.colle[i].selected)br=document.coll.colle[i].value;if(br!="#")document.location=br}var br="#";function chcolt(){for(var i=0;i<document.collt.collet.length;i++)if(document.collt.collet[i].selected)br=document.collt.collet[i].value;if(br!="#")document.location=br}var br="#";function chmlb(){for(var i=0;i<document.mlb.mlbe.length;i++)if(document.mlb.mlbe[i].selected)br=document.mlb.mlbe[i].value;if(br!="#")document.location=br}var br="#";function chcol2(){for(var i=0;i<document.coll2.colle2.length;i++)if(document.coll2.colle2[i].selected)br=document.coll2.colle2[i].value;if(br!="#")document.location=br}function c4_show_tab(t){curr_tab=document.getElementById('c4tab'+t);var tobj=document.getElementById("c4-tabs");tobj_lis=tobj.getElementsByTagName("li");for(i=1;i<=4;i++){document.getElementById('c4tab'+i).className="c4-hide-tab";if(tobj_lis[i-1])tobj_lis[i-1].className=""}curr_tab.className="c4-show-tab";tobj_lis[t-1].className="current"}var win=null;function NewWindow(mypage,w,h){LeftPosition=(screen.width)?(screen.width-w)/2:0;TopPosition=(screen.height)?(screen.height-h)/2:0;settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable';win=window.open(mypage,'',settings)}function setCookie(c_name,value){var exdate=new Date();exdate.setTime(exdate.getTime()+(1800*1000));document.cookie=c_name+"="+escape(value)+";expires="+exdate.toGMTString()}function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end))}}return""}var mobileIndicators=["Smartphone","WindowsCE","Palm","hiptop","amoi","AvantGo","Alcatel-","AnexTek","AU-MIC","AUDIOVOX-","BlackBerry","Blazer","CDM-","Dopod-","Ericsson","Hitachi-","HPiPAQ-","HTC-","Droid","Android","iPhone","iPod","KDDI","LG","MM-","MO01","MOT-","Motorola","N515i","N525i","NEC-","Nokia","NOKIA","OpenWeb","Operamini","Opera mini","OPWV","Panasonic","Pantec","PG-","PLS","PM-","PN-","portalmmm","QCI-","RL-","SAGEM","Samsung","SAMSUNG","SCH","SCP-","SEC-","Sendo","SGH-","SHARP-","SIE-","SonyEricsson","SPH","SPV","UP.Browser","UP.Link","V60t","VI600","VK530","VM4050","Vodafone","ZTE","802SH"];function mobileQueryString(ji){hu=window.location.search.substring(1);gy=hu.split("&");for(i=0;i<gy.length;i++){ft=gy[i].split("=");if(ft[0]==ji){return ft[1]}}return(false)}var fromMobileCookie=getCookie("fromMobileSite");if(fromMobileCookie!='true'){var fromMobile=mobileQueryString("fromMobileSite");if((fromMobile=='false')||(fromMobile=='')){var isMobile=false;var agent=navigator.userAgent.toLowerCase();for(var i=0;i<mobileIndicators.length;i++){var indicator=mobileIndicators[i].toLowerCase();if(agent.indexOf(indicator)>-1){isMobile=true}}if(isMobile){if(location.host.indexOf("advantagebridal.com")!=-1){var host="http://m.advantagebridal.com"+location.pathname;location.replace(host)}}}else{setCookie('fromMobileSite','true')}}var fwHideMenuTimer=0;function FW_clearTimeout(){if(fwHideMenuTimer)clearTimeout(fwHideMenuTimer);fwHideMenuTimer=null;fwDHFlag=false}function FW_startTimeout(){fwStart=new Date();fwDHFlag=true;fwHideMenuTimer=setTimeout("fwDoHide()",750)}function fwDoHide(){if(!fwDHFlag)return;var elapsed=new Date()-fwStart;if(elapsed<1000){fwHideMenuTimer=setTimeout("fwDoHide()",1100-elapsed);return}fwDHFlag=false;MM_showHideLayers('Layer4','','hide')}var last='nothing';function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)}if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&document.getElementById)x=document.getElementById(n);return x}function HideLayers(){var i,p,v,obj,args=[last,'','hide'];for(i=0;i<(args.length-2);i+=3)if((obj=MM_findObj(args[i]))!=null){v=args[i+2];if(obj.style){obj=obj.style;v=(v=='show')?'visible':(v='hide')?'hidden':v}obj.visibility=v}}function HideLayers1(){if(event.srcElement.tagName=='A'){return(true)};var i,p,v,obj,args=[last,'','hide'];for(i=0;i<(args.length-2);i+=3)if((obj=MM_findObj(args[i]))!=null){v=args[i+2];if(obj.style){obj=obj.style;v=(v=='show')?'visible':(v='hide')?'hidden':v}obj.visibility=v}}function MM_showHideLayers(){if(last!='nothing'){HideLayers(last,'','hide')};var i,p,v,obj,args=MM_showHideLayers.arguments;for(i=0;i<(args.length-2);i+=3)if((obj=MM_findObj(args[i]))!=null){v=args[i+2];if(obj.style){obj=obj.style;v=(v=='show')?'visible':(v='hide')?'hidden':v}obj.visibility=v}last=args[0]}if(document.all)document.onclick=HideLayers1;function viewimg(n,img,w,h){foto1=new Image();foto1.src=(img);viewFotos(n,img,w,h)}function viewFotos(name,img,w,h){features="toolbar=no,location=no,directories=no,status=no,menubar=no,"+"scrollbars=yes,resizable=yes,width="+w+",height="+h;dlg=window.open("","Details",features);dlg.document.write("<html><head><title>"+name+" Zoom</title></head>");dlg.document.write("<body bgcolor=white><center>");dlg.document.write("<a href=# onClick=window.close();>");dlg.document.write("<table width=100% height=100%>");dlg.document.write("<tr><td align=center valign=middle>");dlg.document.write("<img src="+img+">");dlg.document.write("</td></tr>");dlg.document.write("<tr><td align=center valign=middle>");dlg.document.write("<a href=# onClick=window.close();>");dlg.document.write("<font size=1 face=verdana>click to close</font></a>");dlg.document.write("</td></tr>");dlg.document.write("</table></body></html>")}function openWindow(url){popupWin=window.open(url,'openWin',"width=400, height=250, scrollbars=yes")}function ShowMoreLinks(){if(document.getElementById){document.getElementById('morebc').style.display='block';var mnu=document.getElementById("imenus0");if(mnu){mnu.style.position="relative";mnu.style.left="0px";mnu.style.top="0px";mnu.style.display="block"}}}function AddToRegistry(src){var frm;var Options="";for(var i=0;i<document.forms.length;i++){if(document.forms[i].action.match("test-order")||document.forms[i].action.match("order.store.yahoo.com")||document.forms[i].action.match("order.store.yahoo.net")){frm=document.forms[i];for(j=0;j<frm.elements.length;j++){var optname=frm.elements[j].name;re1=/vwitem(\d+)/;re2=/vwquantity/;re3=/vwattr/;re4=/vwattr0/;if($(frm.elements[j]).is(":visible")&&frm.elements[j].type!="hidden"&&!re1.test(optname)&&!re2.test(optname)&&(!re3.test(optname)||re4.test(optname))){if(Options.length>0)Options+="|";optname=optname.replace(/vwattr(\d+)_/,'');Options+=encodeURIComponent(optname)+"="+encodeURIComponent(frm.elements[j].value)}}break}}self.location.href=src+"&OPTIONS[0]="+Options}
