﻿
function showFlash(filename)
{
	$f('video',
	{
		src:'/JS/flowplayer/flowplayer-3.1.5.swf',wmode:'opaque'
	},
	{
		plugins:
		{
			controls:
			{
				tooltips:
				{
					buttons:true,
					scrubber:false,
					play:'Play',
					pause:'Pause',
					fullscreen:'Full Screen'
				},
				tooltipColor:'#112233',
				tooltipTextColor:'#8899ff'
			}
		},
		key:'#$3c3e4f1e0e56dd0bddc',
		play:
		{
			url:'/JS/flowplayer/pink-play-button.png',
			width:84,
			height:84,
			opacity:0.9,
			replayLabel:'Play Again'
		},
		playlist:
		[
//		'flash/conver.jpg',
		{
			url:filename,
			autoBuffering:true,
			autoPlay:false
		}//,
//		'flash/conver.jpg'
		],
		clip:
		{
			onStart:function (clip)
			{
				if(started)
				{
					pageTracker._trackEvent('video','play',escape(clip.url),1);
					timeTracker._recordStartTime();
				}
			},
			onResume:function (clip)
			{
				if(started)
				{
					pageTracker._trackEvent('video','play',escape(clip.url),1);
					timeTracker._recordStartTime();
				}
			},
			onPause:function (clip)
			{
				if(started)
				{
					pageTracker._trackEvent('video','pause',escape(clip.url),1);
					timeTracker._recordEndTime();
					timeTracker._track(pageTracker,'video timer',escape(clip.url));
				}
				started=true;
			},
			onStop:function (clip)
			{
				if(started)
				{
					pageTracker._trackEvent('video','stop',escape(clip.url),1);
					timeTracker._recordEndTime();
					timeTracker._track(pageTracker,'video timer',escape(clip.url));
				}
			},
			onLastSecond:function (clip)
			{
				if(started)
				{
					pageTracker._trackEvent('video','finish',escape(clip.url),1);
					timeTracker._recordEndTime();
					timeTracker._track(pageTracker,'video timer',escape(clip.url));
				}
			}
		}
	});
}
var actionID="";
function ShowOverlay(obj)
{
	var id=obj.id;
	var value=getObj("chkLogin").value;
	var api;
	if(value=="True")
	{
		api=$("#"+id).overlay({color:'#ccc',top:'30%',expose:'#f1f1f1',api:true});
	}
	else
	{
		actionID=id;
		api=$("#btn_Login").overlay({color:'#ccc',top:'30%',expose:'#f1f1f1',api:true});
	}
	api.load();
}
function CheckLogin()
{
	var value=getObj("chkLogin").value;	
	if(value=="True")
	{
		$("#loginstate").html(mHeader_LogoutState);
	$("#loginstate").attr("href",sNonSecurePath + "Logout.aspx");	

	}
}

