var jeup=0,jetajm=0,poz=Array(),pozkos=Array(),redirloc="",objgif=0,objnovi=0,intv=0,intv1=0,pvrijeme=0,pvrijeme1=0,obk=0,vilj=0;
var IE55n=/MSIE ((5\.5)|[6789])/.test(navigator.userAgent)&&navigator.platform=="Win32";
var IE=/MSIE/.test(navigator.userAgent)&&navigator.platform=="Win32";
function init_png(_1){
_1.slika="";
_1.prozirno="http://www.crovortex.com/images/pixel.gif";
if(IE55n){
png_ucitaj_alpha(_1);
}else{
if(IE){
var _2=String(_1.src);
_1.src=(_1.slika?_1.slika.substring(0,_1.slika.length-3):_2.substring(0,_2.length-3))+"gif";
}
}
}
function set_redir(_3){
redirloc=_3;
}
function promjena(_4){
if(event.propertyName!="src"){
return;
}
if(IE55n){
png_ucitaj_alpha(_4);
}else{
if(IE){
var _5=String(_4.src);
_4.src=_5.substring(0,_5.length-3)+"gif";
}
}
}
function png_ucitaj_alpha(_6){
var _7=_6.src;
if(_7==_6.slika&&/\.png$/i.test(_7)){
_6.src=_6.prozirno;
return;
}
if(_6.prozirno!=_7.substring(_7.length-_6.prozirno.length)){
_6.slika=_7;
}
if(/\.png$/i.test(_7)){
_6.src=_6.prozirno;
_6.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_7+"',sizingMethod='scale')";
}
}
function pozicija(_8){
var l=0,t=0;
if(_8.offsetParent){
l=_8.offsetLeft;
t=_8.offsetTop;
while(_8=_8.offsetParent){
l+=_8.offsetLeft;
t+=_8.offsetTop;
}
}
return [l,t];
}
function kosaraA(_b){
try{
var _c=parseInt(objnovi.style.width);
if(!_b&&_c>=150){
clearInterval(intv);
intv=0;
}else{
if(_b&&16>=_c){
clearInterval(intv);
intv=0;
objnovi.style.visibility="hidden";
objgif.style.visibility="visible";
objgif.src="/images/kolicampuna.gif";
}else{
var vr=new Date();
var _e=(vr.getTime()-pvrijeme)/100;
var _f=16,_10=16;
if(_e>1){
_e=1;
}
if(_b){
_c=16+(134-134*_e);
}else{
_c=16+134*_e;
var _11=parseInt(obk.style.width),_12=parseInt(obk.style.height);
if(_11>100){
var _13=_11-((_11-100)*_e);
obk.style.width=_13+"px";
obk.style.height=Math.floor(_13*parseInt(obk.style.height)/_11)+"px";
}
if(_e==1&&_12>150){
_11=parseInt(obk.style.width);
var _13=Math.floor(150*_11/_12);
obk.style.width=_13+"px";
obk.style.height="150px";
obk.style.left=parseInt(obk.style.left)+Math.floor((_11-_13)/2)+"px";
}
}
if(_c>150){
_c=150;
}else{
if(16>_c){
_c=16;
}
}
var _14=(_c-16)/134;
_f+=Math.round(13*_14);
_10+=Math.round(3*_14);
objnovi.style.height=_c+"px";
objnovi.style.width=_c+"px";
objnovi.style.left=(pozkos[0]-_c+_f)+"px";
objnovi.style.top=(pozkos[1]-_c+_10)+"px";
}
}
}
catch(e){
if(intv1!=0){
clearInterval(intv1);
}
intv1=0;
if(intv!=0){
clearInterval(intv);
}
intv=0;
if(jetajm!=0){
clearTimeout(jetajm);
}
jetajm=0;
redir();
}
}
function helic3(_15){
try{
var _16=vilj.getAttribute("krajy"),_17=vilj.getAttribute("trenx");
if(!_15&&parseInt(vilj.style.top)>=_16){
clearInterval(intv1);
intv1=0;
vilj.setAttribute("krajy",-205);
vilj.setAttribute("trenx",parseInt(vilj.style.top));
var vr=new Date();
pvrijeme1=vr.getTime();
intv1=setInterval("helic3(1)",1);
setTimeout("upali();",10);
}else{
if(_15&&-205>=parseInt(vilj.style.top)){
clearInterval(intv1);
intv1=0;
redir();
}else{
var vr=new Date();
var _19=(vr.getTime()-pvrijeme1)/((_16-_17)*(_15==0?3:1)),_1a=parseInt(vilj.style.top);
if(_19>1){
_19=1;
}
if(_15==0){
_19=Number(_17)+Math.floor((_16-_17)*_19);
}else{
_19=Number(_17)-Math.floor((_16-_17)*_19);
}
vilj.style.top=_19+"px";
if(_15==0){
_1a=_19-_1a;
obk.style.top=(parseInt(obk.style.top)+_1a)+"px";
}
}
}
}
catch(e){
if(intv1!=0){
clearInterval(intv1);
}
intv1=0;
if(intv!=0){
clearInterval(intv);
}
intv=0;
if(jetajm!=0){
clearTimeout(jetajm);
}
jetajm=0;
redir();
}
}
function helic2(){
try{
var _1b=vilj.getAttribute("krajx");
if(_1b>=parseInt(vilj.style.left)){
clearInterval(intv1);
intv1=0;
vilj.style.left=_1b+"px";
vilj.setAttribute("krajy",parseInt(objnovi.style.top)-(105+parseInt(obk.style.height)));
vilj.setAttribute("trenx",parseInt(vilj.style.top));
var vr=new Date();
pvrijeme1=vr.getTime();
intv1=setInterval("helic3(0)",1);
}else{
var _1d=vilj.getAttribute("krajy"),_1e=vilj.getAttribute("trenx");
var vr=new Date();
var _1f=(vr.getTime()-pvrijeme1)/900,_20=parseInt(vilj.style.left),_21=parseInt(vilj.style.top);
if(_1f>1){
_1f=1;
}
trvy=Math.floor(Math.cos(_1f*Math.PI-Math.PI/2)*150);
vilj.style.top=(_1d-trvy)+"px";
_21=_1d-trvy-_21;
trvy=Number(_1b)+Math.floor(_1e*(1-_1f));
_20=trvy-_20;
vilj.style.left=trvy+"px";
obk.style.top=(parseInt(obk.style.top)+_21)+"px";
obk.style.left=(parseInt(obk.style.left)+_20)+"px";
}
}
catch(e){
if(intv1!=0){
clearInterval(intv1);
}
intv1=0;
if(intv!=0){
clearInterval(intv);
}
intv=0;
if(jetajm!=0){
clearTimeout(jetajm);
}
jetajm=0;
redir();
}
}
function helic1(){
try{
var _22=parseInt(vilj.style.top);
if(_22>=(poz[1]-204)){
clearInterval(intv1);
intv1=0;
vilj.style.top=(poz[1]-204)+"px";
vilj.setAttribute("krajx",parseInt(objnovi.style.left)-210);
vilj.setAttribute("trenx",-1*(parseInt(objnovi.style.left)-215-parseInt(vilj.style.left)));
vilj.setAttribute("krajy",parseInt(vilj.style.top));
var vr=new Date();
pvrijeme1=vr.getTime();
intv1=setInterval("helic2()",1);
}else{
var vr=new Date();
var _24=(vr.getTime()-pvrijeme1)/750;
if(_24>1){
_24=1;
}
vilj.style.top=Math.round(_22+((poz[1]-204-_22)*_24))+"px";
}
}
catch(e){
if(intv1!=0){
clearInterval(intv1);
}
intv1=0;
if(intv!=0){
clearInterval(intv);
}
intv=0;
if(jetajm!=0){
clearTimeout(jetajm);
}
jetajm=0;
redir();
}
}
function bulld2(){
try{
var _25=vilj.getAttribute("krajy"),_26=vilj.getAttribute("puty");
if(parseInt(obk.style.top)>=_25){
clearInterval(intv1);
intv1=0;
setTimeout("upali();",10);
redir();
}else{
var vr=new Date();
var _28=(vr.getTime()-pvrijeme1)/250;
if(_28>1){
_28=1;
}
obk.style.top=(_25-_26+Math.round(_26*_28))+"px";
}
}
catch(e){
if(intv1!=0){
clearInterval(intv1);
}
intv1=0;
if(intv!=0){
clearInterval(intv);
}
intv=0;
if(jetajm!=0){
clearTimeout(jetajm);
}
jetajm=0;
redir();
}
}
function bulld1(){
try{
var _29=poz[0]-parseInt(objnovi.style.left)+195;
if(parseInt(objnovi.style.left)+115>=parseInt(vilj.style.left)){
clearInterval(intv1);
intv1=0;
unosvjetli("viljuskar",0.1,0);
vilj.setAttribute("krajy",parseInt(objnovi.style.top)+95-parseInt(obk.style.height));
vilj.setAttribute("puty",parseInt(objnovi.style.top)+95-parseInt(obk.style.height)-parseInt(obk.style.top));
var vr=new Date();
pvrijeme1=vr.getTime();
intv1=setInterval("bulld2()",1);
}else{
var vr=new Date();
var _2b=(vr.getTime()-pvrijeme1)/1500;
if(_2b>1){
_2b=1;
}
var _2c=poz[0]+75-Math.round(_29*_2b);
if(_2c!=parseInt(vilj.style.left)){
vilj.style.left=_2c+"px";
obk.style.left=(_2c-75)+"px";
}
}
}
catch(e){
if(intv1!=0){
clearInterval(intv1);
}
intv1=0;
if(intv!=0){
clearInterval(intv);
}
intv=0;
if(jetajm!=0){
clearTimeout(jetajm);
}
jetajm=0;
redir();
}
}
function vozilo(){
try{
poz=pozicija(obk);
if(/helic/i.test(vilj.src)||/pixel\.gif/i.test(vilj.src)){
vilj.style.width="598px";
vilj.style.height="205px";
vilj.style.left=(poz[0]+50-297)+"px";
vilj.style.top="-205px";
var vr=new Date();
pvrijeme1=vr.getTime();
intv1=setInterval("helic1()",1);
}else{
vilj.style.width="278px";
vilj.style.height="145px";
vilj.tajmer=0;
vilj.fadeovi=new Array();
if(vilj.filters){
vilj.runtimeStyle.filter="alpha(opacity=10)";
}else{
if(typeof (vilj.style.MozOpacity)=="string"){
vilj.style.MozOpacity=0.1;
}
}
vilj.style.left=(poz[0]+75)+"px";
if(parseInt(obk.style.width)==100){
var _2e=parseInt(obk.style.height);
if(_2e>150){
_2e=150;
}
vilj.style.top=(poz[1]+_2e-130)+"px";
}else{
var _2e=Math.round(parseInt(obk.style.height)*100/parseInt(obk.style.width));
if(_2e>150){
_2e=150;
}
vilj.style.top=(poz[1]+_2e-130)+"px";
}
if(IE){
var _2e=document.getElementById("ocjenaIE");
if(_2e){
_2e.style.visibility="hidden";
}
}
osvjetli("viljuskar",0.05);
var vr=new Date();
pvrijeme1=vr.getTime()+300;
setTimeout("intv1=setInterval('bulld1()',1);",300);
}
}
catch(e){
if(intv1!=0){
clearInterval(intv1);
}
intv1=0;
if(intv!=0){
clearInterval(intv);
}
intv=0;
if(jetajm!=0){
clearTimeout(jetajm);
}
jetajm=0;
redir();
}
}
function redir(){
if(jetajm!=0){
clearTimeout(jetajm);
}
jetajm=0;
document.location=redirloc;
}
function mtoredit(m,br,br2){
var n,i,r="";
for(i=0;i<m.length;++i){
n=m.charCodeAt(i);
if(n>126||n<40){
r+=n;
}else{
if(i%2){
r+=String.fromCharCode(n+br);
}else{
r+=String.fromCharCode(n+br2);
}
}
}
set_redir(r);
redir();
return;
}
function upali(){
try{
if(jetajm==0){
jetajm=setTimeout("redir();",5000);
}
if(!vilj||typeof (vilj)=="undefined"){
vilj=document.getElementById("viljuskar");
}
if(!vilj.complete){
vilj.onload=upali;
if(/\.png$/i.test(vilj.slika)||/\.png$/i.test(vilj.src)){
vilj.src=(vilj.slika?vilj.slika.substring(0,vilj.slika.length-3):vilj.src.substring(0,vilj.src.length-3))+"gif";
}
return;
}
var vr=new Date();
pvrijeme=vr.getTime();
if(jeup){
obk.style.top=poz[1]+"px";
obk.style.left=poz[0]+"px";
obk.style.visibility="hidden";
intv=setInterval("kosaraA(1);",1);
}else{
jeup=1;
poz=pozicija(obk);
obk.style.top=poz[1]+"px";
obk.style.left=poz[0]+"px";
obk.style.position="absolute";
pozkos=pozicija(objgif);
objnovi.style.left=pozkos[0]+"px";
objnovi.style.top=pozkos[1]+"px";
objnovi.style.height="16px";
objnovi.style.width="16px";
objnovi.style.visibility="visible";
objgif.style.visibility="hidden";
intv=setInterval("kosaraA(0);",1);
vozilo();
}
}
catch(e){
redir();
}
}
var mjesec=new Array(12);
mjesec[0]="Sije&#269;anj";
mjesec[1]="Velja&#269;a";
mjesec[2]="O&#382;ujak";
mjesec[3]="Travanj";
mjesec[4]="Svibanj";
mjesec[5]="Lipanj";
mjesec[6]="Srpanj";
mjesec[7]="Kolovoz";
mjesec[8]="Rujan";
mjesec[9]="Listopad";
mjesec[10]="Studeni";
mjesec[11]="Prosinac";
function updatesat(){
min++;
if(min>=60){
min="00";
sat++;
if(sat>=24){
sat="00";
dan++;
if((mjrb>6&&((mjrb+1)%2&&dan>=31))||(mjrb<=6&&(mjrb%2&&dan>=31))||dan>=32||(mjrb==1&&godina%4&&dan>=29)||(mjrb==1&&!(godina%4)&&dan>=30)){
dan=1;
mjrb++;
if(mjrb>=12){
mjrb=0;
godina++;
}
}
}else{
if(sat<10){
sat="0"+sat;
}
}
}else{
if(min<10){
min="0"+min;
}
}
}
function satformat(){
var tmp=dan+"."+mjesec[mjrb]+" "+godina+" "+sat+":"+min;
return tmp;
}
function IEsat(){
var tmp="";
updatesat();
IESat.innerHTML=satformat();
setTimeout("IEsat()",60000);
return;
}
function IEnovi(){
document.write("<div id=\"IESat\" style=\"width:300px; background-color:#FFFFFF; font-family:Arial\"></div>");
IEsat();
return;
}
function NSsat(){
var tmp=document.layers["NSS"];
var _39=tmp.document.layers["NSSat"];
var _3a="";
updatesat();
_39.document.write(satformat());
_39.document.close();
setTimeout("NSsat()",60000);
return;
}
function NS(){
document.write("<ilayer width=\"300\" bgColor=\"#FFFFFF\" id=\"NSS\"><font face=\"Arial\"><layer id=\"NSSat\"></layer></font></ilayer>");
NSsat();
return;
}
function N6sat(){
var tmp="";
updatesat();
document.getElementById("N6Sat").innerHTML=satformat();
setTimeout("N6sat()",60000);
return;
}
function N6(){
document.write("<div id=\"N6Sat\" style=\"width:300px; background-color:#FFFFFF; font-family:Arial\"></div>");
N6sat();
return;
}
function stariB(){
document.write(satformat());
return;
}
function NapraviSat(){
if(document.all){
IEnovi();
}else{
if(document.getElementById){
N6();
}else{
if(window.layers){
NS();
}else{
stariB();
}
}
}
}
function kolacic(_3c){
var _3d=""+document.cookie;
var _3e=_3d.indexOf(_3c);
if(_3e==-1){
return false;
}else{
return true;
}
}
function stavik(_3f,_40){
var _41=new Date();
var _42=new Date();
_42.setTime(_41.getTime()+2592000000);
document.cookie=_3f+"="+escape("1")+";path=/;expires="+_42.toGMTString();
if(kolacic(_3f)){
var obj=document.getElementById("promotd");
var _44=document.getElementById("promohref");
if(!obj||typeof (obj)=="undefined"||!_44||typeof (_44)=="undefined"){
return true;
}
obj.innerHTML="<a href=\""+_40+"/aldzg.php\">PC Game Shop</a>";
_44.innerHTML="<a href=\""+_40+"/promo.php?op=off\" onClick=\"return maknik('"+_3f+"', '"+_40+"');\"><img src=\""+_40+"/images/restore.gif\" border=\"0\" alt=\"\" /></a>";
return false;
}else{
return true;
}
}
function maknik(_45,_46){
var _47=new Date();
var _48=new Date();
_48.setTime(_47.getTime()-360000000);
document.cookie=_45+"=\"\";path=/;expires="+_48.toGMTString();
if(!kolacic(_45)){
var obj=document.getElementById("promotd");
var _4a=document.getElementById("promohref");
if(!obj||typeof (obj)=="undefined"||!_4a||typeof (_4a)=="undefined"){
return true;
}
obj.innerHTML="<a href=\""+_46+"/aldzg.php\"><img src=\""+_46+"/images/pcgameshop.png\" border=\"0\" alt=\"\" /></a>";
_4a.innerHTML="<a href=\""+_46+"/promo.php?op=on\" onClick=\"return stavik('"+_45+"', '"+_46+"');\"><img src=\""+_46+"/images/iksic.gif\" border=\"0\" alt=\"\" /></a>";
return false;
}else{
return true;
}
}
function max1000slova(obj){
if(obj.value.length>1100){
obj.value=obj.value.substr(0,1100);
obj.scrollTop=obj.scrollHeight;
}
}
function fade(o,_4d,_4e){
var obj=eval("document.images."+o);
if(typeof (obj)=="undefined"){
clearInterval(obj.tajmer);
obj.tajmer=0;
return;
}
if(typeof (obj.style.MozOpacity)=="string"&&obj.style.MozOpacity>_4e){
obj.style.MozOpacity=Math.max(parseFloat(obj.style.MozOpacity)-_4d,_4e);
}else{
if(obj.filters&&obj.filters.alpha.opacity>parseInt(_4e*100)){
obj.filters.alpha.opacity-=parseInt(_4d*100);
}else{
if(obj.tajmer){
clearInterval(obj.tajmer);
obj.tajmer=0;
if(obj.fadeovi.length){
eval(obj.fadeovi.shift());
}
}
}
}
}
function unfade(o,_51){
var obj=eval("document.images."+o);
if(typeof (obj)=="undefined"){
clearInterval(obj.tajmer);
obj.tajmer=0;
return;
}
if(typeof (obj.style.MozOpacity)=="string"&&obj.style.MozOpacity<1){
obj.style.MozOpacity=Math.min(parseFloat(obj.style.MozOpacity)+_51,1);
}else{
if(obj.filters&&obj.filters.alpha.opacity<100){
obj.filters.alpha.opacity+=parseInt(_51*100);
}else{
if(obj.tajmer){
clearInterval(obj.tajmer);
obj.tajmer=0;
if(obj.fadeovi.length){
eval(obj.fadeovi.shift());
}
}
}
}
}
function unosvjetli(o,_54,_55){
var obj=eval("document.images."+o);
if(typeof (obj)=="undefined"){
return;
}
if(obj.tajmer){
obj.fadeovi.push("unosvjetli('"+o+"',"+_54+","+_55+")");
}else{
obj.tajmer=setInterval("fade('"+o+"',"+_54+","+_55+")",20);
}
}
function osvjetli(o,_58){
var obj=eval("document.images."+o);
if(typeof (obj)=="undefined"){
return;
}
if(obj.tajmer){
obj.fadeovi.push("osvjetli('"+o+"',"+_58+")");
}else{
obj.tajmer=setInterval("unfade('"+o+"',"+_58+")",15);
}
}