arr=new Array("shoesstart.html",
        "shoesbest2.htm",
		"shoes_decorated_1.htm",	
        "shoes_low_heel_1.html",
		"shoesa.htm",
		//"shoesb.htm",
		//"shoesb1.htm",
		"shoes_medium_heel_1.html",
		"shoesd.htm",
		"shoes_medium_heel_3.htm",
		"shoes_high_heel_1.html",
		"shoes_high_heel_2.html",
		"shoes_high_heel_3.html",
		"shoes_jelewry_sandals.html",
		"shoesg.htm",
		"shoes_sandals_6.html",
		"shoes_sandals_7.html",
        "shoes_sandals_2.html",
		//"shoes_sandals_8.html",
		"shoes_sandals_9.html",
        "shoesh1.htm",
        "shoes_sandals_4.html",
		"shoes_sandals_5.htm", 
        "shoesslides.htm",
		"shoes_slides_mules_2.htm",
        "shoesh3.htm",        
        "shoes_colored_1.html", 
        "shoes_colored_2.html",
        "shoesj1.htm",
        "shoes_clear_1.html",
        "shoes_clear_2.html",
		"shoes_clear_3.html",
		"shoes_ewide_1.html",
		"shoesm.htm",
		"shoesn.htm");
		
		 
function ck(form){
        for (i=0; i<arr.length; i++){
		if(form.shoes[i].selected)
        break;
	}
    ckvalue=i;
if(ckvalue!=0){
	window.location=arr[i-1];
	}			
}
        
        
function forword(){

	for(i=0; i<arr.length; i++)
		if(window.location.href.indexOf(arr[i])!=-1)
			window.location=arr[i+1]
}

function backword(){
	for(i=0; i<arr.length; i++)
		if(window.location.href.indexOf(arr[i])!=-1)			
			window.location=arr[i-1]
}

	function dropdown_menu(){
	var menu="";
	menu+="<FORM name=form1><SELECT name=shoes onchange='ck(this.form)'>"
	menu+="<OPTION>Select your bridal shoes</OPTION>"
	menu+="<OPTION>Best Seller 1</OPTION>"
	menu+="<OPTION>Best Seller 2</OPTION>"
	menu+="<OPTION>Decorated shoes</OPTION>"
	menu+="<OPTION>Low&nbsp; heel shoes 1</OPTION>"
	menu+="<OPTION>Low&nbsp; heel shoes 2</OPTION>"
	//menu+="<OPTION>Low&nbsp; heel shoes 3</OPTION>"
	//menu+="<OPTION>Low&nbsp; heel shoes 4</OPTION>"
	menu+="<OPTION>Medium heel shoes 1</OPTION>"
	menu+="<OPTION>Medium heel shoes 2</OPTION>"
	menu+="<OPTION>Medium heel shoes 3</OPTION>"
	menu+="<OPTION>High heel shoes 1</OPTION>"
	menu+="<OPTION>High heel shoes 2</OPTION>"
	menu+="<OPTION>High heel shoes 3</OPTION>"
	menu+="<OPTION>Beach Bride Jewelry Sandals</OPTION>"
	menu+="<OPTION>Sandals 1</OPTION>"
	menu+="<OPTION>Sandals 2</OPTION>"
	menu+="<OPTION>Sandals 3</OPTION>"
	menu+="<OPTION>Sandals 4</OPTION>"
	menu+="<OPTION>Sandals 5</OPTION>"
	menu+="<OPTION>Sandals 6</OPTION>"
	menu+="<OPTION>Sandals 7</OPTION>"
	menu+="<OPTION>Sandals 8</OPTION>"
	//menu+="<OPTION>Sandals 9</OPTION>"
	menu+="<OPTION>Slides and Mules 1</OPTION>"
	menu+="<OPTION>Slides and Mules 2</OPTION>"
	menu+="<OPTION>Boots & Sneakers</OPTION>"
	menu+="<OPTION>Colored shoes 1</OPTION>"
	menu+="<OPTION>Colored shoes 2</OPTION>"
	menu+="<OPTION>Colored shoes 3</OPTION>"
	menu+="<OPTION>Clear shoes 1</OPTION>"
	menu+="<OPTION>Clear shoes 2</OPTION>"
	menu+="<OPTION>Clear shoes 3</OPTION>"
	menu+="<OPTION>Extra wide shoes</OPTION>"
	menu+="<OPTION>Children & Young Miss Shoes 1</OPTION>"
	menu+="<OPTION>Children & Young Miss Shoes 2</OPTION></SELECT></FORM>"
	
	document.write(menu);
	for(i=1; i<arr.length; i++)
		if(window.location.href.indexOf(arr[i])!=-1)
			document.form1.shoes.options[i+1].selected=true;
}

