function getCookie(NameOfCookie){
    if (document.cookie.length > 0){
    begin = document.cookie.indexOf(NameOfCookie+"=");
    if (begin != -1){
      begin += NameOfCookie.length+1;
      end = document.cookie.indexOf(";", begin);
      if (end == -1) end = document.cookie.length;
        return unescape(document.cookie.substring(begin, end));
    }
  }
  return null;
}

function setCookie(NameOfCookie, value, expiredays)
{ var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
document.cookie = NameOfCookie + "=" + escape(value) +
((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}
$(document).ready(function(){
$(".Tips2").easyTooltip();

var mecrossipopup=getCookie('mecrossipopup');
if(mecrossipopup==null){
	//$('#shoppingchart strong').css('margin-left','20px');
	$('#iabashoppingpopup').show();
}

$('#iabashoppingpopup a').click(function(){
	$('#iabashoppingpopup').hide('fast');
	//$('#shoppingchart strong').css('margin-left','8px');
	setCookie('mecrossipopup','hide','30')
});
});

function email_text(txt, text) {
if (txt == "la tua e-mail") {
text.value = "";
}
if (txt == "") {
text.value = "la tua e-mail";
} }
function pws_text(txt, text) {
if (txt == "password") {
text.value = "";
}
if (txt == "") {
text.value = "password";
} }
function search_text(txt, text) {
if (txt == "cerca nel sito...") {
text.value = "";
}
if (txt == "") {
text.value = "cerca nel sito...";
}
}
