/* $Id: Globals.js 89220 2009-12-08 11:44:48Z o.manthey $
 * Copyright (C) 2006 IP Labs GmbH <http://www.iplabs.de/>
 * All rights reserved.
 */
 
 /**
 * @fileoverview
 *
 * Contains the static Globals class. Depends on Utils.
 *
 * @author Andreas Kornetka  <a.kornetka@iplabs.de> 
 * @author Thorsten Schüller <t.schueller@iplabs.de>
 * @version $Revision: 89220 $
 */
var Globals = new Object();	// static class

// Default prints format id
Globals.printsDefaultProductId = 10175;

// Default poster format id
Globals.posterDefaultProductId = 10178;

// Trim picture default (0: Trim paper to fit picture; 1: Trim nothing; 2: Trim picture to fit paper)
Globals.defaultTrimValue = 1;

// Default paper type (0: matte; 1: glossy)
Globals.defaultPaperTypeValue = 0;

// Default value for Fuji image enhancement
Globals.defaultImageEnhancement = false; 

// TextEdit definitions
Globals.textEdit        = new Object();
Globals.textEdit.fonts  = 'Arial,Cuban,FreeSchool,Times New Roman,UnZialish,ZeitGeisterbahn';
Globals.textEdit.sizes  = '9,12,16,22';
Globals.textEdit.defaultSize  = '16';
Globals.textEdit.colors = '530000,8F0000,CC0000,FF6666,FCB1B1,452A00,A85400,F27900,FEA44B,FEC68D,544C00,AC9B00,F2DA00,FFEE56,FFF6A1,385400,659800,88CC00,BFFC44,D3FC82,005400,007600,00A600,65FF65,B1FEB1,005438,009865,00D990,54FEC5,BFFDE8,004654,008AA5,00BFE5,54E2FE,9AE6F5,002A54,00488F,0079F2,58ACFF,A7D3FE,460054,7B0094,B500D9,E76CFF,F2B2FF,540046,9B0081,E500BF,FF6DE7,FFA5F0,000000,4D4D4D,A6A6A6,CCCCCC,FFFFFF';
Globals.textEdit.defaultPos = [8,8];

// DynamicItemViewer definitions
Globals.dynamicItemViewer     		              = new Object();
Globals.dynamicItemViewer.slideShow                 = new Object();
Globals.dynamicItemViewer.slideShow.preload         = 30;
Globals.dynamicItemViewer.slideShow.timeSec         = 5;
Globals.dynamicItemViewer.slideShow.thumbSize       = new Array(640, 480);
Globals.dynamicItemViewer.slideShow.thumbSizeLow    = new Array(110, 110); // optional

Globals.dynamicItemViewer.shareOverview             = new Object();
Globals.dynamicItemViewer.shareOverview.visible     = 15;
Globals.dynamicItemViewer.shareOverview.thumbSize   = new Array(110, 110);

Globals.dynamicItemViewer.photoOverview             = new Object();
Globals.dynamicItemViewer.photoOverview.preload     = 5;
Globals.dynamicItemViewer.photoOverview.visible     = 30;
Globals.dynamicItemViewer.photoOverview.thumbSize   = new Array(150, 150);

Globals.dynamicItemViewer.renamePhotos             = new Object();
Globals.dynamicItemViewer.renamePhotos.preload     = 6;
Globals.dynamicItemViewer.renamePhotos.visible     = 6;
Globals.dynamicItemViewer.renamePhotos.thumbSize   = new Array(110, 110);

Globals.dynamicItemViewer.albumStats                = new Object();
Globals.dynamicItemViewer.albumStats.preload        = 6;
Globals.dynamicItemViewer.albumStats.visible        = 6;
Globals.dynamicItemViewer.albumStats.thumbSize      = new Array(130, 100);

Globals.dynamicItemViewer.sortOverview              = new Object();
Globals.dynamicItemViewer.sortOverview.thumbSize    = new Array(150, 150);
Globals.dynamicItemViewer.photoDetails              = new Object();
Globals.dynamicItemViewer.photoDetails.preload      = 5;
Globals.dynamicItemViewer.photoDetails.thumbSize    = new Array(350, 350);
Globals.dynamicItemViewer.photoDetails.thumbSizeLow = new Array(110, 110); // optional

// popup references
Globals.open = new Object();

