var bookmarkandshare_title = ''; 
var bookmarkandshare_url = '';

<!--
function favourites(pagetitle,pageurl){
if (window.sidebar) // firefox
	window.sidebar.addPanel(pagetitle, pageurl, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',pageurl);
	elem.setAttribute('title',pagetitle);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(pageurl, pagetitle);
}
//-->

function bookmark(service,w,h) {
	
if(location.host!="www.champs-elysees.com") {
	return;
}

document.getElementById("content").style.display="none";
document.getElementById("loading").style.display="block";

urchinTracker('/outgoing/bookmarks/' + service);

x = (screen.width-w)/2;
y = (screen.height-h)/2;

		if (window.opera){
			y-=screenTop;
		}

if (service=='delicious') {
window.resizeTo(w, h);
location.href='http://del.icio.us/post?v=4&noui&jump=close&url=' + bookmark_url + '&title=' +  encodeURI(bookmark_title);
window.moveTo(x,y);
}
if (service=='stumbleupon') {
window.resizeTo(w, h);
location.href='http://www.stumbleupon.com/submit?url=' + bookmark_url + '&title=' +  escape(bookmark_title);
window.moveTo(x,y);
}
if (service=='yahoo') {
window.resizeTo(w, h);
location.href='http://myweb2.search.yahoo.com/myresults/bookmarklet?u=' + bookmark_url + '&t=' +  encodeURI(bookmark_title);
window.moveTo(x,y);
}
if (service=='google') {
window.resizeTo(w, h);
location.href='http://www.google.com/bookmarks/mark?op=add&bkmk=' + bookmark_url + '&title=' +  encodeURI(bookmark_title);
window.moveTo(x,y);
}
if (service=='reddit') {
window.resizeTo(w, h);
location.href='http://reddit.com/submit?url=' + bookmark_url + '&title=' +  encodeURI(bookmark_title);
window.moveTo(x,y);
}
if (service=='digg') {
window.resizeTo(w, h);
location.href='http://digg.com/submit?phase=2&url=' + bookmark_url + '&title=' +  encodeURI(bookmark_title);
window.moveTo(x,y);
}
if (service=='furl') {
window.resizeTo(w, h);
location.href='http://www.furl.net/storeIt.jsp?u=' + bookmark_url + '&t=' +  encodeURI(bookmark_title);
window.moveTo(x,y);
}
if (service=='newsvine') {
window.resizeTo(w, h);
location.href='http://www.newsvine.com/_tools/seed&save?u=' + bookmark_url + '&h=' +  encodeURI(bookmark_title);
window.moveTo(x,y);
}
if (service=='technorati') {
window.resizeTo(w, h);
location.href='http://technorati.com/faves?add=' + bookmark_url;
window.moveTo(x,y);
}
if (service=='ask') {
window.resizeTo(w, h);
location.href='http://myjeeves.ask.com/mysearch/BookmarkIt?%3Cbr%20/%3Ev=1.2&t=webpages&title=' + encodeURI(bookmark_title) + '&url=' + bookmark_url;
window.moveTo(x,y);
}
if (service=='live') {
window.resizeTo(w, h);
location.href='https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url=' + bookmark_url + '&title=' +  encodeURI(bookmark_title) + '&top=1';
window.moveTo(x,y);
}
if (service=='facebook') {
window.resizeTo(w, h);
location.href='http://www.facebook.com/sharer.php?u=' + bookmark_url;
window.moveTo(x,y);
}
if (service=='netscape') {
window.resizeTo(w, h);
location.href='http://www.netscape.com/submit/?U=' + bookmark_url + '&T=' + escape(bookmark_title);
window.moveTo(x,y);
}
if (service=='fark') {
window.resizeTo(w, h);
location.href='http://cgi.fark.com/cgi/fark/submit.pl?new_url=' + bookmark_url + '&title=' + encodeURI(bookmark_title);
window.moveTo(x,y);
}
if (service=='wink') {
window.resizeTo(w, h);
location.href='http://www.wink.com/_/tag?url=' + bookmark_url + '&doctitle=' + encodeURI(bookmark_title);
window.moveTo(x,y);
}
if (service=='spurl') {
window.resizeTo(w, h);
location.href='http://www.spurl.net/spurl.php?url=' + bookmark_url + '&title=' + encodeURI(bookmark_title);
window.moveTo(x,y);
}
if (service=='netvouz') {
window.resizeTo(w, h);
location.href='http://www.netvouz.com/action/submitBookmark?url=' + bookmark_url + '&title=' + encodeURI(bookmark_title);
window.moveTo(x,y);
}
if (service=='diigo') {
window.resizeTo(w, h);
location.href='http://www.diigo.com/post?url=' + bookmark_url + '&title=' + encodeURI(bookmark_title);
window.moveTo(x,y);
}
if (service=='bluedot') {
window.resizeTo(w, h);
location.href='http://bluedot.us/Authoring.aspx?u=' + bookmark_url + '&title=' + encodeURI(bookmark_title);
window.moveTo(x,y);
}
}

function bookmarkandshare_click(which) {
	var w = 520;
	var h = 640;
	var bookmarkandshare_page = "http://www.champs-elysees.com/community/bookmark.htm?title="+encodeURI(bookmarkandshare_title)+"&url="+encodeURI(bookmarkandshare_url)+"";
	openPopup(bookmarkandshare_page,'bookmark',w,h,'yes');
	return false;
}

var win= null;
function openPopup(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
		if (window.opera){
			wint-=screenTop;
		}
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=yes';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

//

function SearchData(search) {
   this.keyValuePairs = new Array();
   if (search.length > 1) {
     this.search = search.substring(0, search.length); // remove leading
     this.keyValuePairs = this.search.split("&");
   } else {
     this.search = null;
   }
   // returns an array of the key=value pairs
   this.getKeyValuePairs = function() { return this.keyValuePairs; }
   // returns the value for a specified key
   this.getValue = function(key) {
     for(var j=this.keyValuePairs.length; j-- > 0;) {
      if(this.keyValuePairs[j].split("=")[0] == key)
    return this.keyValuePairs[j].split("=")[1];
  }
   return false;
  }
  // returns an array of the key names
   this.getParameters = function() {
    var a = new Array(this.getLength());
    for(var j=this.keyValuePairs.length; j-- > 0;) {
      a[j] = this.keyValuePairs[j].split("=")[0];
    }
    return a;
  }
  // returns a count of key/value pairs
   this.getLength = function() { return this.keyValuePairs.length; }
 }

var q = new SearchData(window.location.search.substring(1));

bookmark_title = decodeURI(q.getValue("title"));
bookmark_url = decodeURI(q.getValue("url"));