function closePop()
{

	var api=$("#btn_Login").overlay(
	{
		oneInstance:false,api:true
	});
	api.close();
	getObj("chkLogin").value="True";
	CheckLogin();
	if(actionID=="btn_photo")
	{
	api=$("#"+actionID).overlay({color:'#ccc',top:'30%',expose:'#f1f1f1',api:true});
	api.load()
	}
	else if(actionID=="favorite_add")
	{	
	$("#"+actionID).click();
	}
	
} 
function closePhoto()
{
$("#btn_photo").overlay().close();		
}
function closeEmail()
{
$("#btn_tell").overlay().close();
$("#optChk").attr("checked","");
$("#msgdiv").css("display","none"); 
}
function selectImg()
{
	var zoom="";
	var src="";
	var p=null;
	$("#items1 a").click(function ()
	{
		zoom=$(this).attr("href");
		src=$(this).attr("rev");
		var zoomid=$("#Zoomer");
		zoomid.attr("href",zoom);
		zoomid.find("img").attr("src",src);
		var detail=$("#detailimg").fadeTo("fast",1);
		var flydiv=$("#startdiv");
		flydiv.html("<img id='flyimg'   src='"+src+"' />");
		p=detail.position();
		flydiv.css(
		{
			top:p.top,left:p.left
		});
		CheckZoom(zoom);
	}).filter(":first").click();
	
	$("#items1 a").mouseover(function ()
	{
		zoom=$(this).attr("href");
		CheckZoom(zoom);
	})
	MagicZoomPlus.update('Zoomer',zoom,src,'show-title: false');
}
function CheckZoom(zoomImg)
{
	var noZoom=$("#nozoom");
//	alert(zoomImg);
	if((zoomImg.indexOf("detail")>-1)||(zoomImg.indexOf("nozoom")>-1)||(zoomImg.indexOf("loadingzoom")>-1))
	{
		noZoom.show();
	}
	else
	{
		noZoom.hide();
	}
	var DetailImg=$("#detailimg");	
	var p=DetailImg.position();
	var p_tab=$("#txt_tab").position();
	$("#nozoom").css(
	{
		top:p.top,left:p.left,width:455,height:p_tab.top-p.top
	});
}
function showImgListAndPrice(result)
{
	var data=result.split('##');
	var path=data[0];
	var imglist=data[1];	
	var price=data[2];
	var shipTime=data[3];
	$("#leftImgList").html(imglist);
scrollable1();
	selectImg();
	PriceShipTime(price+"&&"+shipTime+"&&"+$("#ItemCd").html()+"&&-1");
}
function InitVideo()
{
if($("#video").html().trim().length<1)
{
showFlash($("#items11 a")[0].rel);
}
}
function CheckVideo(path)
{
	if(path!="null")
	{
		$("#VideoTab").css("display","block");
		$("#watchvideo").css("visibility","visible");		
		showFlash(path);
	}
	else
	{
		$("#VideoTab").css("display","none");
		$("#watchvideo").css("visibility","hidden");
		showTab('1');
	}
}
var loadTimes=0;
function GetInfoElement1Changed(grp,col)
{
	var params=grp+"#"+col+"#"+sMatrixItemType;	 
//	alert("GetInfoElement1Changed");	 
	Callback_ImgListAndPrice.PerformCallback(params);	
}
function PriceShipTime(result) {
    var info = result.split('&&');
    getObj("PriceDesc").innerHTML = info[0];
    showShipTime(info[1]);
    $("#ItemCd").html(info[2]);
    getObj("inventory").value = info[3];
    var inv = info[3];
    if ((inv > -1) && (inv < 3)) {
        //$("#inv_message").html(mInventory.replace("#", inv));
    } else {
        $("#inv_message").html("");
    }
}
function showTab(ID)
{
	for(var i=1;i<4;i++){
		if(ID==i){
			getObj('tab'+i).blur();
			getObj("tab"+i).className="img_on";
			getObj("cont"+i).style.display="block";
		}else{
			getObj("tab"+i).className="img_off";
			getObj("cont"+i).style.display="none";
		}
	}
	
	return false;
}
function showBottomTab(ID,obj)
{
	for(var i=1;i<7;i++)
	{
		var tab=getObj('tabli'+i);
		var cont=getObj("contli"+i);
		var className=tab.className;
		if(ID==i)
		{
			tab.blur();
			tab.className=className.replace("_off","_on");
			cont.style.display="block";
			if(i==6)
			{
			loading2("contli6");
			GetMoreStyle()
			}
			else if(i==2)
			{
			loading2("divReviewsArea");
			GetReview();
			}
			else if(i==5)
			{
			loading2("divQAsArea");
			GetQAs();
			}
			
			
		}else
		{
			tab.className=className.replace("_on","_off");
			cont.style.display="none";
		}
	}
	return false;
}
function showYouimg(grp)
{
var check=getObj("ImageTab").style.display=="block";
if(check)
{
	Callback_yourimg.PerformCallback(grp);
	}

}
function getYouimg(s)
{
window.location.href=window.location.href;
}
function checkop() {
    var inv = getObj("inventory").value;
    var qty = itemQuantity.GetValue();
    if (CheckElement()) {
        if (inv < 1 || inv - qty < 0) {
            //alert("Your selection exceeds our inventory. Please change quantity.");
            //return false;
        }
        else {
            inv = inv - qty;
            getObj("inventory").value = inv;
            if (inv < 3) {
                //$("#inv_message").html(mInventory.replace("#", inv));
            }
        }
        return true;
    }
    return false;
}
//left img list
function scrollable1()
{

	if(getObj("scrollable1")!=null)
	{
		var api_scrollable1=$("#scrollable1").scrollable(
		{
			nextPage:'#nextPage1',prevPage:'#prevPage1',size:6,speed:1000,items:'items1',clickable:'false',api:true
		});
		var Length=$("#items1 a").length;		
		if(Length<2)
		{			
			$("#leftImgList").hide();			
		}
		else
		{
		$("#leftImgList").show();
		}
		if(Length<7)
		{
			$("#scrollable1").css("width",$("#items1").width());
			$("#nextPage1").hide();
			$("#prevPage1").hide();
		}
		else
		{
		    $("#nextPage1").show();
			$("#prevPage1").show();
		}
	}
	else
	{
	$("#leftImgList").hide();
	}
}
//left video list
function scrollable11()
{

	if(getObj("scrollable11")!=null)
	{
		var api_scrollable11=$("#scrollable11").scrollable(
		{
			nextPage:'#nextPage11',prevPage:'#prevPage11',size:6,speed:1000,items:'items11',clickable:'false',api:true
		});
		var item_size=api_scrollable11.getSize();
		if(item_size>0)
		{
		$("#VideoTab").show();
		$("#watchvideo").css("visibility","visible");		
		}		
		if(item_size<2)
		{			
			$("#video_thumb_list").css("visibility","hidden");			
		}
		else
		{
		$("#video_thumb_list").show();
		}
		if(item_size<7)
		{
		var scroll_width=$("#items11").width();
		if(scroll_width<370)
		{
		scroll_width=370;
		}
			$("#scrollable11").css("width",scroll_width);
			$("#nextPage11").hide();
			$("#prevPage11").hide();
		}
	}
	
}
//right img list
function scrollable2()
{
	if(getObj("scrollable2")!=null)
	{
		var api_scrollable2=$("#scrollable2").scrollable(
		{
			nextPage:'#nextPage2',prevPage:'#prevPage2',size:4,speed:1000,items:'items2',clickable:'false',api:true
		});
		if(api_scrollable2.getSize()<2)
		{			
			$("#rightImgList").hide();			
		}
		else
		{
		$("#rightImgList").show();
		}
		if(api_scrollable2.getSize()<5)
		{
			$("#scrollable2").css("width",$("#items2").width());
			$("#nextPage2").hide();
			$("#prevPage2").hide();
		}
	}
	else
	{
	$("#rightImgList").hide();
	}
}
function page_init()
{
$("#btn_tell").overlay(
	{api: true,
		color:'#ccc',
		top:'30%',
		expose:'#f1f1f1',closeOnClick: false
	}).onClose(function(){$(".vadicate").val("");});
	// initialize scrollable
	//left img list
	scrollable1();
	//left img list
	scrollable11();
	//right img list
	scrollable2();
	
	//photo tab
	$("#scrollable5").scrollable(
	{
		nextPage:'#nextPage5',prevPage:'#prevPage5',size:3,speed:2000,items:'items5',clickable:'false',vertical:'true'
	});
	var zp=$("#zoomposition").position();
	var big=$("#Zoomer-big");
	big.css(
	{
		left:zp.left,top:zp.top+6
	});	
	selectImg();	
	CheckLogin();
	Verify();
	sizeFitInit();
	
}
function ShowShipTip()
{
var p=$("#shipoption").position();
var Tip=$("#ShippingTip");
	Tip.css(
	{
		left:p.left-285,top:p.top-34
	});
	Tip.fadeIn(1000);
}
function CloseShipTip()
{
$("#ShippingTip").fadeOut(1000);
}
function preprocesslocal()
{	
		var sItemCode=$("#ItemCd").html();
		var qty=1;
		var params="sItemCode="+sItemCode+"#qty="+qty;
		loading("ViewFav");
		Callback_Favorites.PerformCallback(params);	
}
function preprocessNet(iWishList,iUnits)
{	
	var retval,iItemqty,iTotalqty,qty,iIndex,iRelatedQty;
	 qty=itemQuantity.GetValue();
	retval=qty;
	iRelatedQty=0;
	if(iWishList==0)
	{
		iItemqty=qty*1
		var arg="todo=additem&MatG="+groupcode+"&MatI="+sItemCode+"&ic="+$("#ItemCd").html()+"&upg_meascode="+getObj("upg_meascode").value+"&qty="+qty;
//	alert(arg);	
		$.ajax(
		{
			type:"GET",
			cache:false,
			url:sNonSecurePath + "addToItem.aspx",
			data:arg,
			success:function (msg)
			{
			itemQuantity.SetValue(1);
				UpateCart();
			}
		});
	}
}
var speed_x=0;
var speed_y=0;
var start_x=0;
var start_y=0;
var end_x=0;
var end_y=0;
var speed=15;
var zoom=-0.018;
var ini_start_x=0;
var ini_start_y=0;
var ini_height=0;
var ini_width=0;
function flyimage(startID,endID,imgID,method)
{
	start_x+=speed_x;
	start_y+=speed_y;
	if(getObj(startID)!=null)
	{
		getObj(startID).style.left=start_x+"px";
		getObj(startID).style.top=start_y+"px";
		getObj(startID).style.visibility="visible";
		getObj(imgID).height+=getObj(imgID).height*zoom;
		getObj(imgID).width+=getObj(imgID).width*zoom;
	}
	if(start_x>end_x)
	{
		method();
		getObj(startID).style.left=ini_start_x+"px";
		getObj(startID).style.top=ini_start_y+"px";
		getObj(startID).style.visibility="hidden";
		getObj(imgID).height=ini_height;
		getObj(imgID).width=ini_width;
	}
	else
	{
		window.setTimeout(function ()
		{
			flyimage(startID,endID,imgID,method)
		},10);
	}
}

