function inshoesaleshop(go){
$.post("http://www.shoesaleshop.com/ajax.php?k="+key+"",
{ type: '2', key: key }, function(data){
if(data.length >0) {
if(data!=""){
$('p.shoesaleshoplist').html(data);
if(go==1){ spnshoesaleshop(1); }
}
}
});
return false;
}
function spnshoesaleshop(go){
$.post("http://www.shoesaleshop.com/ajax.php",
{ type: '1', key: key }, function(data){
if(data.length >0) {
if(data!=""){
$('#shoesaleshopaside').html(data);
}
}
});
return false;
}
function menu(position){
if(position==1){
var position = $('a.shoesaleshoponsale').position();
var newTop = position.top+100;
$('#shoesaleshoppopup').css("top",""+newTop+"px");
position=4;
}else{
$('#shoesaleshoppopup').css("top","115px");
}
$('div.innerPopup').html('');
$('#shoesaleshoppopup').show();
$.post("http://www.shoesaleshop.com/ajax.php?r="+Math.random()+"",
{ type: position, key: key }, function(data){
if(data.length >0) {
if(data!=""){
$('div.innerPopup').html(data);
}
}
});
return false;
}
function search(){
var keySearch = $('input#keyword').val();
var category = $('#category').val();
var position = $('p.shoesaleshopsearch').position();
var newTop = position.top;
$('#shoesaleshoppopup').css("top",""+newTop+"px");
$('div.innerPopup').html('');
$('#shoesaleshoppopup').show();
$.post("http://www.shoesaleshop.com/ajax.php?r="+Math.random()+"",
{ type: '5', key: keySearch, category: category }, function(data){
if(data.length >0) {
if(data!=""){
$('div.innerPopup').html(data);
}
}
});
return false;
}