if(typeof dd_domreadycheck=="undefined")
var dd_domreadycheck=false;var ddlevelsmenu={enableshim:true,arrowpointers:{downarrow:["http://www.oyunnetwork.com/sys/arrow-down.gif",7,7],rightarrow:["http://www.oyunnetwork.com/sys/arrow-right.gif",7,7],showarrow:{toplevel:true,sublevel:true}},hideinterval:200,effects:{enableswipe:true,enablefade:true,duration:200},httpsiframesrc:"blank.htm",topmenuids:[],topitems:{},subuls:{},lastactivesubul:{},topitemsindex:-1,ulindex:-1,hidetimers:{},shimadded:false,nonFF:!/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent),getoffset:function(a,b){return a.offsetParent?a[b]+this.getoffset(a.offsetParent,b):a[b]},getoffsetof:function(a){a._offsets={left:this.getoffset(a,"offsetLeft"),top:this.getoffset(a,"offsetTop")}},getwindowsize:function(){this.docwidth=window.innerWidth?window.innerWidth-10:this.standardbody.clientWidth-10;this.docheight=window.innerHeight?window.innerHeight-15:this.standardbody.clientHeight-18},gettopitemsdimensions:function(){for(var a=0;a<this.topmenuids.length;a++){var b=this.topmenuids[a];for(var c=0;c<this.topitems[b].length;c++){var d=this.topitems[b][c];var e=document.getElementById(d.getAttribute("rel"));d._dimensions={w:d.offsetWidth,h:d.offsetHeight,submenuw:e.offsetWidth,submenuh:e.offsetHeight}}}},isContained:function(a,b){var c=b.relatedTarget||(b.type=="mouseover"?b.fromElement:b.toElement);while(c&&c!=a)try{c=c.parentNode}catch(b){c=a}
if(c==a)return true;else
return false},addpointer:function(a,b,c,d){var e=document.createElement("img");e.src=c[0];e.style.width=c[1]+"px";e.style.height=c[2]+"px";if(b=="rightarrowpointer"){e.style.left=a.offsetWidth-c[2]-2+"px"}
e.className=b;var f=a.childNodes[a.firstChild.nodeType!=1?1:0];if(f&&f.tagName=="SPAN"){a=f}
if(d=="before")a.insertBefore(e,a.firstChild);else a.appendChild(e)},css:function(a,b,c){var d=new RegExp("(^|\\s+)"+b+"($|\\s+)","ig");if(c=="check")return d.test(a.className);else if(c=="remove")a.className=a.className.replace(d,"");else if(c=="add"&&!d.test(a.className))a.className+=" "+b;return true},addshimmy:function(a){var b=!window.opera?document.createElement("iframe"):document.createElement("div");b.className="ddiframeshim";b.setAttribute("src",location.protocol=="https:"?this.httpsiframesrc:"about:blank");b.setAttribute("frameborder","0");b.setAttribute("border","0");a.appendChild(b);try{b.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"}catch(c){}
return b},positionshim:function(a,b,c,d,e){if(a._istoplevel){e=window.pageYOffset?window.pageYOffset:this.standardbody.scrollTop;var f=a._offsets.top-e;var g=e+this.docheight-a._offsets.top-a._dimensions.h;if(f>0){this.shimmy.topshim.style.left=d+"px";this.shimmy.topshim.style.top=e+"px";this.shimmy.topshim.style.width="99%";this.shimmy.topshim.style.height=f+"px"}
if(g>0){this.shimmy.bottomshim.style.left=d+"px";this.shimmy.bottomshim.style.top=a._offsets.top+a._dimensions.h+"px";this.shimmy.bottomshim.style.width="99%";this.shimmy.bottomshim.style.height=g+"px"}}},hideshim:function(){this.shimmy.topshim.style.width=this.shimmy.bottomshim.style.width=0;this.shimmy.topshim.style.height=this.shimmy.bottomshim.style.height=0},buildmenu:function(a,b,c,d,e,f){b._master=a;b._pos=d;b._istoplevel=e;if(e){this.addEvent(b,function(a){ddlevelsmenu.hidemenu(ddlevelsmenu.subuls[this._master][parseInt(this._pos)])},"click")}
this.subuls[a][d]=c;b._dimensions={w:b.offsetWidth,h:b.offsetHeight,submenuw:c.offsetWidth,submenuh:c.offsetHeight};this.getoffsetof(b);c.style.left=0;c.style.top=0;c.style.visibility="hidden";this.addEvent(b,function(a){if(!ddlevelsmenu.isContained(this,a)){var c=ddlevelsmenu.subuls[this._master][parseInt(this._pos)];if(this._istoplevel){ddlevelsmenu.css(this,"selected","add");clearTimeout(ddlevelsmenu.hidetimers[this._master][this._pos])}
ddlevelsmenu.getoffsetof(b);var d=window.pageXOffset?window.pageXOffset:ddlevelsmenu.standardbody.scrollLeft;var e=window.pageYOffset?window.pageYOffset:ddlevelsmenu.standardbody.scrollTop;var g=this._offsets.left+this._dimensions.submenuw+(this._istoplevel&&f=="topbar"?0:this._dimensions.w);var h=this._offsets.top+this._dimensions.submenuh;var i=this._istoplevel?this._offsets.left+(f=="sidebar"?this._dimensions.w:0):this._dimensions.w;if(g-d>ddlevelsmenu.docwidth){i+=-this._dimensions.submenuw+(this._istoplevel&&f=="topbar"?this._dimensions.w:-this._dimensions.w)}
c.style.left=i+"px";var j=this._istoplevel?this._offsets.top+(f=="sidebar"?0:this._dimensions.h):this.offsetTop;if(h-e>ddlevelsmenu.docheight){if(this._dimensions.submenuh<this._offsets.top+(f=="sidebar"?this._dimensions.h:0)-e){j+=-this._dimensions.submenuh+(this._istoplevel&&f=="topbar"?-this._dimensions.h:this._dimensions.h)}else{j+=-(this._offsets.top-e)+(this._istoplevel&&f=="topbar"?-this._dimensions.h:0)}}
c.style.top=j+"px";if(ddlevelsmenu.enableshim&&(ddlevelsmenu.effects.enableswipe==false||ddlevelsmenu.nonFF)){ddlevelsmenu.positionshim(b,c,f,d,e)}else{c.FFscrollInfo={x:d,y:e}}
ddlevelsmenu.showmenu(b,c,f)}},"mouseover");this.addEvent(b,function(a){var b=ddlevelsmenu.subuls[this._master][parseInt(this._pos)];if(this._istoplevel){if(!ddlevelsmenu.isContained(this,a)&&!ddlevelsmenu.isContained(b,a))ddlevelsmenu.hidemenu(b)}else if(!this._istoplevel&&!ddlevelsmenu.isContained(this,a)){ddlevelsmenu.hidemenu(b)}},"mouseout")},setopacity:function(a,b){a.style.opacity=b;if(typeof a.style.opacity!="string"){a.style.MozOpacity=b;if(a.filters){a.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+b*100+")"}}},showmenu:function(a,b,c){if(this.effects.enableswipe||this.effects.enablefade){if(this.effects.enableswipe){var d=a._istoplevel&&c=="topbar"?a._dimensions.submenuh:a._dimensions.submenuw;b.style.width=b.style.height=0;b.style.overflow="hidden"}
if(this.effects.enablefade){this.setopacity(b,0)}
b._curanimatedegree=0;b.style.visibility="visible";clearInterval(b._animatetimer);b._starttime=(new Date).getTime();b._animatetimer=setInterval(function(){ddlevelsmenu.revealmenu(a,b,d,c)},10)}else{b.style.visibility="visible"}},revealmenu:function(a,b,c,d){var e=(new Date).getTime()-b._starttime;if(e<this.effects.duration){if(this.effects.enableswipe){if(b._curanimatedegree==0){b.style[a._istoplevel&&d=="topbar"?"width":"height"]="auto"}
b.style[a._istoplevel&&d=="topbar"?"height":"width"]=b._curanimatedegree*c+"px"}
if(this.effects.enablefade){this.setopacity(b,b._curanimatedegree)}}else{clearInterval(b._animatetimer);if(this.effects.enableswipe){b.style.width="auto";b.style.height="auto";b.style.overflow="visible"}
if(this.effects.enablefade){this.setopacity(b,1);b.style.filter=""}
if(this.enableshim&&b.FFscrollInfo)this.positionshim(a,b,d,b.FFscrollInfo.x,b.FFscrollInfo.y)}
b._curanimatedegree=(1-Math.cos(e/this.effects.duration*Math.PI))/2},hidemenu:function(a){if(typeof a._pos!="undefined"){this.css(this.topitems[a._master][parseInt(a._pos)],"selected","remove");if(this.enableshim)this.hideshim()}
clearInterval(a._animatetimer);a.style.left=0;a.style.top="-1000px";a.style.visibility="hidden"},addEvent:function(a,b,c){if(a.addEventListener)a.addEventListener(c,b,false);else if(a.attachEvent)a.attachEvent("on"+c,function(){return b.call(a,window.event)})},domready:function(a){if(dd_domreadycheck){a();return}
if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);a();dd_domreadycheck=true},false)}else if(document.attachEvent){if(document.documentElement.doScroll&&window==window.top)(function(){if(dd_domreadycheck){a();return}
try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}
a();dd_domreadycheck=true})()}
if(document.attachEvent&&parent.length>0)this.addEvent(window,function(){a()},"load")},init:function(a,b){this.standardbody=document.compatMode=="CSS1Compat"?document.documentElement:document.body;this.topitemsindex=-1;this.ulindex=-1;this.topmenuids.push(a);this.topitems[a]=[];this.subuls[a]=[];this.hidetimers[a]=[];if(this.enableshim&&!this.shimadded){this.shimmy={};this.shimmy.topshim=this.addshimmy(document.body);this.shimmy.bottomshim=this.addshimmy(document.body);this.shimadded=true}
var c=document.getElementById(a);var d=c.getElementsByTagName("a");this.getwindowsize();for(var e=0;e<d.length;e++){if(d[e].getAttribute("rel")){this.topitemsindex++;this.ulindex++;var f=d[e];this.topitems[a][this.topitemsindex]=f;var g=document.getElementById(f.getAttribute("rel"));document.body.appendChild(g);g.style.zIndex=2e3;g._master=a;g._pos=this.topitemsindex;this.addEvent(g,function(){ddlevelsmenu.hidemenu(this)},"click");var h=b=="sidebar"?"rightarrowpointer":"downarrowpointer";var i=b=="sidebar"?this.arrowpointers.rightarrow:this.arrowpointers.downarrow;if(this.arrowpointers.showarrow.toplevel)this.addpointer(f,h,i,b=="sidebar"?"before":"after");this.buildmenu(a,f,g,this.ulindex,true,b);g.onmouseover=function(){clearTimeout(ddlevelsmenu.hidetimers[this._master][this._pos])};this.addEvent(g,function(a){if(!ddlevelsmenu.isContained(this,a)&&!ddlevelsmenu.isContained(ddlevelsmenu.topitems[this._master][parseInt(this._pos)],a)){var b=this;if(ddlevelsmenu.enableshim)ddlevelsmenu.hideshim();ddlevelsmenu.hidetimers[this._master][this._pos]=setTimeout(function(){ddlevelsmenu.hidemenu(b)},ddlevelsmenu.hideinterval)}},"mouseout");var j=g.getElementsByTagName("ul");for(var k=0;k<j.length;k++){this.ulindex++;var l=j[k].parentNode;if(this.arrowpointers.showarrow.sublevel)this.addpointer(l.getElementsByTagName("a")[0],"rightarrowpointer",this.arrowpointers.rightarrow,"before");this.buildmenu(a,l,j[k],this.ulindex,false,b)}}}
this.addEvent(window,function(){ddlevelsmenu.getwindowsize();ddlevelsmenu.gettopitemsdimensions()},"resize")},setup:function(a,b){this.domready(function(){ddlevelsmenu.init(a,b)})}}
window.onload=function(){for(var i=0,l=document.getElementsByTagName('input').length;i<l;i++){if(document.getElementsByTagName('input').item(i).type=='text'){document.getElementsByTagName('input').item(i).setAttribute('autocomplete','off')}}};

