﻿var gi_Cappture_Language_Id			= 2;
var gs_Cappture_Domain				= 'http://www.net-ways.com';
var gs_Cappture_Domain_Instance		= 'netways';
var gb_Cappture_Track_Querystring	= false;
var gs_Cappture_Track_QueryString_Parameters = '';
var gs_Cappture_Category_Method		= 'CATEGORY_SCORE';
var gb_Cappture_TrackingArticle_IsForce	= false;

//Serveur de production
//Cappture Category Article Score
//Example Category_id,Score#Category,score
//var gs_Cappture_Category		= '1,10#2,2.5#3,7.1';
var gs_Cappture_Category = '';

var gb_Cappture_Page_IsProduct = false;
if(gs_Cappture_Category_Method == 'CATEGORY_CREATION')
{
	var li_Index;
	for(li_Index = 0;li_Index < gs_Cappture_Category.length; li_Index++)
	{
		if(gs_Cappture_Category[li_Index][0].length > 8 && !gb_Cappture_Page_IsProduct)
		{
			gb_Cappture_Page_IsProduct = true;
		}
	}
}

function Cappture_Article_Display()
{
	if( gs_Cappture_Article_Display_Body != '')
	{
		if( typeof( window.innerWidth ) == 'number' ) {
			//Non-IE
			xScroll = window.innerWidth;
			yScroll = window.innerHeight;
			document.write('<div id="Article_Popup" style="width:544px;height:183px;position:absolute;left:' + (xScroll/2 - 1018/2 + 321) + 'px;top:' + (303) + 'px;">' + gs_Cappture_Article_Display_Body + '</div>');
		} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			xScroll = document.documentElement.clientWidth;
			yScroll = document.documentElement.clientHeight;
			document.write('<style type="text/css">iframe.select-hide {position:absolute;top:0;left:0;z-index:-1;width:544px;height:400px;filter:mask();}</style><div id="Article_Popup" style="z-index:999;width:544px;height:183px;position:absolute;left:' + (xScroll/2 - 1000/2 + 321) + 'px;top:' + (302) + 'px;"><!--[if lte IE 7]><iframe class="select-hide"></iframe><![endif]-->' + gs_Cappture_Article_Display_Body + '</div>');
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			xScroll = document.body.clientWidth;
			yScroll = document.body.clientHeight;
			document.write('<div id="Article_Popup" style="width:544px;height:183px;position:absolute;left:' + (xScroll/2 - 1000/2 + 321) + 'px;top:' + (302) + 'px;">' + gs_Cappture_Article_Display_Body + '</div>');
		}		
	}
}

function Cappture_Popup(ps_Url)
{
	window.open(ps_Url,"Net|ways","menubar=yes, status=yes, scrollbars=yes, menubar=yes, width=1024, height=768");
}
function Cappture_Close()
{
	document.getElementById('Article_Popup').style.display = 'none';
}
if(!gb_Cappture_Page_IsProduct || gb_Cappture_TrackingArticle_IsForce)
{
	document.write('<script type="text/javascript" src="' + gs_Cappture_Domain + '/_Tracker/Tracker_ExternalPage_Tracking_Create.asp?ms=' + new Date().getTime() + '"></script>');
}