$(document).ready(function(){
if($.cookie('top1')!=null && $.cookie('left1')!=null){
$('#asus').css({
position:'absolute',
top:$.cookie('top1'),
left:$.cookie('left1')
});
}
$('#asus').draggable({
stop: function(e,ui){
$.cookie('top1',$('#asus').css('top'),{path: '/', expires: 31});
$.cookie('left1',$('#asus').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top2')!=null && $.cookie('left2')!=null){
$('#acer').css({
position:'absolute',
top:$.cookie('top2'),
left:$.cookie('left2')
});
}
$('#acer').draggable({
stop: function(e,ui){
$.cookie('top2',$('#acer').css('top'),{path: '/', expires: 31});
$.cookie('left2',$('#acer').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top3')!=null && $.cookie('left3')!=null){
$('#apple').css({
position:'absolute',
top:$.cookie('top3'),
left:$.cookie('left3')
});
}
$('#apple').draggable({
stop: function(e,ui){
$.cookie('top3',$('#apple').css('top'),{path: '/', expires: 31});
$.cookie('left3',$('#apple').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top4')!=null && $.cookie('left4')!=null){
$('#dell').css({
position:'absolute',
top:$.cookie('top4'),
left:$.cookie('left4')
});
}
$('#dell').draggable({
stop: function(e,ui){
$.cookie('top4',$('#dell').css('top'),{path: '/', expires: 31});
$.cookie('left4',$('#dell').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top5')!=null && $.cookie('left5')!=null){
$('#vaio').css({
position:'absolute',
top:$.cookie('top5'),
left:$.cookie('left5')
});
}
$('#vaio').draggable({
stop: function(e,ui){
$.cookie('top5',$('#vaio').css('top'),{path: '/', expires: 31});
$.cookie('left5',$('#vaio').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top6')!=null && $.cookie('left6')!=null){
$('#ibm').css({
position:'absolute',
top:$.cookie('top6'),
left:$.cookie('left6')
});
}
$('#ibm').draggable({
stop: function(e,ui){
$.cookie('top6',$('#ibm').css('top'),{path: '/', expires: 31});
$.cookie('left6',$('#ibm').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top7')!=null && $.cookie('left7')!=null){
$('#hp').css({
position:'absolute',
top:$.cookie('top7'),
left:$.cookie('left7')
});
}
$('#hp').draggable({
stop: function(e,ui){
$.cookie('top7',$('#hp').css('top'),{path: '/', expires: 31});
$.cookie('left7',$('#hp').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top8')!=null && $.cookie('left8')!=null){
$('#toshiba').css({
position:'absolute',
top:$.cookie('top8'),
left:$.cookie('left8')
});
}
$('#toshiba').draggable({
stop: function(e,ui){
$.cookie('top8',$('#toshiba').css('top'),{path: '/', expires: 31});
$.cookie('left8',$('#toshiba').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top9')!=null && $.cookie('left9')!=null){
$('#fujitsu').css({
position:'absolute',
top:$.cookie('top9'),
left:$.cookie('left9')
});
}
$('#fujitsu').draggable({
stop: function(e,ui){
$.cookie('top9',$('#fujitsu').css('top'),{path: '/', expires: 31});
$.cookie('left9',$('#fujitsu').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top10')!=null && $.cookie('left10')!=null){
$('#samsung').css({
position:'absolute',
top:$.cookie('top10'),
left:$.cookie('left10')
});
}
$('#samsung').draggable({
stop: function(e,ui){
$.cookie('top10',$('#samsung').css('top'),{path: '/', expires: 31});
$.cookie('left10',$('#samsung').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top11')!=null && $.cookie('left11')!=null){
$('#gateway').css({
position:'absolute',
top:$.cookie('top11'),
left:$.cookie('left11')
});
}
$('#gateway').draggable({
stop: function(e,ui){
$.cookie('top11',$('#gateway').css('top'),{path: '/', expires: 31});
$.cookie('left11',$('#gateway').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top12')!=null && $.cookie('left12')!=null){
$('#lenovo').css({
position:'absolute',
top:$.cookie('top12'),
left:$.cookie('left12')
});
}
$('#lenovo').draggable({
stop: function(e,ui){
$.cookie('top12',$('#lenovo').css('top'),{path: '/', expires: 31});
$.cookie('left12',$('#lenovo').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top13')!=null && $.cookie('left13')!=null){
$('#alienware').css({
position:'absolute',
top:$.cookie('top13'),
left:$.cookie('left13')
});
}
$('#alienware').draggable({
stop: function(e,ui){
$.cookie('top13',$('#alienware').css('top'),{path: '/', expires: 31});
$.cookie('left13',$('#alienware').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top14')!=null && $.cookie('left14')!=null){
$('#compaq').css({
position:'absolute',
top:$.cookie('top14'),
left:$.cookie('left14')
});
}
$('#compaq').draggable({
stop: function(e,ui){
$.cookie('top14',$('#compaq').css('top'),{path: '/', expires: 31});
$.cookie('left14',$('#compaq').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top15')!=null && $.cookie('left15')!=null){
$('#averatec').css({
position:'absolute',
top:$.cookie('top15'),
left:$.cookie('left15')
});
}
$('#averatec').draggable({
stop: function(e,ui){
$.cookie('top15',$('#averatec').css('top'),{path: '/', expires: 31});
$.cookie('left15',$('#averatec').css('left'),{path: '/', expires: 31});
}
});

if($.cookie('top16')!=null && $.cookie('left16')!=null){
$('#panasonic').css({
position:'absolute',
top:$.cookie('top16'),
left:$.cookie('left16')
});
}
$('#panasonic').draggable({
stop: function(e,ui){
$.cookie('top16',$('#panasonic').css('top'),{path: '/', expires: 31});
$.cookie('left16',$('#panasonic').css('left'),{path: '/', expires: 31});
}
});
});