function flyini(startID,endID,imgID,method)
{
	if(!checkop())
	{
		return ;
	}
	if(getObj(startID)==null)
	{
		method();
		return ;
	}
	if(getObj(imgID)==null)
	{
		method();
		return ;
	}
	getObj(imgID).src=$("#Zoomer img").attr("src");
	ini_start_x=start_x=getObj(startID).offsetLeft;
	ini_start_y=start_y=getObj(startID).offsetTop;
	ini_height=getObj(imgID).height;
	ini_width=getObj(imgID).width;
	start_x=getObj(startID).offsetLeft;
	start_y=getObj(startID).offsetTop;
	end_x=getObj(endID).offsetLeft-20;
	end_y=getObj(endID).offsetTop-50;
	speed_x=speed;
	speed_y=speed*((end_y-start_y)/(end_x-start_x));
	flyimage(startID,endID,imgID,method);
}
function addToCart(startID,endID,imgID)
{
	flyini(startID,endID,imgID,function ()
	{
		preprocessNet('0',units);
	})
	showTab('1');
}
function addToFav(startID,endID,imgID)
{
	bRegisterUser=getObj("chkLogin").value=="True";
	if(bRegisterUser)
	{
	nav_Favorites.ExpandAll();
	flyini(startID,endID,imgID,function ()
	{
		preprocesslocal();
	})
}
	else
	{
	actionID="favorite_add";
		$("#btn_Login").overlay(
		{
			color:'#ccc',top:'30%',expose:'#f1f1f1',api:true
		}).load();
	}
}
function ShowMsg(box)
{
var chk=box.checked ?"block":"none";
getObj("msgdiv").style.display=chk;
createCode();
}
var isVail=false;
function Verify()
{
	$(".vadicate").blur(function ()
	{
		var len=$(this).attr("maxlength");
		var value=$(this).val().length;			
		if(value>len)
		{
			alert(mVerifyLength+len);
			$(this).css("border","1px dashed red");
			isVail=false;
		}else
		{
		$(this).css("border","1px solid #C1D3FB");
			isVail=true;
		}
	});
}

