// QVC Layer Invocation Config, Ver. 0.2

// Globaly enable/disable layer invocation
qvc_li_enabled = true;

// Timeout in seconds after which the layer shall be shown (layer will be already loaded before display)
qvc_li_displayTimeout = 3;

// Messures of the layer (iframe within the layer) in pixels
qvc_li_layerWidth 	= 333;
qvc_li_layerHeight 	= 385;
qvc_li_closeWidth 	= 80;

// URI of the content to display within the layer (iframe within the layer)
//qvc_li_layerContentUri = 'http://server01.qvc.de/gewinnspiele/nl_dauerlayer_181209/layer.php'; 
qvc_li_layerContentUri = 'http://www.qvc.de/dehtml/features/dauerlayer/dauerlayer.html'; 
// Frequency cap: max. number of layer impressions in a given period of time (time-frame)
// If set to 0, layer will always be shown (Frequency Cap is disabled).
qvc_li_frequencyCap = 3;

// Timeframe in seconds for layer display freuqnecy cap (see above), e.g. 1 week: 3600*24*7
qvc_li_frequencyCapInterval = 3600*24*7;

// Layer position on screen in pixels (messured from top left corner of browser window)
qvc_li_layerScreenPositionFromTop 	= 0;//190;
qvc_li_layerScreenPositionFromLeft 	= 0;//250;
//qvc_li_layerScreenPositionFromTop 	= 0;
//qvc_li_layerScreenPositionFromLeft 	= 0;

/* ************* cookie to track action within the layers iframe *************** */

// Cookie needs to be set by page loaded in the layers iframe to prevent layer to be displayed again
// if not needed anymore (cookie value: qvc_li-actiondone=1). Cookie will also conain a value to handle 
// the frequency cap (cookie value: li-fc-count=[numeric value] and value li-fc-endtime=[datetime in milliseconds]).
// If the User disabled cookies in his browser, no layer will be shown.

// Cookie name for action done flag
qvc_li_cookieNameActionDone = 'qvc_de_li-actiondone';

// Cookie name for fc count
qvc_li_cookieNameFcCount = 'qvc_de_li-fc-count';

// Cookie name for fc endtime
qvc_li_cookieNameFcEndtime = 'qvc_de_li-fc-endtime';

// Cookie-Domain
qvc_li_cookieDomain = '.qvc.de';

/* ******************* Secondary Options (no need to change) ******************* */

// Load layer into page dom directly on page load (true) or short before layer display (false)
qvc_li_layerOnloadToDom = true;

// Period of time during which the layer shall be enabled/displayed 
// Format: (year, month [0-11 (0=Jan, 11=Dez)], day, hour, minute, second). no leading '0' required for numbers!
// (Coordinated Universal Time, http://en.wikipedia.org/wiki/Coordinated_Universal_Time)
qvc_li_dateStart 	= Date.UTC(2010, 11, 01, 00, 00, 00);
// Cookie endet Fr. 19.12.2008 um 12.00 Uhr
qvc_li_dateEnd 		= Date.UTC(2011, 11, 31, 00, 00, 00);

// style z-index of layer div element (value is a string, e.g. '999'0)
qvc_li_ZIndex = '999';

// no cache prefix/suffix (no need to change)
qvc_li_noCachePrefix = Math.floor(Math.random()*1000000);

/* ************************** Display & Style Options ************************** */

// layers border style
qvc_li_styleLayerBorderWidth = 0;
qvc_li_styleLayerBorderStyle = 'border:'+qvc_li_styleLayerBorderWidth+'px solid #FFFFFF';

// layer font face used, e.g. for "close"-label
qvc_li_styleLayerFontFace = 'arial';

// layer font color used, e.g. for "close"-label
qvc_li_styleLayerFontColor = '#FFFFFF';

// layer font size used, e.g. for "close"-label
qvc_li_styleLayerFontSize = '10pt';

// layer background color
qvc_li_styleLayerBackgroundColor = '#c0c0c0';

// iframe border width
qvc_li_styleIframeBorderWidth = 0;

// close-button area border style
qvc_li_styleLayerCloseButtonAreaBorderStyle = 'border-top:0px solid #FFFFFF';

/* ******************************** Text Labels ******************************** */

// label for "close"-button (leave empty to remove close-button area)
qvc_li_labelCloseButton = '&nbsp;|X|&nbsp;schlie&szlig;en'; 

// Coremetricsparameter for "close"-button
qvc_li_coremetrics = '';//onClick="javascript:cmCreateManualLinkClickTag('http://www.qvc.de?cm_re=76_Teaser-_-76_3_Teaser-_-Dauerlayer_schliessen');"

/* ********************************* Layer Html ******************************** */

