function EmbedFlash(swfName, swfWidth, swfHeight, objName) {
	document.write('<object id="'+ objName +'" name="'+ objName +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n'); 
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ swfWidth +'" height="'+ swfHeight +'">\n'); 
	document.write('        <param name="movie" value="'+ swfName +'">\n'); 
	document.write('        <param name="quality" value="high">\n'); 
	document.write('        <param name="wmode" value="transparent">\n'); 
	document.write('        <embed name="'+ objName +'" wmode="transparent" src="'+ swfName +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ swfWidth +'" height="'+ swfHeight +'"></embed>\n'); 
	document.write('</object>\n');
	}

function pop2 (url_suggestion) {
	w = open(url_suggestion,"suggerer","left=100,top=10,width=340,height=280,locationbar=yes,menubar=yes,sizeable=no,scrollbars=yes");
	}
	
function SmCellFeedback(obj, show) {
	var adId = obj.name;
	if (show) obj.className = "CellFeedback";
	else obj.className = "CellNoFeedback";
	}
	
function Details(ad_id) {
	location.href="details.php?sdAdId="+ad_id;
	}
	
function PopPicture(url) {
	var top = (screen.height-530)/2;
	var left = (screen.width-680)/2;
	window.open(url,"CMSimageAssistant","top="+top+",left="+left+",width="+680+",height="+530+", toolbar=no, status=yes, scrollbars=no, resizable=no, directories=no, menubar=no, location=no"); 
	}
	
function NewWindow(url) {
	w = open(url,"newwindow","left=100,top=10");
	}	

// fonctions d'Audrey ------------------------------------------
function PopUrl(url_contact) {
	w = open(url_contact,"popup","left=100,top=10,width=430,height=360,locationbar=yes,menubar=yes,sizeable=no,scrollbars=yes");
	}
	
function PopSuggest(url_suggestion) {
	w = open(url_suggestion,"suggerer","left=100,top=10,width=340,height=280,locationbar=yes,menubar=yes,sizeable=no,scrollbars=yes");
	}
	
function AjoutFavo() {
    if ((navigator.appName.indexOf("Microsoft",0)>=0) && (parseInt(navigator.appVersion)>=4)) {
        window.external.AddFavorite("http://www.smartapart.com","SmartApart : Location internationale d'appartement" );
    	} 
    else {
	    alert("Cette fonctionnalité n'est malheureusement compatible qu'avec Internet Explorer 4 et +!");
    	}
	}
// -------------------------------------------------------------