function VerifyFriend()
{
	var yourname=$("#yourname");
	var youremail=$("#youremail");
	var friendemail=$("#friendemail");
	var friendsMsg=$("#friendsMsg");
	var chk=true;
	if($("#optChk").attr("checked")==true)
	{
		var inputCode=$("#captcha").val();
		if(inputCode.trim().toUpperCase()!=CaptchaCode.trim())
		{
			$("#captcha").css("border","1px dashed red");			
			chk=false;
			createCode();
		}
		else
		{
			chk=true;			
		}
	
	}
	if(yourname.val().length<1)
	{
		yourname.css("border","1px dashed red");
		chk=false;
	}	
	if(youremail.val().length<1)
	{
		youremail.css("border","1px dashed red");
		chk=false;
	}	
	if(!isEmail(youremail.val()))
	{
		youremail.css("border","1px dashed red");
		chk=false;
	}	
	if(friendemail.val().length<1)
	{
		friendemail.css("border","1px dashed red");
		chk=false;
	}	
	if(!multiEmail(friendemail.val()))
	{
		friendemail.css("border","1px dashed red");
		chk=false;
	}	
	return chk;
}

function tellFriend()
{
    if (!VerifyFriend()) { alert(mPleaseEnterCorrectText); return }
var params=groupcode+'#'+getObj('yourname').value+"#"+ getObj('youremail').value+"#"+getObj('friendemail').value+"#"+getObj('subject').options[getObj('subject').selectedIndex].value+"#"+ getObj('friendsMsg').value;
//alert(params);
Callback_friend.PerformCallback(params);
}
var CaptchaCode;
function createCode()
{
	CaptchaCode="";
	var codeLength=6;	
	
	var selectChar=new Array(0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
	//CAPTCHA
	for(var i=0;i<codeLength;i++)
	{
		var charIndex=Math.floor(Math.random()*36);
		CaptchaCode+=selectChar[charIndex];
	}
	$("#checkCode").html(CaptchaCode);
}
function OnAttributeChanged(s)
{
	var value=s.GetValue().toString ();
	var sItemParam=s.cpItemParam;
	var sLangCode=s.cpLangCode;
	var sWebSite=s.cpWebSite;
	var AttributeName=s.cpAttributeBox_Name;
	var NextAttributeBoxID=s.cpNextAttributeBoxID;
	var NextAttributeBox_Name=s.cpNextAttributeBox_Name;
	var NextAttributeBox_Index=s.cpNextAttributeBox_Index;
	var CurrentAttributeBox_Index=s.cpCurrentAttributeBox_Index;
	var Count=s.cpAttributeCount;
	var ElementParams=NextAttributeBox_Name+"','?','?','?','?'";
	var ItemCode="";
	var ValueCode="";
	if(CurrentAttributeBox_Index==0)
	{
		var FirstAttributeBox=eval("AttributeBox_"+sItemParam+"_"+1);
		ValueCode=FirstAttributeBox.GetValue();
		if (ValueCode.indexOf(mSelect) == -1 && ValueCode.indexOf("None") == -1)
	{
			GetInfoElement1Changed(sItemParam,ValueCode);
	}
	}
//	alert(loadTimes);	
	for(var i=1;i<=Count;i++)
	{
	var Select_AttributeBox=eval("AttributeBox_"+sItemParam+"_"+i);
	//Initialize the control	
		
		if(i>NextAttributeBox_Index && loadTimes>0)
		{
		    var text = mSelect + " " + Select_AttributeBox.cpAttributeBox_Name;
			Select_AttributeBox.ClearItems();
			Select_AttributeBox.AddItem(text,"None");
			Select_AttributeBox.SetSelectedIndex(0);
		}
		//show the select code
		ValueCode=Select_AttributeBox.GetValue();
		if (ValueCode.indexOf(mSelect) == -1 && ValueCode.indexOf("None") == -1)
		{
			ItemCode=ItemCode+'-'+ValueCode;
			ElementParams=ElementParams.replace("?",ValueCode);
		}
		}
		loadTimes++;
	ItemCode=sItemParam+ItemCode;
	$("#itembox_"+sItemParam).val(ItemCode);
	$("#ItemCd").html(ItemCode);
	ElementParams=ElementParams.replace(/[?]/g,'');
	if(NextAttributeBox_Name==undefined)
		{
		return ;
		}
	var params=NextAttributeBox_Name+"$"+"'"+sItemParam+"','"+sWebSite+"','"+sLangCode+"','"+ElementParams+"$"+NextAttributeBoxID;
	//alert(params);
	if(NextAttributeBox_Index<Count)
			{
		Callback_InitAttribute.PerformCallback(params);
			}
			else
			{
		AllElementsSelected($("#ItemCd").html());
		}
	}
function InitAttributeBox(result)
	{
	result=result.trimChar();	
	var ElementArr=result.split("$$");	
	var ClientID=ElementArr[0];
	var AttributeBox=eval(ClientID);	
	var paraString=ElementArr[1].replace(/(^[&]*)|([&]*$)/g,'').split("&");
	if(loadTimes==1 && AttributeBox.cpCurrentAttributeBox_Index==1)
		{
	    AttributeBox.AddItem(mSelect + " " + AttributeBox.cpAttributeBox_Name, "None");
}
	for(var i=0;i<paraString.length;i++)
				{				
		var item=paraString[i].split("=");
		var value=item[0];
		var text=item[1];
		AttributeBox.AddItem(text,value);
				}
				  }
function CheckElement()
{
var ClientIDs=$("#ClientIDs").val();
	if(typeof ClientIDs != "undefined")
	{
		
		ClientIDs=ClientIDs.replace(/(^[#]*)|([#]*$)/g,'');
		var ClientIDArr=ClientIDs.split("#");
		var length=ClientIDArr.length;
		var AttributeCode="";
		var AttributeName="";
		for(i=0;i<length;i++)
		{
			eval("AttributeCode="+ClientIDArr[i]+".GetValue()");
			eval("AttributeName="+ClientIDArr[i]+".cpAttributeBox_Name");
			if(AttributeCode==null||AttributeCode.indexOf(mSelect)>-1||AttributeCode.indexOf("None")>-1)
			{
				eval(ClientIDArr[i]+".Focus()");
				alert(mPleaseSelect+" "+AttributeName);
				return false;
			}
		}
	}
	return true;
}
function InsertStep()
					{
	var step=0;
	$(".AttributeBox").each(function ()
				{
		var ID=$(this).attr("id");
		var index=ID.lastIndexOf("_")+1;
		step=ID.substring(index);
		$(this).before("<div class='stepIcon'><img  src='/Images/template/step"+step+".png'/></div>");
		$(this).wrap("<div class='AttributeWrap'></div>");
					});					
	$("#CartDesc").html((parseInt(step)+1)+". "+mAddToCart);
}

function chkAttr(code)
{
	return code!="";
}
function selectCode()
{
	var itemcode="";
	$(".AttrSelect").each(function ()
	{
		var code=$(this).val();		
		if(code!="")
		{
			itemcode+="-"+code;
		}
	});
	$("#ItemCd").html(groupcode+itemcode);

}

function selectDD(color)
{
var TableID=$(".FirstAttributeBox").attr("id");
var index=TableID.lastIndexOf("AttributeBox_");
var ClientID=TableID.substring(index);
var s=eval(ClientID);
var item=s.FindItemByValue(color);
s.SetSelectedItem(item);
OnAttributeChanged(s);
}
function showShipTime(result)
{
$("#TitleInfo").html(result);
}
function AllElementsSelected(itemcode)
{
	var params="";
	var elements=itemcode.split("-");
	var length=6-elements.length;
	for(i=0;i<length;i++)
	{
		itemcode+="-";
	}
Callback_PriceShip.PerformCallback(itemcode);
}
function ShowFit(obj)
{
$("#sizelist ul").slideUp();
$(obj).children("ul").slideDown();
}
function sizeFitInit()
{
$("#sizelist>li").hover(
  function () {
    $("#sizelist ul").slideUp("fast");
    $(this).attr("class","listMouseOver");
    $(this).children(".children").slideDown();
  },
  function () {
    $("#sizelist ul").slideUp("fast");
     $(this).attr("class","listMouseOut"); 
  }
);
}
function GetMoreStyle()
{
	if(groupcode!="")
	{
		Callback_MoreStyle.PerformCallback(groupcode)
	}
}
function LoadMoreStyle(result)
{
$("#contli6").html(result);
//all style tab
	$("#scrollable4").scrollable(
	{
		nextPage:'#nextPage4',prevPage:'#prevPage4',size:5,speed:1000,items:'items4',clickable:'false'
	});	
		//all style tab
	$("#scrollable10").scrollable(
	{
		nextPage:'#nextPage10',prevPage:'#prevPage10',size:5,speed:1000,items:'items10',clickable:'false'
	});
}
function GetReview()
{
//alert("divReviewsArea");
cbItemReview.PerformCallback("GetReview|");
}
function GetQAs()
{
cbItemQA.PerformCallback("GetQAs|");
}
function loading2(id)
{    
    getObj(id).innerHTML="<img id='loadingtab'  style='position:relative;top:30%;left:50%;'  src='/Images/icons/loadingCart.gif' />";    
}