Globals.open.complexShow = function(i) {
	if(isNaN(i)) {i = '';}
	else {i = '?itemid=' + i;}
	return Utils.popup('complexShow.do' + i, -1, -1, 960, 630, 'scrollbars=no');
}

Globals.open.complexShare = function(i) {
	return Utils.popup(i, -1, -1, 960, 630, 'scrollbars=yes');
}

Globals.open.sort = function() {
	return Utils.popup('sortAlbumItems.do', -1, -1, 960, 600, 'scrollbars=no');
}

Globals.open.trimInfo = function() {
	return Utils.popup('priTrimInfo.do', -1, -1, 620, 600, 'scrollbars=no');
}	    

Globals.open.qualityInfo = function() {
	return Utils.popup('priQualityInfo.do', -1, -1, 660, 455, 'scrollbars=no');
}

Globals.open.qualityInfoProducts = function() {
	return Utils.popup('proQualityInfo.do', -1, -1, 660, 275, 'scrollbars=no');
}

Globals.open.printOrder = function() {
	return Utils.popup('printOrder.do', -1, -1, 660, 600, 'scrollbars=yes');
}

Globals.open.contextHelp = function(obj) {
	return Utils.popup(obj, -1, -1, 400, 220, 'scrollbars=no');
}

Globals.open.termsOfUse = function(obj) {
	return Utils.popup(obj, -1, -1, 800, 600, 'scrollbars=yes');
}

Globals.open.disclaimer = function(obj) {
	return Utils.popup(obj, -1, -1, 600, 340, 'scrollbars=no');
}

Globals.open.privacyPolicy = function(obj) {
	return Utils.popup(obj, -1, -1, 600, 600, 'scrollbars=yes');
}

Globals.open.priceList = function(obj) {
	return Utils.popup(obj, -1, -1, 540, 400, 'scrollbars=yes');
}

Globals.open.shippingCostsList = function(obj) {
	return Utils.popup(obj, -1, -1, 540, 400, 'scrollbars=yes');
}


// possible picture sizes for quality info
Globals.qualityInfoPictureSizes = new Array(
    new Array(640, 480),
    new Array(1024, 768),
    new Array(1280, 960),
    new Array(1600, 1200),
    new Array(2048, 1536),
    new Array(2272, 1704),
    new Array(2560, 1920),
    new Array(2816, 2112),
    new Array(3264, 2448),
    new Array(4048, 3040)    
); 

// type3MaxItems count for productOptions
Globals.productOptions = {};
Globals.productOptions.type3MaxItems = {};
Globals.productOptions.type3MaxItems.defaultCount = 2;
Globals.productOptions.type3MaxItems.optionCountCoverColor = 99;
Globals.productOptions.type3MaxItems.optionCountlicensedplates = 99;
Globals.productOptions.type3MaxItems.optionCountphotobookSize = 1;
Globals.productOptions.type3MaxItems.optionCountcoverType = 1;
// Globals.productOptions.type3MaxItems.productCount1409 = 4; 


// theme settings config
Globals.themeSettings     		              = new Object();
Globals.themeSettings.headingTextDefaultFonts = [
        {"font" : "Lucida Bright Regular", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Lucida Bright Italic", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Lucida Bright Demibold", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Lucida Bright Demibold Italic", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Lucida Sans Regular", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Lucida Sans Demibold", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Lucida Sans Typewriter Regular", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Lucida Sans Typewriter Bold", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Bergamo-Regular", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Bergamo-Bold", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Bergamo-Bolditalic", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Bergamo-Italic", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Typewriter FS", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Chantilly-Bold", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Chantilly-Bolditalic", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Chantilly-Italic", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Chantilly-Regular", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "ChurchwardFS", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "EngraversGothicFS", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Function-Bold", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Function-BoldOblique", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Function-Book", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Function-BookOblique", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Hudson", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "FunctionScript", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "GaramondFS-Bold", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "GaramondFS-BoldItalic", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "GaramondFS-Italic", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "GaramondFS-Regular", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Legend", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "LithoAntique-ExtraBold", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "LithoAntique-Italic", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "LithoAntique-Regular", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Melville", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "ParkAvenueFS", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Platz-Condensed", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Rundschrift", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "Salut", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "TypewriterFS-Bold", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "TypewriterFS-Regular", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]},
        {"font" : "WalbaumFS", "sizes" : [9, 12, 16, 22], "defaultSize" : 12, "styles" : ["normal", "italic", "bold" , "italicbold"]}
        ];