if (top.location != location) { // Hide Facebook's Top Bar
top.location.href = document.location.href;
}
$(document).ready(function() {
$('#addToFavorites').jFav({
msg: "Presiona \"CTRL + D\" o \"CMD + D\" en Mac, para agregar esta página a tus favoritos."
});
});
function ShareOn_Facebook() {
u = location.href;
t = document.title;
window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(u) + '&t=' + encodeURIComponent(t), 'sharer', 'toolbar=0,status=0,width=626,height=436');
return false;
}
function ShareOn_MySpace() {
U = location.href;
T = document.title;
C = $("meta[name='description']").attr("content") + "
";
var targetUrl = 'http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(T) + '&c=' + encodeURIComponent(C) + '&u=' + encodeURIComponent(U) + '&l=';
window.open(targetUrl);
}
function ShareOn_Twitter() {
C = "Visita mi tienda virtual de software en eShops: " + location.href;
window.open('http://twitter.com/home?status=' + encodeURIComponent(C));
}
function ShowRecommendationBox() {
$.getJSON("Servicios/Mi-Tienda", { action: "Recommend" }, function(data) {
var result = eval(data);
if (result.logued == 1) {
tb_show("Recomendar un eTailer", "http://eshops.licenciasonline.com/argentina/Tiendas/Recomendar-Etailer?height=203&width=500&modal=true&image=" + result.image + "&name=" + result.storeName);
}
else {
$("#notLoggedInMessage").fadeIn("slow");
}
});
}
function AddRecommendation() {
if ($("#txtMsg").val() != "") {
$("#addRecomendationForm").hide();
$.post("Servicios/Mi-Tienda", { action: "AddRecommendation", txtMsg: $("#txtMsg").val() }, function() {
$("#addRecomendationSave").show();
});
}
else {
$("#ErrorContainer").show();
}
}
function SendSuggest() {
if ($('#txtName').val() != "" && $('#txtFriendName').val() != "" && $('#txtFriendEmail').val() != "" && $('#txtMsg').val() != "") {
$("#SendSuggestForm").hide();
$.ajax({
type: "POST",
url: "http://eshops.licenciasonline.com/argentina/Tiendas/Sugerir-Tienda",
data: "action=sendSuggest&senderName=" + $('#txtName').val() + "&friendName=" + $('#txtFriendName').val() + "&friendEmail=" + $('#txtFriendEmail').val() + "&friendMsg=" + $('#txtMsg').val() + "&URL=" + window.location.href,
success: function(data) {
$("#SendSuggestSave").fadeIn();
}
});
}
else {
$("#SuggestErrorContainer").show();
}
}