
function fullScreen(theURL){window.open(theURL,'','fullscreen=yes, scrollbars=yes');}
function dakisGoToPrintApp(appVersion,params,printAppServerUrl){var layout="onlineprint.html";if(appVersion=="photo_prints_flash")
layout="onlineprintflash.html";else if(appVersion=="gifts")
layout="onlinePrintGift.html";else if(appVersion=="gifts_flash")
layout="onlinePrintGiftFlash.html";else if(appVersion=="gift_editing")
layout="onlinePrintGift.html";if(!printAppServerUrl)
printAppServerUrl="http://photominator.mydakis.com";goToPrintApp(printAppServerUrl,'en',"e12c5b80-5831-012c-0f58-0018f39a977f",appVersion,layout,params);}
function goToPrintApp(serverUrl,lang,retailerGuid,appVersion,layoutFile,params){fullScreen(computePrintAppUrl(serverUrl,lang,retailerGuid,appVersion,layoutFile,params));}
function getDocDomainDir(){var url=document.URL;var lastSlashPos=url.lastIndexOf("/");var location=url.substring(0,lastSlashPos);return location+"/";}
function computePrintAppUrl(serverUrl,lang,retailerGuid,appVersion,layoutFile,params){var baseUrl=getDocDomainDir();var pageFile=layoutFile;if(pageFile==null)
pageFile=window.location.pathname.substring(window.location.pathname.lastIndexOf("/")+1);if(typeof(params)=="undefined"||params=="")
params="";else
params="&"+params;if(typeof(g_sessionId)=="undefined")
g_sessionId="";var date=new Date(Date.parse(document.lastModified));var version=date.getMonth()+"/"+date.getDate()+"/"+date.getFullYear()+"%20"+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();var url=serverUrl+"/guid/"+retailerGuid+"/"+lang+"/photo/"+appVersion+"?"+"base_url="+baseUrl+"&page_file="+pageFile+"&page_version="+version+"&lang="+lang+"&session_id="+g_sessionId+"&retailer_guid="+retailerGuid+params;return url;}
function fadeAway(target){var element=document.getElementById(target);for(var i=0;i<100;i++){setTimeout(setOpacity(element,i),1000*i);}}
function setOpacity(target,value){target.style.opacity=1;}