/****************************************************
Author : Cawita 
E-mail : contact@cawita.com
Website : http://www.cawita.com/
Notes : The copy of a part or complete code, at commercial purposes,
is strictly forbidden without the agreement of the author
****************************************************
**********************************************************************************
Shop4business est une marque de Cawita
Toute reproduction partielle ou totale de shop4business, de son contenu
des fichiers, et tout autre élément appartenant à la marque et au  
logiciel Shop4business sont interdits.
Veuillez respecter les conditions générales de vente qui vous ont été remise.
Tout contrevenant s'exposerait à des poursuites judiciaires.
La suppression de cette mention constitue une violation du contrat de licence
ainsi qu'une violation des lois sur la propriété intellectuelle.
*********************************************************************************
Shop4business is a regsitered trade mark of Cawita
Shop4business is not freeWare thus all unauthorised reproduction, 
duplication, modification, source customization, or any action
that can alter Shop4business Brand image, source and files are strictly
prohibited. Infrengement will be prosecuted until full extenct of applicable law 
Removing this copyright mention constitues a licence agreement & copyright violation
*********************************************************************************
Version 1.00
Octobre 2008
****************************************************/
function cn_addLoadEvent(func) {
	if (window.addEventListener) {
		window.addEventListener("load", func, false);
	}
	else {
		if (window.attachEvent) {
			window.attachEvent("onload", func);
		}
	}
}


if (typeof(cn_write_flash)=="undefined") {
	cn_write_flash = function(src, width, height, version, wmode, id, vars) {
		if (wmode=="") { wmode="opaque"; }
		document.write('<object ');
		if (id!="") document.write('id="' + id + '" ');
		document.write('width="' + width + '" height="' + height + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="' + document.location.protocol + '//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + version + ',0,0,0" align="center">');
		document.write('<param name="movie" value="' + src + '"><param name="quality" value="high"><param name="wmode" value="' + wmode + '">');
		if (typeof(vars)!="undefined" && vars!="") { document.write('<param name="FlashVars" value="' + vars + '">'); }
		document.write('<EMBED width="' + width + '" height="' + height + '" src="' + src + '" quality="high" wmode="' + wmode + '" align="center" swLiveConnect="true" ');
		if (typeof(vars)!="undefined" && vars!="") { document.write(' FlashVars="' + vars + '" '); }
		if (typeof(id)!="undefined" && id!="") { document.write(' name="' + id + '" '); }
		document.write('type="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
		document.write('</embed></object>');
	}
}


function get_query_variable(name, default_value) {
	var query = window.location.search.substring(1);
	var vars = query.split("&");
	for (var i=0;i<vars.length;i++) {
		var pair = vars[i].split("=");
		if (pair[0] == name) {
			return pair[1];
		}
	}
	return default_value;
}


function affiche(baliseId){
	var obj=document.getElementById(baliseId);
	obj.style.visibility="visible";
	obj.style.display="block";
}
function cache(baliseId){
	var obj=document.getElementById(baliseId);	
	obj.style.visibility="hidden";
	obj.style.display="none";
}

function fenCentre(url,largeur,hauteur){
var Dessus=(screen.height/2)-(hauteur/2);
var Gauche=(screen.width/2)-(largeur/2);
var features= 'height='+hauteur+',width='+largeur+',top='+Dessus +',left='+Gauche+",scrollbars=yes";
thewin=window.open(url,'',features);
}

