function CreateBookmarkLink(title, url) {
	if (window.sidebar) { // firefox
		window.sidebar.addPanel(title, url, "");
	} else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} else if(document.all) {// ie
		window.external.AddFavorite(url, title);
	}
	return false;
}

function pcGallery(id, img) {
	$("#"+id).find('img').fadeOut('fast', function() { 
		$("#"+id).find('img').attr('src', img).fadeIn();
	});
	
	return false;
}

function selectDropDown(ele) {
	// The selected item's price
	var value = $(ele).val();
	var newPrice;
	if(value.indexOf('$')!=-1) {
		value = value.split('+$');
		newPrice = parseFloat(value[1]);
	} else {
		newPrice = 0;
	}

	// The original price of the product
	var orig = $(ele).parent().parent().find("#original").val();
	orig = parseFloat(orig);
	
	var total = newPrice+orig;

	// Add in new price to values
	$(ele).parent().parent().find('input[name="amount"]').val(total);
	$(ele).parent().parent().find('.pcPrice').html("$"+total);
	
}
