function openTarget (form, features, windowName) { if (!windowName) windowName = 'formTarget'; form.target = windowName; open ('', windowName, features); } function replace(text,from,to) // replace strings in strings { while (( ti=text.indexOf(from) ) >= 0) { text = text.substr(0,ti)+to+text.substr(ti+1); } return text; } function x_escape(text) // extended escape function { var x_chars = "*2A+2B-2D.2E/2F_5F"; text = escape(text); for (ci=0; ci < x_chars.length; ci+=3) { text = replace(text,x_chars.substr(ci,1),"%"+x_chars.substr(ci+1,2)); } return text; } function store_url(url) { var storevar = "STORED_URL="+url+" ORIG_NAME="+top.window.name; top.window.name = replace(x_escape(storevar),"%","_"); } function retrieve_url() { var url = ""; var storevar = unescape(replace(top.window.name,"_","%")); if (storevar.indexOf("STORED_URL=")==0 && (ni=storevar.indexOf("ORIG_NAME=")) > 0) { url = storevar.substr(11,ni-11); top.window.name = storevar.substr(ni+10); } return url; } // Check frame name and load framset when necessary function checkFrames(frameset_url,top_url,bottom_url,left_url,right_url) { if (top.frames['refresh']) { return false; } if (top.frames['mainFrame'] && top.frames['mainFrame'].document == document) { if(( stored_url=retrieve_url() ) > "") { document.location.replace(stored_url); } } else { store_url(document.location.href); top.location.replace(frameset_url); } if ((top.frames['topFrame']) && (""+top_url!="undefined")) { if(top.frames['topFrame'].location.href.indexOf(top_url) == -1) { top.frames['topFrame'].location.replace(top_url); } } if ((top.frames['bottomFrame']) && (""+bottom_url!="undefined")) { if(top.frames['bottomFrame'].location.href.indexOf(top_url) == -1) { top.frames['bottomFrame'].location.replace(bottom_url); } } if ((top.frames['leftFrame']) && (""+left_url!="undefined")) { if(top.frames['leftFrame'].location.href.indexOf(left_url) == -1) { top.frames['leftFrame'].location.replace(left_url); } } if ((top.frames['rightFrame']) && (""+right_url!="undefined")) { if(top.frames['rightFrame'].location.href.indexOf(right_url) == -1) { top.frames['rightFrame'].location.replace(right_url); } } } function boolframeset() { var query = window.location.search.substring(1); try { if (parseInt(query)==0) {return true;} else {return false;} } catch(e) { return false; } } // za PLAYTOY konzolu var acePopupWindow=null; function acePopup(mypage,myname,w,h,pos,infocus){ if(pos=='random'){ LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100; TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=='center'){ LeftPosition=(screen.width)?(screen.width-w)/2:100; TopPosition=(screen.height)?(screen.height-h)/2:100;} else if((pos!='center' && pos!='random') || pos==null){LeftPosition=100;TopPosition=100;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no'; acePopupWindow=window.open('',myname,settings); if(infocus=='front'){acePopupWindow.focus();acePopupWindow.location='http://krizaljka.htnet.hr/ht_multiplay/playtoy.html';} } // za meni VAZNO !!! function openmenu(CategoryId){ try { try { top.leftFrame.T_OpenSubCategoryFromContent(CategoryId); } catch (er) { top.leftFrame.T_OpenCategoryFromContent(CategoryId) } } catch(er) { top.leftFrame.T_CloseCategoriesFromContent() } } window.onerror = null; // script1=document.createElement('script'); // script1.src='http://www.google-analytics.com/urchin.js'; // document.getElementsByTagName('head')[0].appendChild(script1); // if (window.addEventListener) { // window.addEventListener("load", pozoviGoogle, false); // } else if (window.attachEvent) { // window.attachEvent('onload', pozoviGoogle); // } // function pozoviGoogle(){ // _uacct = "UA-181522-1"; // if ( window.urchinTracker ) { // urchinTracker(); // } // } function otvoridrop(value, target) { if (value!='') { if (target!='') { window.open(value, target); } else { window.location.href=value; } } }