function showPopBackground()
{var myHeight;if(typeof window.innerHeight!='undefined')
{myHeight=window.innerHeight;}
else if(typeof document.documentElement.clientHeight!='undefined')
{myHeight=document.documentElement.clientHeight;}
else
{myHeight=document.getElementsByTagName('body')[0].clientHeight;}
if(document.body.clientHeight>=myHeight)
{document.getElementById("progresslayer").style.height=document.body.clientHeight+"px";}
else
{document.getElementById("progresslayer").style.height=myHeight+"px";}
document.getElementById("progresslayer").style.display="block";}
function hidePopBackground()
{document.getElementById("progresslayer").style.display="none";}
function displaymsgforcart()
{showPopBackground();jQuery('#DivMsgCart').fadeIn("fast");jQuery('#progresslayer').fadeOut(2000);jQuery('#DivMsgCart').fadeOut(2000);}
function changeobjects(counter,divid)
{var t=setTimeout("changeobjectsajax('"+counter+"','"+divid+"')",600);jQuery('#'+divid).fadeOut("slow");document.getElementById(divid).style.height="240px";}
function changeobjectsajax(counter,divid)
{var url=strCommonWebsitePath+'/getindexsingleobject.php?';var rand=Math.random(9999);var intObjectid=0;var intClientid=0;if(document.getElementById('divObejctID'+counter)!=null)
{intObjectid=document.getElementById('divObejctID'+counter).value;}
if(document.getElementById('divClientID'+counter)!=null)
{intClientid=document.getElementById('divClientID'+counter).value;}
var pars='counter='+counter+'&objectid='+intObjectid+',&clientid='+intClientid+'&rand='+rand;pars=ConcateUrlString(pars);new Ajax.Updater(divid,url+pars,{evalScripts:true,onComplete:function(){responsefromsingleobject(divid,counter);}});}
function responsefromsingleobject(divid,counter)
{jQuery('#'+divid).fadeIn("slow");var tempcounter=1;tempcounter=parseInt(counter)+1;if(counter==7)
{setTimeout("changeobjects('1','divobjectbox1')",4000);}
else
{setTimeout("changeobjects('"+tempcounter+"','divobjectbox"+tempcounter+"')",4000);}}
function ChangePageToSearch()
{window.location.href=strCommonWebsitePath+"/searchobjects.php";}
function Sendtoselection(intObjectID,strImagepath,strhrefID)
{if(intObjectID>0&&strImagepath!="")
{var url=strCommonWebsitePath+"/sendtrayajax.php?";var pars="sess=insert";pars+="&sobjectid="+intObjectID+"&sobjectimage="+strImagepath;new Ajax.Updater('divMessage',url+pars,{evalScripts:true,onComplete:function(){displaymsgforcart();document.getElementById(strhrefID).className="tray_selected_object";document.getElementById(strhrefID).innerHTML=arrPageLabelCommonText_Sendtoselection;document.getElementById(strhrefID).onclick="";document.getElementById('hrefmyselection_'+intObjectID).style.display="block";if(document.getElementById("hdTotalCartItems")!=null)
{var counter=0;counter=document.getElementById("hdTotalCartItems").value;document.getElementById("hdtopselectioncount").value=counter;document.getElementById("newheaderselectionlink").innerHTML=strDefaultHeaderSelectionText+"  ("+counter+")";}}});}}
