'post', 'posts_per_page' => -1));
$counter_post=0;
if($featp->have_posts()) : while ($featp->have_posts()) : $featp->the_post();
$feat_post = "";
$custom = get_post_custom($post->ID);
if(isset($custom["feat_post"][0])){
$feat_post = $custom["feat_post"][0];
}
if($feat_post == 'on'){ $counter_post++;?>
$image) {
if($image['active']){
$GLOBALS['thumbs_sld'][]='

';
switch ($GLOBALS['slider_type']){
case 'random':
case 'random-top':
case 'random-relative':
case 'random-medium':
$imgurl= $image['img_hd'];
break;
default:
$imgurl= $image['url'];
$attr='width="'.$GLOBALS['width_slider'].'" height="'. $GLOBALS['height_slider'].'"';
break;
}
?>