var compares=new Array();
function addcompare(ele){
	compares[compares.length]=ele.id;
}

function popupshow(){
	$('#backgroundPopup').show(0);
	$('#popupContact').show(0);
}

function popupsubscribeshow(){
	$('#backgroundPopup').show(0);
	$('#popupSubscribe').show(0);
}

function popuphide(){
	$('#backgroundPopup').hide(0);
	$('#popupContact').hide(0);
	$('#popupSubscribe').hide(0);
}

function bookmark(url,title,elem){
	if (window.sidebar) { // Mozilla Firefox Bookmark
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		return false;
		// window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title);
		return false;
	}
	else if(window.opera && window.print) { // Opera Hotlist
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		return true;
	}else{
		alert('Press Ctrl+D to bookmark this page');
	}
}
