window.defaultStatus="Copyright © 2004 SOMMER";

//**************************************************************  	
//
//PARTAGER
	var newWin=null;
	IE = navigator.appName=="Microsoft Internet Explorer";
	NS = navigator.appName=="Netscape";
	bVer = parseInt(navigator.appVersion);


function partagerAmer () {
	var _width	= 300;
	var _height	= 350;
	// CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
		if (bVer >= 4) {
				 _left = ( (screen.width-_width) >>1 );
				 _height = screen.height;
		} else {
				 _left = ( (800-_width) >>1 );
				  _height = height;
		}
		var _params = "width="+_width+",height="+_height+",resizable=no,status=no,scrollbars=no";
		if (IE) _params += ",top=0, left=" + _left;
		else if (NS) _params += ",screenX=" + _left + ",screenY=0";
		newWin = window.open('http://toolbox.advisa.fr/ecards/amer_sommer/pop.htm', 'partager_amer', _params);
		if ( newWin!=null && !(IE && bVer<5) ) newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
}

function Partager(fromWhere) {
	
	urlToShare="http://www.amersommer.com";
	var width	= 300;
	var height	= 350;
	var _params = "width="+width+",height="+height+",resizable=no,status=no";
	// CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
		if (bVer >= 4) {
				 _left = ( (screen.width-width) >>1 );
				 _top = ( (screen.height-height) >>1 );
		} else {
				 _left = ( (800-width) >>1 );
				 _top = ( (600-height) >>1 );
		}
	//alert('urlToShare:'+urlToShare);
		if (IE) _params += ",top=" + _top + ",left=" + _left;
		else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
		newWin = window.open('php/partager1.php?url='+urlToShare, 'partager', _params);
		
		if ( newWin!=null && !(IE && bVer<5) ) newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
	}
//
//POPUP
function PopUp(loc, popName, width, height, scrollAllow) {
	if (!scrollAllow) scrollAllow="yes";
	var _params = "width="+width+",height="+height+",resizable=auto,scrollbars="+scrollAllow+",status=no";
		// CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
			if (bVer >= 4) {
					 _left = ( (screen.width-width) >>1 );
					 _top = ( (screen.height-height) >>1 );
			} else {
					 _left = ( (800-width) >>1 );
					 _top = ( (600-height) >>1 );
			}
	
		if (IE) _params += ",top=" + _top + ",left=" + _left;
		else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
		newWin = window.open(loc, popName, _params);
		
		if ( newWin!=null && !(IE && bVer<5) ) newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
	}
	
//CREDITS
function Credits() {
	PopUp('credits.htm','credits',200,200,'no');
}
function Mentions() {
	PopUp('mentions.htm','mentions',425,400,'yes');
}