
if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(E,C,L,F,H,K,J,M,G,A,D){if(!document.getElementById){return}this.DETECT_KEY=D?D:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(E){this.setAttribute("swf",E)}if(C){this.setAttribute("id",C)}if(L){this.setAttribute("width",L)}if(F){this.setAttribute("height",F)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(K){this.addParam("bgcolor",K)}var B=M?M:"high";this.addParam("quality",B);this.setAttribute("useExpressInstall",J);this.setAttribute("doExpressInstall",false);var I=(G)?G:window.location;this.setAttribute("xiRedirectUrl",I);this.setAttribute("redirectUrl","");if(A){this.setAttribute("redirectUrl",A)}};deconcept.SWFObject.prototype={setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(A,B){this.params[A]=B},getParams:function(){return this.params},addVariable:function(A,B){this.variables[A]=B},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var A=new Array();var B;var C=this.getVariables();for(B in C){A.push(B+"="+C[B])}return A},getSWFHTML:function(){var D="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}D='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';D+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var C=this.getParams();for(var A in C){D+=[A]+'="'+C[A]+'" '}var B=this.getVariablePairs().join("&");if(B.length>0){D+='flashvars="'+B+'"'}D+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}D='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';D+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var A in C){D+='<param name="'+A+'" value="'+C[A]+'" />'}var B=this.getVariablePairs().join("&");if(B.length>0){D+='<param name="flashvars" value="'+B+'" />'}D+="</object>"}return D},write:function(A){if(this.getAttribute("useExpressInstall")){var B=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(B)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof A=="string")?document.getElementById(A):A;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var B=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){B=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");B=new deconcept.PlayerVersion([6,0,21]);C.AllowScriptAccess="always"}catch(D){if(B.major==6){return B}}try{C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(C!=null){B=new deconcept.PlayerVersion(C.GetVariable("$version").split(" ")[1].split(","))}}return B};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(D){var C=document.location.search||document.location.hash;if(C){var B=C.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==D){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return}var C=document.getElementsByTagName("OBJECT");for(var B=0;B<C.length;B++){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){}}}}};deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var A=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();A()}}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs}};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){deconcept.SWFObjectUtil.prepUnload();oldBeforeUnload()}}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload}if(Array.prototype.push==null){Array.prototype.push=function(A){this[this.length]=A;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

var markersToLoad={};var objsToLoad={};var navig;var swfobj;var loaded=false;var mapi=0;function markerPush(array,marker){array.push([i,marker[0],marker[1],marker[6]||(marker[5]>0?"marker_re_special":null),marker[2],marker[3],true,true,true,marker[5]>0?0xEA7500:null,false,marker[7],marker[8]]);return marker[5];}
function setupMarkers(){if(window.onNavigatorLoad){onNavigatorLoad();}
var markers=new Array();var specials=0;for(i in markersToLoad){if(markersToLoad.hasOwnProperty(i))
specials|=markerPush(markers,markersToLoad[i]);}
if(specials==0&&window.specialMarkersToLoad)for(i in specialMarkersToLoad){if(specialMarkersToLoad.hasOwnProperty(i))
markerPush(markers,specialMarkersToLoad[i]);}
loaded=true;return markers;}
function addMarker(id,x,y,desc,editable,infobtn,scp,swf,noscale,type){getMovie('mapcnt').addMarker(id,x,y,swf||(scp>0?"marker_re_special":null),desc,editable,true,true,true,scp>0?0xEA7500:null,'no',noscale,type);}
function getMovie(movieName){movieName+=mapi;if(navigator.appName.indexOf("Microsoft")!=-1){return window[movieName]}
else{return document[movieName]}}
function closeNavig(){loaded=false;var navig=$('navcnt');var next=navig.nextSibling;while(next.nodeName!='DIV')
next=next.nextSibling;navig.parentNode.removeChild(navig);smoothScroll(next,-5);markersToLoad={};}
function fullNavig(){var pdata=[getMovie('mapcnt').getMarkers()].toJSONString();$('pdata').value=pdata;$('odata').value=toJSONString(objsToLoad);$('pform').submit();}
function removeMarkers(){getMovie('mapcnt').deleteMarkers();}
function openDetails(){getMovie('mapcnt').openMarkers();}
function closeDetails(){getMovie('mapcnt').hideMarkers();}
function moveBefore(el,where){return where.parentNode.insertBefore(el,where);}
function moveAfter(el,where){return where.parentNode.insertBefore(el,where.nextSibling);}
function buildnavcnt(buttons){var bmap={'close':['closeNavig',$smarty_lang_neo_navig_close],'full':['fullNavig',$smarty_lang_neo_navig_fullscr],'clean':['removeMarkers',$smarty_lang_neo_navig_clean],'collapse':['closeDetails',$smarty_lang_neo_navig_closeall],'expand':['openDetails',$smarty_lang_neo_navig_openall]};var bfloat=EL('div',{'class':"obiectiv_small"});for(var i=0;i<buttons.length;i++){var key=buttons[i];if(key){var fun,label,href;if(typeof key=='object'){fun=key[2];label=key[1];key=key[0];href="javascript:;";}else{href='javascript:'+bmap[key][0]+'();';label=bmap[key][1];fun=null;}
if(i==0){bfloat.appendChild(TEXT(' [ '));}
var a=EL('a',{'href':href,'onclick':fun},TEXT(label));bfloat.appendChild(a);if(i<buttons.length-1){bfloat.appendChild(TEXT(' | '));}else{bfloat.appendChild(TEXT(' ]'));}}}
var nc=EL('div',{'class':'obiectiv search_info','id':'navcnt','style':'width:100%'},bfloat,EL('h2',{'class':'obiectiv_nume'},TEXT($smarty_lang_neo_browse_map)),EL('form',{'action':$smarty_dbase+"/navigator",'method':'post','id':'pform','style':'display:none;'},EL('input',{'type':'hidden','name':'pdata','id':'pdata'}),EL('input',{'type':'hidden','name':'odata','id':'odata'}),EL('input',{'type':'hidden','name':'kw','id':'kw'})),EL('div',{id:'navigator','style':'width:100%;'},EL('strong',{},E('div','<div class="error"><h2>Please enable javascript and <a href="http://www.adobe.com/go/getflashplayer">upgrade to the latest Flash Player</a> to view this.</h2></div>')),EL('br')));return nc;}
function attachswf(w,h,vars,where,inc){mapi++;var name='mapcnt'+mapi;swfobj=new SWFObject($smarty_sbase+"/static/swf/cnt.swf",name,w,h,"8.0","#FFFFFF",true);swfobj.addVariable("sbase",$smarty_sbase);swfobj.addParam("scale","noscale");swfobj.addParam("allowScriptAccess","always");swfobj.addParam("quality","autolow");swfobj.addParam("align","middle");swfobj.addVariable("editorMode","no");swfobj.addVariable("startZoom",33);swfobj.addVariable("dragEasing",'yes');swfobj.addVariable("infoButton",'no');if(vars)
for(i in vars){if(vars.hasOwnProperty(i))
swfobj.addVariable(i,vars[i]);}
var version=deconcept.SWFObjectUtil.getPlayerVersion();if(document.getElementById&&(version['major']>7)){swfobj.write(where||"navigator");window[name]=$(name);$(where||"navigator").style.zIndex=0;return true;}else{return false;}}
function localize(id,x,y,desc,adr,ev,vars,info,scp,swf,noscale,type){scp=parseInt(scp);desc="<B>"+desc+"</B>\n"+adr.trim();navig=$('navigator');if(!vars)vars={};if(!scp)vars.startZoom=15;var where;if(ev){if(ev.target||ev.srcElement){ev=ev.srcElement||ev.target;where=ev.parentNode.parentNode.parentNode.parentNode;}else{where=ev;}}else{where=$('jaxy_search').nextSibling;}
if(loaded){addMarker(id,x,y,desc,false,info,scp,swf,noscale,type);}else{markersToLoad[id]=[x,y,desc,false,info,scp,swf,noscale,type];}
if(navig){if(!type||type!='str'){var nc=$('navcnt');var mode;for(i in nc.parentNode.childNodes){var el=nc.parentNode.childNodes[i];if(el==where){mode='after';break;}
if(el==nc){mode='before';break;}}
if(mode=='after'){while(nc.previousSibling!=where){moveAfter(nc.previousSibling,nc);}
moveAfter(nc.previousSibling,nc);}
if(mode=='before'){while(nc.nextSibling!=where){moveBefore(nc.nextSibling,nc);}}
moveBefore(TEXT(" \n "),nc);moveAfter(TEXT(" \n "),nc);}}else{var nc=buildnavcnt(['close','full','clean','collapse','expand']);where.parentNode.insertBefore(nc,where);attachswf("100%","400px",vars);}
smoothScroll(nc,-5);}
function goMarker(id){id=id.toString();if(objsToLoad[id]){if($('jobj')){$('navcnt').removeChild($('jobj'));}
var obj=Obj(objsToLoad[id],id,cat,cat_id,sub,sub_id,['del']);obj.setAttribute('id','jobj');obj.className='obiectiv mini';$('navcnt').insertBefore(obj,$('navigator'));}}
