<link rel='stylesheet' id='smp_style-css' href='http://www.blogjoo.ir/wp-content/plugins/wp-super-popup/colorbox.css?ver=1610143417' type='text/css' media='all' />
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js?ver=3.8'></script>
<script type='text/javascript' src='http://www.blogjoo.ir/wp-content/plugins/wp-super-popup/jquery.colorbox-min.js?ver=1166227671'></script>
<script type='text/javascript' src='http://www.blogjoo.ir/wp-content/plugins/wp-super-popup/jquery.utils-min.js?ver=495991133'></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($) {
$(document).ready(function(){
var smp_cookie_name_a = 'smp_1382902166222_a';//1
var smp_cookie_name_b = 'smp_1382902166222_b';//2
var smp_cookie_num_visits = 5;
var smp_show_mode = 5;
function smp_show_popup(){
setTimeout(function() { $.fn.colorbox({
fixed: true,
width:"700px",
height:"630px",
iframe:true,
opacity:0.5,
speed:300,
overlayClose:true,
href:'http://up.pars-cod.ir/up/sistemfa/theme/ads.html'})
},
2000);
}
function smp_reset_cookies(){
c_value_a = $.cookie(smp_cookie_name_a);
c_value_b = $.cookie(smp_cookie_name_b);
if (smp_show_mode == 1 && c_value_b != null){
$.cookie(smp_cookie_name_b, null, { path: '/', expires: 0 });
return true;
} else if (smp_show_mode == 5 && c_value_a != null){
$.cookie(smp_cookie_name_a, null, { path: '/', expires: 0 });
return true;
} else {
return false;
}
}
$(document).ready(function(){
var date = new Date();
if (!smp_reset_cookies()){
c_value_a = $.cookie(smp_cookie_name_a);
c_value_b = $.cookie(smp_cookie_name_b);
if (smp_show_mode == 5){
date.setTime(date.getTime() + (30 * 24 * 60 * 60 * 1000));
c_value = c_value_a;
smp_cookie_name = smp_cookie_name_a;
} else if (smp_show_mode == 1){
date.setTime(date.getTime() + (100000 * 24 * 60 * 60 * 1000));
c_value = c_value_b;
smp_cookie_name = smp_cookie_name_b;
}
if (c_value == null){
$.cookie(smp_cookie_name, '0', { path: '/', expires: date });
smp_show_popup();
} else {
//cookie exists
if (smp_show_mode == 2){
date.setTime(date.getTime() + (100000 * 24 * 60 * 60 * 1000));
c_value++;
$.cookie(smp_cookie_name, c_value, { path: '/', expires: date });
if (c_value < smp_cookie_num_visits){
smp_show_popup();
}
}
}
}
});
});
});
</script>