';
}
}
}
if ( ! function_exists( 'wb3d_createlayer' ) ) {
function wb3d_createlayer($level,$cu,$sn,$w,$dlnum,&$aa,$w0,$n0,$y0,$parent,$main_demo){
global $wb3d_html;
global $wb3d_layers;
global $wb3d_element_created;
if($dlnum==0){
$ind=0;
}
else{
$ind=$aa[$dlnum]['ind'];
}
$B=$aa[ $dlnum ];
if($dlnum==0){
$ind=0;
$layer_of_location[$sn.'-'.$w.'-'.$ind]=$ind;
}
else {
$layer_of_location[$sn.'-'.$w.'-'.$dlnum]=$ind;
}
$w3=$aa[$dlnum]['U_P'] ;
$r=0;
if($ind!=0){
for( $r=0;$r<$B['layer_obj'];$r++){
$modd="obj_num_".$r;
$T1= "type_".$B[$modd] ;
if(!isset($B[$T1]))
$B[$T1]=-1;
$T= $B[$T1];
if(!isset($wb3d_element_created[ $cu.'_'.'0-0-0-'.$w.'-'.$ind.'-'.$B[$modd] ])){
$wb3d_element_created[ $cu.'_'.'0-0-0-'.$w.'-'.$ind.'-'.$B[$modd] ]=-1;
}
if(!isset($wb3d_element_created[$cu.'_'.$w0.'-'.$n0.'-'.$y0.'-'.$w.'-'.$ind.'-'.$B[$modd] ])){
$wb3d_element_created[$cu.'_'.$w0.'-'.$n0.'-'.$y0.'-'.$w.'-'.$ind.'-'.$B[$modd] ]=-1;
}
if($level==0&&$wb3d_element_created[ $cu.'_'.'0-0-0-'.$w.'-'.$ind.'-'.$B[$modd] ]!=1&&($parent==$w3||$parent==explode("-",$w3)[0]) )
{
$wb3d_element_created[$cu.'_'. '0-0-0-'.$w.'-'.$ind.'-'.$B[$modd] ]=1;
wb3d_createobjects($level,$cu,$w,$ind,$B[$modd],"new",$sn,$w,$ind,$B[$modd],0,$B,$B,0,$r,$dlnum,$aa,$main_demo);
}
else if($level!=0&&$T!='wb3d'&& $wb3d_element_created[$cu.'_'.$w0.'-'.$n0.'-'.$y0.'-'.$w.'-'.$ind.'-'.$B[$modd] ]!=1&&($parent==0||$parent==explode("-",$w3)[0])){
$wb3d_element_created[$cu.'_'.$w0.'-'.$n0.'-'.$y0.'-'.$w.'-'.$ind.'-'.$B[$modd] ]=1;
wb3d_createobjects($level,$cu,$w,$ind,$B[$modd],"new",$sn,$w0,$n0,$y0,0,$B,$B,0,$r,$dlnum,$aa,$main_demo);
}
}
}
return 0;
}//enid function
}
if ( (! function_exists( 'wb3d_htmldecode2' ))&&$wb3d_pro==0 ) {
function wb3d_htmldecode2($data){
return $data;
}
}
if ( ! function_exists( 'wb3d_createobjects' ) ) {
function wb3d_createobjects($level,$cu,$w,$name,$y,$flag,$sn,$w_0,$name_0,$y_0,$type1,$A,$B,$parent,$r,$dlnum,$aa,$main_demo){
global $wb3d_html;
global $wb3d_setting;
global $wb3d_dataslide;
global $wb3d_layers;
$p="position:absolute;";
$T= "type_obj-".$y ;
$T= $B[$T];
$T1= "type_".$y ;
$T1= $B[$T1];
if($level==0){
$idm=$w.'-'.$name.'-'.$y;
}
else{
$idm=$w_0.'-'.$name_0.'-'.$y_0.'-'.$w.'-'.$name.'-'.$y;
}
$idm=wb3d_create_id($cu.'_'.$idm);
$index1="type_obj-".$y;
$func1="wb3d_create_".$B[$index1];
$ov="overflow";
if($B[$ov]!=1){
$ov="overflow:hidden;";
}
else{
$ov="";
}
$ov2="overflow2";
if($B[$ov2]!=1){
$ov2="overflow:hidden;";
}
else{
$ov2="";
}
$textx="";
if($level===0&&$main_demo==="main"){
$ov="";
$textx=wb3d_button_textx(wb3d_plagin_images_URL,$idm);
}
$func1="wb3d_create_".$B[$index1];
$tag1='div';
$tag2='div';
if($main_demo!="main"){
$tags=wb3d_set_tag($B,$y);
$tag1=$tags[0];
$tag2=$tags[1];
}
$c="";
if($level===0){
$c="wb3d_draggable";
}
$relative="relative_".$y;
if( !isset($B[$relative])){
$B[$relative]=0;
}
if($B[$index1]=='ajaxwb3d'){
$wb3d_html.='
'.$textx;
$wb3d_html.='
';
$wb3d_html.='
';
$func1($level,$cu,$sn,$idm,$B,$T,$w,$name,$y,$dlnum,$aa,$w_0,$name_0,$y_0);
}
else{
if($B[$relative]==2)
$wb3d_html.='
'.$textx;
else
$wb3d_html.='
'.$textx;
$wb3d_html.='
';
$wb3d_html.='<'.$tag1.' class="wb3d_absolute" id="wb3de-'.$idm.'" style="'.$ov2.'">';
$func1($level,$cu,$sn,$idm,$B,$T,$w,$name,$y,$dlnum,$aa,$w_0,$name_0,$y_0);
}
if($B[$index1]=='ajaxwb3d'){
$wb3d_html.='
';
}
else{
$wb3d_html.=''.$tag2.'>
';
}
}
}
if ( ! function_exists( 'wb3d_button_textx' ) ) {
function wb3d_button_textx($ES_plagin_pic_URL,$idm){
$p="position:absolute;";
$c1='

';
$dp='background-color: #ccc;width:20px;height:20px;"/>';
$dc='background-color: #ccc;width:20px;height:20px;"/>';
$textx=$c1.$d;
$textx.=$c2.$d;
$textx.=$c3.$d;
$textx.=$c4.$d;
// $textx.=$cp.$dp;
$textx.=$cc.$dc;
return $textx;
}
}
?>