function showDiv(b){var a=document.getElementById(b);if(a.style.display=="none"){a.style.display="block"}else{a.style.display="none"}}var gPopupMask=null;var gPopupContainer=null;var gPopFrame=null;var gReturnFunc;var gPopupIsShown=false;var gDefaultPage="/loading.htm";var gHideSelects=false;var gReturnVal=null;var gTabIndexes=new Array();var gTabbableTags=new Array("A","BUTTON","TEXTAREA","INPUT","IFRAME");if(!document.all){document.onkeypress=keyDownHandler}function initPopUp(){theBody=document.getElementsByTagName("BODY")[0];popmask=document.createElement("div");popmask.id="popupMask";popcont=document.createElement("div");popcont.id="popupContainer";popcont.innerHTML='<div id="popupInner"><div id="popupTitleBar"><div id="popupTitle"></div><div id="popupControls"><img src="http://www.araccubugu.gen.tr/wp-content/themes/karakaya/images/close.gif" onclick="hidePopWin(false);" id="popCloseBox" /></div></div><iframe src="'+gDefaultPage+'" style="width:100%;height:100%;background-color:transparent;" scrolling="no" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="100%" height="100%"></iframe></div>';theBody.appendChild(popmask);theBody.appendChild(popcont);gPopupMask=document.getElementById("popupMask");gPopupContainer=document.getElementById("popupContainer");gPopFrame=document.getElementById("popupFrame");var a=parseInt(window.navigator.appVersion.charAt(0),10);if(a<=6&&window.navigator.userAgent.indexOf("MSIE")>-1){gHideSelects=true}var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++){if(b[i].className.indexOf("submodal")==0){b[i].onclick=function(){var d=400;var c=200;params=this.className.split("-");if(params.length==3){d=parseInt(params[1]);c=parseInt(params[2])}showPopWin(this.href,d,c,null);return false}}}}addEvent(window,"load",initPopUp);function showPopWin(c,g,a,e,d,b){if(d==null||d==true){document.getElementById("popCloseBox").style.display="block"}else{document.getElementById("popCloseBox").style.display="none"}gPopupIsShown=true;disableTabIndexes();gPopupMask.style.display="block";gPopupContainer.style.display="block";centerPopWin(g,a);var f=parseInt(document.getElementById("popupTitleBar").offsetHeight,10);document.getElementById("popupTitle").innerHTML=b;gPopupContainer.style.width=g+"px";gPopupContainer.style.height=(a+f)+"px";setMaskSize();gPopFrame.style.width=parseInt(document.getElementById("popupTitleBar").offsetWidth,10)+"px";gPopFrame.style.height=(a)+"px";gPopFrame.src=c;gReturnFunc=e;if(gHideSelects==true){hideSelectBoxes()}window.setTimeout("setPopTitle();",600)}var gi=0;function centerPopWin(g,a){if(gPopupIsShown==true){if(g==null||isNaN(g)){g=gPopupContainer.offsetWidth}if(a==null){a=gPopupContainer.offsetHeight}var e=document.getElementsByTagName("BODY")[0];var b=parseInt(getScrollTop(),10);var d=parseInt(e.scrollLeft,10);setMaskSize();var f=parseInt(document.getElementById("popupTitleBar").offsetHeight,10);var c=getViewportHeight();var h=getViewportWidth();gPopupContainer.style.top=(b+((c-(a+f))/2))+"px";gPopupContainer.style.left=(d+((h-g)/2))+"px"}}addEvent(window,"resize",centerPopWin);addEvent(window,"scroll",centerPopWin);window.onscroll=centerPopWin;function setMaskSize(){var b=document.getElementsByTagName("BODY")[0];var a=getViewportHeight();var c=getViewportWidth();if(a>b.scrollHeight){popHeight=a}else{popHeight=b.scrollHeight}if(c>b.scrollWidth){popWidth=c}else{popWidth=b.scrollWidth}gPopupMask.style.height=popHeight+"px";gPopupMask.style.width=popWidth+"px"}function hidePopWin(a){gPopupIsShown=false;var b=document.getElementsByTagName("BODY")[0];b.style.overflow="";restoreTabIndexes();if(gPopupMask==null){return}gPopupMask.style.display="none";gPopupContainer.style.display="none";if(a==true&&gReturnFunc!=null){gReturnVal=window.frames.popupFrame.returnVal;window.setTimeout("gReturnFunc(gReturnVal);",1)}gPopFrame.src=gDefaultPage;if(gHideSelects==true){displaySelectBoxes()}}function setPopTitle(){return;if(window.frames.popupFrame.document.title==null){window.setTimeout("setPopTitle();",10)}else{document.getElementById("popupTitle").innerHTML=window.frames.popupFrame.document.title}}function keyDownHandler(a){if(gPopupIsShown&&a.keyCode==9){return false}}function disableTabIndexes(){if(document.all){var c=0;for(var b=0;b<gTabbableTags.length;b++){var d=document.getElementsByTagName(gTabbableTags[b]);for(var a=0;a<d.length;a++){gTabIndexes[c]=d[a].tabIndex;d[a].tabIndex="-1";c++}}}}function restoreTabIndexes(){if(document.all){var c=0;for(var b=0;b<gTabbableTags.length;b++){var d=document.getElementsByTagName(gTabbableTags[b]);for(var a=0;a<d.length;a++){d[a].tabIndex=gTabIndexes[c];d[a].tabEnabled=true;c++}}}}function hideSelectBoxes(){var a=document.getElementsByTagName("SELECT");for(i=0;a&&i<a.length;i++){a[i].style.visibility="hidden"}}function displaySelectBoxes(){var a=document.getElementsByTagName("SELECT");for(i=0;a&&i<a.length;i++){a[i].style.visibility="visible"}}function addEvent(d,c,a){if(d.addEventListener){d.addEventListener(c,a,false);return true}else{if(d.attachEvent){var b=d.attachEvent("on"+c,a);return b}else{return false}}}function removeEvent(e,d,b,a){if(e.removeEventListener){e.removeEventListener(d,b,a);return true}else{if(e.detachEvent){var c=e.detachEvent("on"+d,b);return c}else{alert("Handler could not be removed")}}}function getViewportHeight(){if(window.innerHeight!=window.undefined){return window.innerHeight}if(document.compatMode=="CSS1Compat"){return document.documentElement.clientHeight}if(document.body){return document.body.clientHeight}return window.undefined}function getViewportWidth(){var b=17;var a=null;if(window.innerWidth!=window.undefined){return window.innerWidth}if(document.compatMode=="CSS1Compat"){return document.documentElement.clientWidth}if(document.body){return document.body.clientWidth}}function getScrollTop(){if(self.pageYOffset){return self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop}else{if(document.body){return document.body.scrollTop}}}}function getScrollLeft(){if(self.pageXOffset){return self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollLeft){return document.documentElement.scrollLeft}else{if(document.body){return document.body.scrollLeft}}}}var BANNER_BASE_URL="http://www.conduit-banners.com/";var LOG_SITE_URL="http://usage.conduit-banners.com/Logger/";var LOG_ENABLED=true;function __CreateToolbarCounter(){if(typeof __downloadUrl=="string"){var a="90px";var c="33px";var b="";if(typeof(__culture)=="string"){b="&culture="+__culture}document.write("<iframe  style='width:"+a+";height:"+c+";' frameborder=0 scrolling=\"no\" marginwidth=0 marginheight=0 src='"+get_clientBaseUrl()+"Counters/"+__counterType+"?ctid="+__ctid+"&downloadUrl="+__downloadUrl+"&key="+__counterKey+b+"' ></iframe>");if(LOG_ENABLED){var d=new LogScriptRequest(LOG_SITE_URL+logUsage())}}}function get_clientBaseUrl(){if(__bannerBaseUrl=="http://hosting.conduit.com/"||typeof(__bannerBaseUrl)=="undefined"||__bannerBaseUrl==null){return BANNER_BASE_URL}return __bannerBaseUrl}String.format=function(c){if(arguments.length<=1){return c}var b=arguments.length-2;for(var a=0;a<=b;a++){c=c.replace(new RegExp("\\{"+a+"\\}","gi"),arguments[a+1])}return c};function LogScriptRequest(a){this.fullUrl=a;this.headLoc=document.getElementsByTagName("head").item(0);this.scriptObj=document.createElement("script");this.scriptObj.setAttribute("type","text/javascript");this.scriptObj.setAttribute("src",this.fullUrl);this.scriptObj.setAttribute("id",this.scriptId);this.headLoc.appendChild(this.scriptObj)}function logUsage(){try{var a=String.format("/?logType=impression&ctid={0}&bannertypeid={1}&bannerName={2}&bannerculture={3}",__ctid,7,__counterType,__culture);return a}catch(b){}};