// (c)2009 Remind Advertising GmbH

function cloader(spath,croll){if(is_int(spath)){debug("int: "+spath);}else{debug("no int: "+spath);for(var obj1 in $spath_tree_history){if(spath==$spath_tree_history[obj1]){spath=obj1;break;}}}
$.history.add($spath_tree_history[spath]);navigation_activation(spath);if($("#"+spath).hasClass(".hidden")==true){$("#"+spath).parent(".cha").children(".re-content-element").hide();$("#"+spath).prepend('<div id="loader" class="re-alpha_hard re-green_bg" style="width: 809px; position: absolute; height: 450px; top: 21px; left: 0px;"><h1 style="text-align: center; color: #FFFFFF; font-family: Georgia; font-weight: normal; font-size: 28px; padding-top: 210px;">Referenz wird geladen ...</h1></div>');$.ajax({type:"POST",url:"/index.php?aj=1&ajload=2&spath="+spath+"&inj="+spath,async:true,dataType:"html",success:function(html){$("#"+spath).children(".chb").html($(html).html());$("#"+spath).children("#loader").remove();$("#"+spath).find(".chb").cgallery($("#"+spath).find(".chb").children(".level-5:first"));}});}
if($("#"+spath).hasClass("hidden")==true){$("#"+spath).show();}
debug("croll:"+croll);if($("#"+spath).length>0&&croll!=1){av="#"+spath;$(av).crollup();}else{debug("cloader: "+spath);$spath=spath;debug("attempt to load: &spath="+spath+"&ajload=2&aj=1&usr=remind");if(ret=$.cache.load(spath)){$("#re-content").cswitch(ret,100,function(){mv="#"+$spath;$(mv).crollup();});}else{$.ajax({type:"POST",url:"/index.php?usr=remind&spath="+spath+"&ajload=2&aj=1",async:false,data:"anfrage="+$("#formsuche").children(".suche").attr("value"),dataType:"html",success:function(html){$("#re-content").cswitch(html,100,function(){mv="#"+$spath;$(mv).crollup();});}});}}}
function debug(message){}