function item(product,style,fabric,description,size,price){
			this.product=product;
			this.style=style;
			this.description=description;
			this.fabric=fabric;
			this.size=size;
			this.price=price;
		if(item.arguments[6]!=null)
			this.picture=item.arguments[6];
}

function writeItems(){
var str="";

returnValue="";
for(arri=0; arri<arr.length; arri++){
		if(window.location.href.indexOf(arr[arri])!=-1){
			returnValue=arr[arri];
		}
}


for(itemsLength=0; itemsLength<arguments.length; itemsLength++){
	itemI=arguments[itemsLength]
	

str+='<FORM method="POST" action="http://www.mikawed.com">';
//str+="<TD colspan=2>";
str+="<input type=hidden name=name value='" + itemI.product +" "+ itemI.style+"'>"
str+="<input type=hidden name=price value='" + itemI.price +"'>"
str+="<input type=hidden name=sh value='1.316'>"
str+="<input type=hidden name=return value='http://www.mikawed.com/" + returnValue +"'>"
str+="<B>" + itemI.style +"</B>"

//addition to shoes 1000
//if (itemI.style=="#1000 New"){
	//str+='<DIV align=center><FONT COLOR=RED>As seen on ABC Television\'s "The View" and<BR>Arts & Entertainment Television</FONT></Div>';
	//}
	if (itemI.style=="#771" || 
		itemI.style=="#773" ||
		itemI.style=="#777"){
		str+='<BR>The New “Couture” Silk Thong.';
	}


if(itemI.fabric!=""){
	var splitArrItem=itemI.fabric.split("|")
	if(returnValue=="shoes_jelewry_sandals.html")
		str+="";
	else
		str+="<BR>Fabric & Color: "
	if (splitArrItem.length==1){
		str+="<input type=hidden name=custom2 value='" + splitArrItem[0] +"'>";
		str+=splitArrItem[0];
	}
	else{
		str+="<SELECT name=custom2>"
		if(itemI.style=="#Chianti" || itemI.style=="#Amaretto"){
			str+="<OPTION>Select color"}
		else
			str+="<OPTION>Select fabric & color"
		
		for(s=0; s<splitArrItem.length; s++){
			str+="<option>"+splitArrItem[s]
		}
	str+="</select>"
	}
}


str+="<BR>"+itemI.description
//addition only to shoes #49073
	if (	itemI.style=="#59077"||
	itemI.style=="#59075")
		{
	str+="<div align=center><font color=red>As advertise in<br> current 'Modern Bride' and 'Brides'</font></div>"};

/*str+="<BR>"
if (	itemI.style=="#Magic"||
itemI.style=="#Delilah"||
itemI.style=="#Prestige"||
itemI.style=="#Gala"||
itemI.style=="#Chantilly/702"||
itemI.style=="#May/206"||
itemI.style=="#Lacey"||
itemI.style=="#Glitz"||
itemI.style=="Iliana/200"||
itemI.style=="#Chrissy"||
itemI.style=="Iliana"||
itemI.style=="Chantilli"||
itemI.style=="Luscious"||
itemI.style=="Divine"||
itemI.style=="#Sunny"||
itemI.style=="#Brilliant"||
itemI.style=="#Sabrina"||
itemI.style=="#Glow"||
itemI.style=="#Lovely"||
itemI.style=="#Joyful"||
itemI.style=="#In Love"||
itemI.style=="#Breathless"||
itemI.style=="#Glory"||
itemI.style=="#Jewel"||
itemI.style=="#Ultimate"||
itemI.style=="#Spelndor"||
itemI.style=="#Passion"||
itemI.style=="#Paris"||
itemI.style=="#Leah"||
itemI.style=="#Vibrant"||
itemI.style=="#Captive/503"||
itemI.style=="#Chablis/707"||
itemI.style=="#Laurel"||
itemI.style=="#Topaz"||
itemI.style=="#Misty"||
itemI.style=="#Eden"||
itemI.style=="#Erin"||
itemI.style=="#Vanity"||
itemI.style=="#Captive"||
itemI.style=="#Chablis"||
itemI.style=="#Sangria")
	
	{
	str+="<div align=center><font color=red>Shoes can be dyed ivory upon request - We do not take returns on dyed shoes.</font></div>"};

*/

//addition only to shoes #Mosaic
	/*if (itemI.style=="#Mosaic"){			
		arrRibben=new Array("Yellow","Green","White","Blue","Pink","Lilac","Red","Orange","Black","Fuschia","Silver");
		str+="<BR>Ribbon Color: "
		str+="<SELECT name=custom5>"
		str+="<OPTION>Select Ribbon Color"
		for(Ri=0; Ri<11; Ri++){
			str+="<option value='Ribbon Color "+arrRibben[Ri]+"'>"+arrRibben[Ri]
		}
	str+="</select>"
	};*/

//str+="<BR>"+itemI.description
//addition only to shoes #3030 #6830 #6835
if (itemI.style=="#Mosaic") 
{
	str+="<div><Price includes 11 ribbon colors as follows:Yellow,Green,White,Blue,Pink,Lilac,Red,Orange,Black,Fuschia,Silver</div>"};


if(itemI.product!="Handbag"){
if(itemI.size!=""){
	arrSize=itemI.size.split("|");
	str+="<BR>Size: <Select name=custom4>"
	str+="<option>Select shoes size"
	for(l=0; l<arrSize.length; l++){
		arrSizeLetter=arrSize[l].split("#");
		for(nS=1; nS<arrSizeLetter.length; nS++){
			if(arrSizeLetter[nS].indexOf("-")!=-1){
				arrSizeRange=arrSizeLetter[nS].split("-");
				for(r=arrSizeRange[0]*1; r<=arrSizeRange[arrSizeRange.length-1]*1; r++){
					str+="<option value='Size: " + arrSizeLetter[0]+ r +"'>"+ arrSizeLetter[0]+ r
					str+="<option value='Size: " + arrSizeLetter[0]+ r +" 1/2'>"+ arrSizeLetter[0]+ r+" 1/2"
				}
			}
			else	
				str+="<option value='Size: " + arrSizeLetter[0]+ arrSizeLetter[nS] +"'>"+ arrSizeLetter[0]+ arrSizeLetter[nS]
		}
	}
	str+="</select>"
}
	
	//	str+="<BR><BR>"+itemI.description
//addition only to shoes #beach sandals
	if (itemI.style=="#Romantic Ruby" || 
		itemI.style=="#Champagne Toast" || 
		itemI.style=="#Red Hot Love" || 
		itemI.style=="#Clearly Love" ||
		itemI.style=="#Lavender Lace" ||
		itemI.style=="#Crystal Princess"||
		itemI.style=="#Beach Bride"||
		itemI.style=="#Bridal Elegance"||
		itemI.style=="#Pink Paradise"||
		itemI.style=="#Heavenly Glow"||
		itemI.style=="#Seaside Splendor"||
		itemI.style=="#Hearts Desire"||
		itemI.style=="#Heirloom Treasure")
		{
	str+="<div align=left><font color=red>* Please contact us for custom sizes </font></div>"};
}
//str+="</TD><TD valign='bottom'>"
str+="<BR><BR><center>Price: $"+itemI.price+".00"
str+="<BR><BR><input type=hidden name=add value=1'>"
//str+="<input type=image name=Order src='http://www.mikawed.com/cart/cart_add.gif' border=0 onClick='return required_size_fabric(this.form)'>"
//str+="<BR>"
//str+="<a href='http://www.mikawed.com'><img src='http://www.mikawed.com/cart/cart_view.gif' border=0></a>"
str+="</center>"//</TD>
str+="</form>"

if(itemsLength<arguments.length-1)
		str+="<BR><HR>";
}
document.write(str);
}

function required_size_fabric(form){	
	if(form.custom4.options[form.custom4.options.selectedIndex].text=="Select shoes size" && form.custom2.options!=null &&
	form.custom2.options[form.custom2.options.selectedIndex].text=="Select fabric & color"){
		alert("Please select shoes size & fabric & color!")
		return false;
	}else if(form.custom4.options[form.custom4.options.selectedIndex].text=="Select shoes size"){
		alert("Please select shoes size!")
		return false;
	}else if(form.custom2.options!=null && form.custom2.options[form.custom2.options.selectedIndex].text=="Select fabric & color"){
		alert("Please select fabric & color!")
		return false;
	}
	else{
		return true};
}

function printPicture(pictureName){
	PictureStr1="";
	PictureStr1+="<A HREF='http://www.mikawed.com/pic/shoes/"+pictureName+"' target='_blank'>";
	PictureStr1+="<IMG src='http://www.mikawed.com/pic/shoes/"+pictureName+"' width=200>";
	PictureStr1+="</A>";
	document.write(PictureStr1);
}