/*
qvc_li_LayerHtmlSnippet = '<div id="li_'+qvc_li_noCachePrefix+'_layer" style="display:none;position:absolute;left:'+qvc_li_layerScreenPositionFromLeft+';top:'+qvc_li_layerScreenPositionFromTop+';z-index:'+qvc_li_ZIndex+';width:'+qvc_li_closeWidth+';background-color:'+qvc_li_styleLayerBackgroundColor+';'+qvc_li_styleLayerBorderStyle+';font-family:'+qvc_li_styleLayerFontFace+';color:'+qvc_li_styleLayerFontColor+';font-size:'+qvc_li_styleLayerFontSize+';">';
qvc_li_LayerHtmlSnippet += '<div style="width:'+qvc_li_layerWidth+';text-align:left;'+qvc_li_styleLayerCloseButtonAreaBorderStyle+'"><a href="javascript:qvc_layerClose();'+qvc_li_coremetrics+'" style="color:'+qvc_li_styleLayerFontColor+';padding-right:15px;text-decoration:none;"><span>'+qvc_li_labelCloseButton+'</span></a></div>';
qvc_li_LayerHtmlSnippet += '<div style="width:'+qvc_li_layerWidth+';"><a href="#" target="_top" onclick=\'tb_show("Adventskalender", "http://qvc.adartists-online.net/ak/qvc/?keepThis=true&TB_iframe=true&height=530&width=715&rewrite=no", false);\'><img src="http://www.qvc.de/degif/features/xmas2010/xmas_adventskalender_layer.jpg" alt="Jetzt T&uuml;rchen &ouml;ffnen" width="494" height="283" border="0"/></a></div></div>';*/
/*
qvc_li_LayerHtmlSnippet = '<div id="li_'+qvc_li_noCachePrefix+'_layer" style="display:none;position:absolute;left:'+qvc_li_layerScreenPositionFromLeft+';top:'+qvc_li_layerScreenPositionFromTop+';z-index:'+qvc_li_ZIndex+';width:'+qvc_li_closeWidth+';background-color:'+qvc_li_styleLayerBackgroundColor+';'+qvc_li_styleLayerBorderStyle+';font-family:'+qvc_li_styleLayerFontFace+';color:'+qvc_li_styleLayerFontColor+';font-size:'+qvc_li_styleLayerFontSize+';">';
qvc_li_LayerHtmlSnippet += '<div style="width:'+qvc_li_layerWidth+';text-align:left;'+qvc_li_styleLayerCloseButtonAreaBorderStyle+'"><a href="javascript:qvc_layerClose();'+qvc_li_coremetrics+'" style="color:'+qvc_li_styleLayerFontColor+';padding-right:15px;text-decoration:none;"><span>'+qvc_li_labelCloseButton+'</span></a></div>';
qvc_li_LayerHtmlSnippet += '<div style="width:'+qvc_li_layerWidth+';"><a href="http://qvc.adartists-online.net/ak/qvc/?keepThis=true&TB_iframe=true&height=530&width=715&rewrite=no" class="thickbox" target="_top" ><img src="http://www.qvc.de/degif/features/xmas2010/xmas_adventskalender_layer.jpg" alt="Jetzt T&uuml;rchen &ouml;ffnen" width="494" height="283" border="0"/></a></div></div>'
*/

//Alt 
qvc_li_LayerHtmlSnippet = '<div id="li_'+qvc_li_noCachePrefix+'_layer" style="display:none;position:absolute;left:'+qvc_li_layerScreenPositionFromLeft+';top:'+qvc_li_layerScreenPositionFromTop+';z-index:'+qvc_li_ZIndex+';width:'+qvc_li_closeWidth+';background-color:'+qvc_li_styleLayerBackgroundColor+';'+qvc_li_styleLayerBorderStyle+';font-family:'+qvc_li_styleLayerFontFace+';color:'+qvc_li_styleLayerFontColor+';font-size:'+qvc_li_styleLayerFontSize+';">'
+((qvc_li_labelCloseButton!="") ? '<div style="width:'+qvc_li_layerWidth+';text-align:left;'+qvc_li_styleLayerCloseButtonAreaBorderStyle+'"><a href="javascript:qvc_layerClose();'+qvc_li_coremetrics+'" style="color:'+qvc_li_styleLayerFontColor+';padding-right:15px;text-decoration:none;"><span>'+qvc_li_labelCloseButton+'</span></a></div>': '')
+'<div style="width:'+qvc_li_layerWidth+';"><iframe style="margin:0;padding:0;background-color:'+qvc_li_styleLayerBackgroundColor+';width:'+qvc_li_layerWidth+';height:'+qvc_li_layerHeight+';border-width:0;" height="'+qvc_li_layerHeight+'" width="'+qvc_li_layerWidth+'" name="li_'+qvc_li_noCachePrefix+'_iframe" id="li_'+qvc_li_noCachePrefix+'_iframe" frameborder="'+qvc_li_styleIframeBorderWidth+'" src="'+qvc_li_layerContentUri+'" allowtransparency="true"  scrolling="no"></iframe></div>'
+'</div>';

/*
<div style="display: inline; position: absolute; left: 250px; top: 190px; z-index: 999; width: 80px; background-color: rgb(192, 192, 192); border: 0px solid rgb(255, 255, 255); font-family: arial; color: rgb(255, 255, 255); font-size: 10pt;" id="li_116569_layer"><div style="width: 494px; text-align: left; border-top: 0px solid rgb(255, 255, 255);"><a style="color: rgb(255, 255, 255); padding-right: 15px; text-decoration: none;" href="javascript:qvc_layerClose();"><span>&nbsp;|X| schließen</span></a></div><div style="width: 494px;"><iframe width="494" scrolling="no" height="283" frameborder="0" allowtransparency="true" src="http://qvc.de/dehtml/features/adventskalender2010/adventskalender_layer.html" id="li_116569_iframe" name="li_116569_iframe" style="margin: 0pt; padding: 0pt; background-color: rgb(192, 192, 192); width: 494px; height: 283px; border-width: 0pt;"></iframe></div></div>
*/
