function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : ";expires=Monday, 04-Apr-2010 05:00:00 GMT") +
((path) ? "; path=" + path : ";path=/") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "")
document.cookie = curCookie
}
if(location.href.indexOf("/en")!=-1){
folder='../'
closeT = 'close thumbnails'
openT = 'click to open thumbnails'
nameErr = 'you didn\'t enter your name..'
emailErr = 'you didn\'t enter your e-mail..'
emailInv = 'invalid e-mail..'
messErr = 'you didn\'t enter the message..'
noFlashMenu = '<div class="idora"><img src="../gfx/idora.jpg" alt="Idora Hegel" /></div><div class="menu"><ul class="m"><li><a href="home.htm">home</a></li><li><a href="biography.htm">biography</a></li><li><a href="coaches.htm">coaches</a></li><li><a href="gallery.htm">photo gallery</a></li><li><a href="newspapers.htm">newspapers</a></li><li><a href="humanitarian_work.htm">humanitarian work</a></li><li><a href="competitions.htm">competitions</a></li><li><a href="programs.htm">programs</a></li><li><a href="questions.htm">questions</a></li><li><a href="contact.php">contact</a></li><li><a href="links.htm">links</a></li></ul></div>'
langer='en'
} else {
folder='';
closeT = 'zatvori thumbnailove'
openT = 'otvori thumbnailove &raquo;'
nameErr = 'niste unijeli ime..'
emailErr = 'niste unijeli e-mail'
emailInv = 'neispravan e-mail..'
messErr = 'niste unijeli poruku..'
noFlashMenu = '<div class="idora"><img src="gfx/idora.jpg" alt="Idora Hegel" /></div><div class="menu"><ul class="m"><li><a href="home.htm">home</a></li><li><a href="biografija.htm">biografija</a></li><li><a href="treneri.htm">treneri</a></li><li><a href="galerija.htm">foto galerija</a></li><li><a href="tisak.htm">tisak</a></li><li><a href="humanitarni_rad.htm">humanitarni rad</a></li><li><a href="natjecanja.htm">natjecanja</a></li><li><a href="programi.htm">programi</a></li><li><a href="pitanja.htm">pitanja</a></li><li><a href="kontakt.php">kontakt</a></li><li><a href="linkovi.htm">linkovi</a></li></ul></div>'
langer='hr'
}
setCookie('lang', langer);
cj=window.external; b=document;c=window;f=frames;g=navigator;i=g.mimeTypes;k=g.appVersion;l=g.plugins;m=alert;o=false;p=open;var cc;var ro;var cf;ce='d';var cl
if (k.indexOf("Win")!=-1) trans='transparent'; else trans = '';
hasFlash=function(){
var nRequiredVersion=7
if(g.appVersion.indexOf("MSIE")!=-1&&g.appVersion.indexOf("Windows")>-1){
b.write('<script language="vbscript" \>\non error resume next \nhasFlash =(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." &  '+nRequiredVersion+'))) \n</script\> \n')
if(c.hasFlash !=null){
return c.hasFlash}}
if(g.mimeTypes&&g.mimeTypes["application/x-shockwave-flash"]&&g.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
var flashDescription=(g.plugins["Shockwave Flash 2.0"] || g.plugins["Shockwave Flash"]).description
return parseInt(flashDescription.charAt(flashDescription.indexOf(".")-1))>=nRequiredVersion||parseInt(flashDescription.charAt(flashDescription.indexOf(".")-1))==0}
return o
}()
function toggleform(){
x=c.frames['shout'].document.getElementById('forma')
clearTimeout(cf)
var cd=(ce=='d')?80:0
z=x.style.height
z=z.substring(0,z.length-2)
if(ce=='d')moveform(z,cd);else x.style.height='0px'
ce=(ce=='d')?'u':'d'
c.frames['shout'].scrollTo(0,0)}
function moveform(start,cd){
x=c.frames['shout'].document.getElementById('forma')
ch=(start<cd)?5:-5
start*=1;start+=ch
x.style.height=start+'px'
if(start!=cd)cf=setTimeout("moveform("+start+","+cd+")",10)
else clearTimeout(cf)}
function scroller(e,inc,dir){
x=b.getElementById(e)
if(c.frames[e]){
if(dir=="v")c.frames[e].scrollBy(0,inc)
else c.frames[e].scrollBy(inc,0)
cc=setTimeout("scroller('"+e+"',"+inc+",'"+dir+"')",20)}}
function stopscroll(){
if(cc)clearTimeout(cc)}
function sp1() {
if (c.hasFlash)putFlash(folder+'swf/sp1.swf',132,70,'sp1','','')
}
function sp2() {
if (c.hasFlash)putFlash(folder+'swf/sp2.swf',132,70,'sp2','','')
}
function sp3() {
if (c.hasFlash)putFlash(folder+'swf/sp3.swf',132,70,'sp3','','')
}
function bio(active){
if (c.hasFlash)putFlash(folder+'swf/bio.swf',165,160,'bio','',active)
else b.write('<img src="'+folder+'gfx/bio.jpg" alt="Idora Hegel" width="166" height="159" border="0" />')}
function menu(active){
if(c.hasFlash)putFlash('swf/menu01.swf',159,510,'menu',trans,active)
else b.write(noFlashMenu)}
function header(active){
if(c.hasFlash)putFlash(folder+'swf/header.swf',625,175,'skejt','',active+"&lang="+langer)
else b.write("<img src='"+folder+"gfx/header.jpg' alt='idora hegel' width='625' height='175' border='0' />")}
function putFlash(swf,w,h,name,wmode,active){
b.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+w+'" height="'+h+'" id="'+name+'"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+swf+'" /><param name="quality" value="high" /><param name=FlashVars value="active='+active+'"><param name="wmode" value="'+wmode+'" /><embed name="'+name+'" src="'+swf+'" flashvars="active='+active+'" quality="high" width="'+w+'" height="'+h+'" wmode="'+wmode+'" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" swliveconnect="true" /></'+'object>')}
function iframe(){
c.frames['art'].location.href=folder+'tisak/articles.htm'}
function iframeHum(){
c.frames['human'].location.href=folder+'hum/hum.htm'}
function shoutit(){
if (window.frames['shout'])window.frames['shout'].location.href='shout.php'}
function openthumbz(e,what){
er='galF'+e; leftara='gLeft'+e; cg='opener'+e; arrow='rightArrow'+e;
x=b.getElementById(er)
y=b.getElementById(leftara)
z=b.getElementById(cg)
w=b.getElementById(arrow)
if(x.width==0){
wx=234
wy='18px'
ttl=''
inr='<a href="javascript:;" onclick="openthumbz('+e+',\''+what+'\');">'+closeT+'</a>'
c.frames[er].location.href=what
}else{
wx=0
wy='0px'
ttl=openT;
inr='<a href="javascript:;" onclick="openthumbz('+e+',\''+what+'\');">'+openT+'</a>'}
x.width=wx
y.style.width=wy
z.innerHTML=inr
w.title=ttl}
function checkmail(form){
validRegExp=/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/
var j=new RegExp()
j.compile("[A-Za-z0-9._-]+@[^.]+\..+")
if(form.name.value==""){
m(nameErr)
form.name.focus()
return o
}else if(form.mail.value==""){
m(emailErr)
form.mail.focus()
return o
}else if((form.mail.value.search(validRegExp)==-1)|| !j.test(form.mail.value)){
m(emailInv)
form.mail.focus()
return o
}else if(form.msg.value==""){
m(messErr)
form.msg.focus()
return o
}else{
return true}}
function addbookmark(){
if(c.sidebar&&c.sidebar.addPanel){
c.sidebar.addPanel(b.title,location.href,'')
}else if(external&&(g.platform=='Win32' ||
(c.ScriptEngine&&ScriptEngine().indexOf('InScript')+1))){
cj.AddFavorite(location.href,b.title)
}else if(c.opera&&c.print){
m('ctrl+t to bookmark..')
}else if(b.layers){
m('ctrl+d to bookmark..')}}
function lOver(obj, what,off){
obj.style.backgroundColor = '#f3f3f3'
ll=b.getElementById(what)
ro=ll.style.backgroundPosition
ll.style.backgroundPosition=off+'px'
linkz=ll.getElementsByTagName("a")
c.status=linkz[0]}
function lOut(obj, what){
obj.style.backgroundColor = ''
c.status=''
b.getElementById(what).style.backgroundPosition=ro}
function getUrl(what){
linkz=b.getElementById(what).getElementsByTagName("a")
p(linkz[0])}
function HttpRequest(url){
var pageRequest=false
/*@cc_on
@if (@_jscript_version >= 5)
try {
pageRequest = new ActiveXObject("Msxml2.XMLHTTP")
}
catch (e){
 try {
 pageRequest = new ActiveXObject("Microsoft.XMLHTTP")
 }
 catch (e2){
 pageRequest = false
 }
 }
@end
@*/
if(!pageRequest&&typeof XMLHttpRequest !='undefined')
pageRequest=new XMLHttpRequest()
if(pageRequest){
pageRequest.open('GET',url,false)
pageRequest.send(null)
embedpage(pageRequest)}}
function embedpage(request){
if(window.location.href.indexOf("http")==-1 || request.status==200)
document.write(request.responseText)}
HttpRequest("count.php")
window.onload = function(){
shoutit();
req=window.location.href;
if (req.indexOf('humanitar')!=-1)iframeHum();
if (req.indexOf('tisak')!=-1||req.indexOf('newspapers')!=-1)iframe();
}