//source: Michael Imstepf
//date: 06/03/2008
//purpose: open online portfolio and passing amount of images and viewportWidth to server for calculating ideal amount of columns and rows
//dependencies: template "pdf"

function passViewportWidthAndAmountOfImagesToServer () {

/*
cookieValue = (cookieMgr.getCookie("pics2pdf")) ? cookieMgr.getCookie("pics2pdf") : "";
imgs = cookieValue.split(";");
for(i=0; i<imgs.length-1; i++){
    for(j=i+1; j<imgs.length; j++){
        if(imgs[i] == imgs[j]){
            imgs.splice(j, 1);
            j--;
        }
    }
}

var amount = imgs.length - 1;*/

var viewportWidth = $(window).width();

//location.href = "website.php?id=/portfolio/pdf.htm&viewportWidth=" + viewportWidth + "&savedImages=" + amount;
location.href = "website.php?id=/portfolio/pdf.htm&viewportWidth=" + viewportWidth;

}