var dd=new Date();js_id=dd.getTime();if(g=document.getElementsByTagName('eturas:setting')){try{settings_i++;settings=g[settings_i]}catch(e){settings_i=0;settings=g[settings_i];var dd=new Date();js_id=dd.getTime();version_v='v4';if(settings.getAttribute("version"))version_v=settings.getAttribute("version");if(settings.getAttribute("stopResize")){stopResize=settings.getAttribute("stopResize")}if(typeof jQuery=='undefined'){var script=document.createElement('script');script.type='text/javascript';script.src='http://www.eturas.lt/js/'+version_v+'/jquery.package.js?'+js_id;document.getElementsByTagName('head')[0].appendChild(script)}else{var j=jQuery;var script=document.createElement('script');script.type='text/javascript';script.src='http://www.eturas.lt/js/'+version_v+'/jquery.postmessage.js';document.getElementsByTagName('head')[0].appendChild(script)}}}if(!settings.getAttribute("project")){document.write("Undefined project!")}else{iFraime_id='eturas-frame';var is_url=0;function getUrlFromLocation(){result='';new_lang='';var pair=window.location.search.substring(1);url_string='url';if(url_string_=settings.getAttribute("url_string"))url_string=url_string_;var parts1=pair.split('&');var parts=[];for(i=0;i<parts1.length;i++){part=parts1[i].split('=');if(part[0]==url_string){result='&url='+part[1];is_url=1}if(part[0]=='LANGUAGE'){new_lang=part[1];result+='&LANGUAGE='+part[1]}}if(!is_url){if(settings.getAttribute("url")){result+='&url='+settings.getAttribute("url");is_url=1}}if(settings.getAttribute("language")&&!new_lang){result+='&LANGUAGE='+settings.getAttribute("language");new_lang=settings.getAttribute("language")}if(settings.getAttribute("custom_url")&&!is_url){result+='&custom_url='+settings.getAttribute("custom_url")}if(settings.getAttribute("blockID")){result+='&step_1_template=index-block&BLOCKID='+settings.getAttribute("blockID")}if(settings.getAttribute("stopResize")){result+='&stopResize=1'}if(window.location.hash){if(window.location.hash.substring(1)!='eturas')result+=window.location.hash}return result}function loader(){loader_id='eturas_loader_'+sesion_id;document.write('<div style="text-align:center;z-index:99999;"><div id="'+loader_id+'" style="background-color:#FFFFFF;border:2px solid #CCCCCC;left:50%;min-width:200px;padding:20px;position:absolute;margin-top:25px;font-weight:bold;margin-left:-150px;font-family:arial;color:#555;display:none;opacity:0;font-size:13px;"><img style="padding:0 10px 0 0;vertical-align:middle;" src="http://www.eturas.lt/js/loader_small.gif"> '+loading_text[new_lang]+'</div></div>');if(settings.getAttribute("loader")!='false')setTimeout("onEturasLoader('"+sesion_id+"');",100)}var d=new Date();sesion_id=d.getTime();urlFromLocation=getUrlFromLocation();if(new_lang=='')new_lang='lit';loading_text={eng:'Loading system, please wait.',lit:'Vyksta sistemos užsikrovimas, prašome palaukti.',lav:'Ir booted sistēma, lūdzu uzgaidiet.',est:'On käivitatud süsteem, palun oodake.',rus:'Загрузкa системы, пожалуйста, подождите.'};loader();document.write('<iframe id="eturas-frame_'+sesion_id+'" name="'+sesion_id+'" src="http://'+settings.getAttribute("project")+'.eturas.lt/cake/?v=2'+urlFromLocation+'"');if(width=settings.getAttribute("width"))document.write('width="'+width+'" ');else document.write('width="100%" ');if(height=settings.getAttribute("height"))document.write('height="'+height+'" ');else document.write('height="150" ');document.write('frameborder=0 scrolling="no">');document.write('</iframe>')}