﻿var _d=document,_w=window,_n=navigator;
var _isIE=_n.appName.toLowerCase().indexOf('explorer')>=0,_isSecure=_d.location.protocol=="https:";
var _rpdom=(_isSecure?"https:":"http:")+"//ad.reklamport.com/",_redurl=_rpdom+"rpclk2.ashx";
var _rsdom=(_isSecure?"https:":"http:")+"//res.reklamport.com/";
var _stickyid="",rpClsSec=8,rpgoto=null,_templates=[],rptrscs=0;
setInterval("rptrscs++",250);
_templates["img"]="<a href='{0}?c={1}&t={2}&URL={3}' target='_blank' id='rpCont{1}.{2}'><img src='{4}' border=0 width='{5}' height='{6}' alt='TIKLAYIN'></a>";
_templates["swf"]="<div style='position:relative;width:{1}px;height:{2}px;z-index:{6};' id='rpCont{4}.{5}'><object style='position:relative;padding:0;left:0px;top:0px;z-index:{6};' height='{2}px' width='{1}px' align='top' id='rpCont{4}.{5}Flash' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='{0}'><param name='quality' value='high'><param name='menu' value='false'><param name='wmode' value='{3}'><param name='allowscriptaccess' value='always'><embed allowscriptaccess='always' id='rpCont{4}.{5}FlashEmbed' src='{0}' quality='high' menu='false' wmode='{3}' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='{1}' height='{2}'></embed></object></div>";
_templates["expandable"]="<div style='position:relative;width:{1}px;height:{2}px;'><div id='rpCont{4}.{5}' style='position:absolute;overflow:hidden;width:{1}px;height:{2}px;z-index:{6};{7}'><object style='padding:0;z-index:{6};{7}' height='{2}px' width='{1}px' align='top' id='rpCont{4}.{5}Flash' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='{0}'><param name='quality' value='high'><param name='menu' value='false'><param name='wmode' value='{3}'><param name='allowscriptaccess' value='always'><embed allowscriptaccess='always' id='rpCont{4}.{5}FlashEmbed' src='{0}' quality='high' menu='false' wmode='{3}' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='{1}' height='{2}'></embed></object></div></div>";
_templates["rollover"]="<div id='rpCont{6}.{7}' onmouseout=this.style.width='{0}px';this.style.height='{1}px' onmouseover=this.style.width='{0}px';this.style.height='{3}px' style='width:{0}px;height:{3};position:absolute;overflow:hidden;z-index:{4}'><object id='rpCont{6}.{7}Flash' style='z-index:{4};' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width={0} height={3}><param name='movie' value='{2}' /><param name='quality' value='high' /><param name='allowscriptaccess' value='always'><param name='wmode' value='{5}' /><embed allowscriptaccess='always' id='rpCont{6}.{7}FlashEmbed' style='position:relative;z-index:{4};' src='{2}' width={0} height={3} allowScriptAccess='sameDomain' allowFullScreen='false' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='{5}'></embed></object></div><div id='spacerForFF' style='width:{0}px;height:{1}px;z-index:{4};'></div>";
_templates["bg"]="<div align='left' id='divSticky{4}' name='divSticky' style='position:{5};top:0;left:{3}px;width:{1}px;height:{2};visibility:visible;z-index:2147483647'><a href='{0}' title='TIKLAYIN!' target='_blank' style='display:block;width:{1}px;height:{2};'><img border='0' src='"+_rpdom+"img/e.gif' width='{1}px' height='{2}'/></a></div>";
function rpget(id){return _d.getElementById(id);}
function rp_moveit(_id){var _movdiv=rpget(_id);if(_movdiv)_d.getElementsByTagName('body')[0].appendChild(_movdiv);}
function rpf(){
	if(arguments.length==0)return "";
	var xtr=arguments[0];
	for(var i=1;i<arguments.length;i++)xtr=xtr.replace(new RegExp('\\{'+(i-1)+'\\}','gm'),arguments[i]);
	return xtr;
}
function rp_GetSwf(_imgurl,_ciid,_tid,_clkurl,clkTg){return rpf("{0}?{5}={1}?c={2}%26t={3}%26URL={4}",_imgurl,_redurl,_ciid,_tid,escape(_clkurl).replace('&','&amp;'),clkTg);}
function rpGetPageTop(){return typeof _w.pageYOffset!='undefined'?_w.pageYOffset:_d.documentElement.scrollTop?_d.documentElement.scrollTop:_d.body.scrollTop?_d.body.scrollTop:0;}
function rpScrollAll(){
	var _arrst=_stickyid.split(","),_st;
	for(var i=0;i<_arrst.length;i++){_st=rpget(_arrst[i]);if(_st)_st.style.top=rpGetPageTop()+"px";}
}
function rp_getWidth(){return(_isIE?0:-16)+rp_filter(_w.innerWidth?_w.innerWidth:0,_d.documentElement?_d.documentElement.clientWidth:0,_d.body?_d.body.clientWidth:0);}
function rp_getHeight(){return rp_filter(_w.innerHeight?_w.innerHeight:0,_d.documentElement?_d.documentElement.clientHeight:0,_d.body?_d.body.clientHeight:0);}
function rp_def(r_v,r_d){return(typeof(r_v)=="undefined")?r_d:r_v;}
function rp_max(){var _rpm=arguments[0];for(var i=0;i<arguments.length;i++){if(_rpm<arguments[i]){_rpm=arguments[i];}}return _rpm;}
function rp_filter(n_win,n_docel,n_body){return rp_max(rp_def(n_win,0),rp_def(n_docel,0),rp_def(n_body,0));}
function rp_closeOverlay(id){rpget(id+"Span").style.display="none";rpget(id+"Link").style.display="none";rpget(id).style.display="none";rpget(id+"Close").style.display="none";if(rpgoto)top.location.href=rpgoto;}
function rp_standart(_ciid,_tid,_clkurl,_imgurl,_width,_height,_ftype,_wmode,_zindex,clkTg,_crid,_rnd){
	_crid=_crid||0;_rnd=_rnd||0;_wmode=_wmode||"transparent";_zindex=_zindex||100;clkTg=clkTg||"clickTAG";
	switch(_ftype){
		case "img":_d.write(rpf(_templates["img"],_redurl,_ciid,_tid,_clkurl,_imgurl,_width,_height));break;
		case "swf":_d.write(rpf(_templates["swf"],rp_GetSwf(_imgurl,_ciid,_tid,_clkurl,clkTg),_width,_height,_wmode,_ciid,_tid,_zindex));break;
		case "rollover":_d.write(rpf(_templates["rollover"],_width,_height,rp_GetSwf(_imgurl,_ciid,_tid,_clkurl,clkTg),_height,_zindex,_wmode,_ciid,_tid));break;
		case "expandable":_d.write(rpf(_templates["expandable"],rp_GetSwf(_imgurl,_ciid,_tid,_clkurl,clkTg),_width,_height,_wmode,_ciid,_tid,_zindex,_divStl));break;
	}
}
function rp_sticky(_ciid,_tid,_clkurl,_imgurl,_width,_height,_ftype,_wmode,_zindex,clkTg,_leftSp,_topSp){
	var winW=rp_getWidth(),winH=rp_getHeight(),_leftSp=_leftSp==0?((winW-_width)/2):_leftSp,_topSp=_topSp==0?((winH-_height)/2):_topSp;
	rp_standart(_ciid,_tid,_clkurl,_imgurl,_width,_height,_ftype,_wmode,_zindex,clkTg);
	var rpid=rpf("rpCont{0}.{1}",_ciid,_tid);
	_stickyid+=rpid;
	var _cnt=rpget(rpid);
	if(_cnt){with(_cnt.style){position="absolute";left=_leftSp+"px";top=_topSp+"px";}}
	_w.onscroll=rpScrollAll;
}
function rp_floating(_ciid,_tid,_clkurl,_imgurl,_width,_height,_leftSp,_topSp,_ftype,_wmode,_zindex,clkTg,_clsSec,_clsBtn){
	rpClsSec=_clsSec||8;
	var winW=rp_getWidth(),winH=rp_getHeight(),_leftSp=_leftSp==0?((winW-_width)/2):_leftSp,_topSp=_topSp==0?((winH-_height)/2):_topSp;
	var rpid=rpf("rpCont{0}.{1}",_ciid,_tid),msg="";
	if(_clsBtn=="1")msg="Kapat";
	_d.write(rpf("<div id='{0}Close' style='background-color:transparent;position:absolute;top:{1};padding:0px;left:{2};width:{3};height:{4}px;z-index:{5}'></div>",rpid,_topSp,_leftSp,_width,_height,_zindex));
	rp_standart(_ciid,_tid,_clkurl,_imgurl,_width,_height,_ftype,_wmode,_zindex,clkTg)
	_d.write(rpf("<div style='position:absolute;left:{0}px;top:{1}px;width:{2}px;text-align:right;z-index:{3}9'>",_leftSp,_topSp-15,_width,_zindex));
	_d.write(rpf("<span id='{0}Span' style='text-decoration:none;padding-top:10px;color:#000000;font-weight:bold;font-family:Tahoma;font-size:11px;'></span>",rpid));
	_d.write(rpf("<a href=# id='{0}Link' style='text-decoration:none;padding-top:10px;color:#000000;font-weight:bold;font-family:Tahoma;font-size:11px;' onclick='rp_closeOverlay(&quot;{0}&quot;);'>{1}</a></div>",rpid,msg));
	var _cnt=rpget(rpid);
	if(_cnt){with(_cnt.style){position="absolute";left=_leftSp+"px";top=_topSp+"px";}}
	if(_clsSec>0)_w.setTimeout("rp_closeOverlay('"+_cnt.id+"');",rpClsSec*1000);
}
function _rmover(_div,_o,_height,_maxH){
	rpget(_div.id+"Flash").style.height=(_o?_maxH:ie?_maxH:_height)+"px";
	with(_div.style){position=_o?"absolute":"relative";height=(_o?_maxH:_height)+"px";}
	_div.height=(_o?_maxH:_height)+"px";
	with(rpget(_div.id+"fix").style){visibility=_o?"hidden":"visible";height=_o?_height+"px":"0px";}
}
function rp_rollover(_ciid,_tid,_clkurl,_imgurl,_width,_height,_maxH,_wmode,_zindex,clkTg){
	var rpid=rpf("rpCont{0}.{1}",_ciid,_tid);
	if(!_isIE){
		rp_standart(_ciid,_tid,_clkurl,_imgurl,_width,_height,"rollover",_wmode,_zindex,clkTg);
		var rpEmbed=rpget(rpid+"FlashEmbed");
		var _cnt=rpget(rpid),rpflash=rpget(rpid+"Flash");
		_cnt.onmouseover=function(){rp_rolloverStyle(this,_width,_maxH);}
		_cnt.onmouseout=function(){rp_rolloverStyle(this,_width,_height);}
		_cnt.style.height=_height+"px";
		rpflash.height=rpEmbed.height=_maxH+"px";
	}else{
		rp_standart(_ciid,_tid,_clkurl,_imgurl,_width,_maxH,"swf",_wmode,_zindex,clkTg);
		_d.write(rpf("<div id='{0}fix' style='width:{1}px;line-height:0;height:0;z-index:0'></div>",rpid,_width));
		var _cnt=rpget(rpid),rpflash=rpget(rpid+"Flash");
		with(rpflash.style){height=_height+"px";overflow="hidden";position="absolute";}
		_rmover(_cnt,false,_height,_maxH);
		_cnt.onmouseover=function(){_rmover(this,true,_height,_maxH)};
		_cnt.onmouseout=function(){_rmover(this,false,_height,_maxH)};
	}
}
function rp_rolloverStyle(cnt,_newW,_newH){with(cnt.style){width=_newW+"px";height=_newH+"px";}}
function rp_void(){return;}
function rp_overlay(_ciid,_tid,_clkurl,_imgurl,_width,_height,_ftype,clkTg,_bgColor,_color,_zindex,_wmode,_leftSp,_topSp){
	var _html="",_bgColor=_bgColor||"#000";_color=_color||"#fff";
	clkTg=clkTg||"clickTAG";_zindex=_zindex||99;_topSp=_topSp||0;
	_wmode=_wmode||"transparent";
	switch(_ftype){
		case "img":_html=rpf(_templates["img"],_redurl,_ciid,_tid,_clkurl,_imgurl,_width,_height);break;
		case "swf":_html=rpf(_templates["swf"],rp_GetSwf(_imgurl,_ciid,_tid,_clkurl,clkTg),_width,_height,_wmode,_ciid,_tid,_zindex);break;
	}
	var rpid=rpf("rpCont{0}.{1}",_ciid,_tid);
	_html=rpf("<div id='"+rpid+"Close' style='background-color:"+_bgColor+";position:absolute;top:0;padding:10px;left:0;width:100%;height:4096px;z-index:{3}'></div>"+
			"{0}<div style='position:absolute;left:{1}px;top:{2}px;width:"+_width+"px;text-align:right;z-index:{3}9'>"+
			"<br><br><span id='"+rpid+"Span' style='text-decoration:none;color:"+_color+";font-weight:bold;font-family:Tahoma;font-size:11px;'></span>"+
			"<a href=# id='"+rpid+"Link' style='text-decoration:none;color:"+_color+";font-weight:bold;font-family:Tahoma;font-size:11px;' onclick='rp_closeOverlay(&quot;"+rpid+"&quot;);'></a></div>",
			_html,_leftSp,_topSp-40,_zindex);
	_d.write(_html);
	var _cnt=rpget(rpid);
	if(_cnt){with(_cnt.style){position="absolute";left=_leftSp+"px";top=(20+_topSp)+"px";};}
}
function rp_interstitial(_ciid,_tid,_clkurl,_imgurl,_width,_height,_disptype,_ftype,_bgColor,_color,_clsSec,_showCounter,_left,clkTg,_zindex,_wMode,_clsWin,_top){
	rpClsSec=_clsSec||8;
	_top=_top||0;
	var winW=rp_getWidth(),winH=rp_getHeight(),_left=_left==0?((winW-_width)/2):_left,_top=_top==0?((winH-_height)/2):_top;
	rp_overlay(_ciid,_tid,_clkurl,_imgurl,_width,_height,_ftype,clkTg,_bgColor,_color,_zindex,_wMode,_left,_top);
	var rpid=rpf("rpCont{0}.{1}",_ciid,_tid);
	var _cnt=rpget(rpid);
	with(_cnt.style){position="absolute";left=_left+"px";top=_top+"px";zIndex=_zindex+1;}
	_showCounter=_showCounter||"1";
	_w.setTimeout("rp_closeOverlay('"+_cnt.id+"');",rpClsSec*1000);
	if(_clsWin=="1")rpget(rpid+"Link").innerHTML+="Kapat";
	if(_showCounter=="1"){rpget(rpid+"Span").innerHTML=rpClsSec--+" sn sonra kapanacak.";_w.setInterval("rpget('"+rpid+"Span').innerHTML=(rpClsSec--)+' sn sonra kapanacak.';",1000);}
}
function rp_background(_ciid,_tid,_clkurl,_imgurl,_sitew,_cntrd){
	_cntrd=(_cntrd!=0);
	var _winW=rp_getWidth(),_winH=_d.documentElement?_d.documentElement.clientHeight:rp_getHeight(),_bglink=rpf("{0}?c={1}&t={2}&URL={3}",_redurl,_ciid,_tid,_clkurl),
		_bgh=rpf("<style>body{background-image:url('{0}');background-repeat:no-repeat;background-attachment:fixed;background-position:{1} top;}</style>",_imgurl,_cntrd?"center":"left");
	var _dw=Math.floor((_winW-_sitew)/2),_rl=Math.floor((_winW+_sitew)/2);
	_bgh+=rpf(_templates["bg"],_bglink,(_cntrd?_dw:2*_dw),_winH+"px",_cntrd?_rl:_sitew,2,_isIE?"absolute":"fixed");
	_stickyid+="divSticky2,";
	if(_cntrd){_bgh+=rpf(_templates["bg"],_bglink,_dw,_winH+"px",0,1,_isIE?"absolute":"fixed");_stickyid+="divSticky1,";}
	_d.write(_bgh);
	rp_moveit("divSticky2");
	if(_cntrd)rp_moveit("divSticky1");
	if(_isIE){_stickyid="divSticky2,"+(_cntrd?"divSticky1,":"")}
	_w.setInterval(function(){
		_winW=rp_getWidth();_winH=_d.documentElement?_d.documentElement.clientHeight:rp_getHeight();
		if(_winH<1)_winH=rp_getHeight();
		var rpd1=rpget("divSticky1"),rpd2=rpget("divSticky2");
		var _dw=parseInt((_winW-_sitew)/2),_nw=(_cntrd?1:2)*Math.max(0,_dw);
		if(rpd1){
			with(rpd1.getElementsByTagName("a")[0].style){height=_winH+"px";width=_nw+"px";}
			with(rpd1.getElementsByTagName("img")[0].style){height=_winH+"px";width=_nw+"px";}
			with(rpd1.style){height=_winH+"px";width=_nw+"px";}
			}
		with(rpd2.style){left=(_cntrd?parseInt((_winW+_sitew)/2):_sitew)+"px";height=_winH+"px";width=_nw+"px";}
		with(rpd2.getElementsByTagName("a")[0].style){height=_winH+"px";width=_nw+"px";}
		with(rpd2.getElementsByTagName("img")[0].style){height=_winH+"px";width=_nw+"px";}
		if(_isIE)rpScrollAll();
	},100);
}
function rp_linktext(_ciid,_tid,_text1,_text2,_text3,_clkUrl,_font,_italic,_bold,_uline,_fcolor,_lcolor,_fsize,_fcolor2){
	var _stl=rpf("font-family:{0};font-size:{1}px;{2}{3}{4}",_font,_fsize,_italic==1?"font-style:italic;":"",_bold==1?"font-weight:bold;":"",_uline==1?"text-decoration:underline;":"");
	_d.write(rpf("<span style='{0}color:{1}'>{2}</span><a href='{3}?c={4}&t={5}&URL={6}' style='{0}color:{7}' target=_blank>{8}</a><span style='{0}color:{10}'>{9}</span>",
		_stl,_fcolor,_text1,_redurl,_ciid,_tid,_clkUrl,_lcolor,_text2,_text3,_fcolor2));
}
function rp_expandable(_ciid,_tid,_clkurl,_imgurl,_width,_height,_maxW,_maxH,_wmode,_zindex,clkTg,_xpDir,_wClose){
	var rpid=rpf("rpCont{0}.{1}",_ciid,_tid);
	switch(_xpDir){
		case "rightdown":_divStl="left:0px;top:0px";break;
		case "leftdown":_divStl="right:0px;top:0px";break;
		case "rightup":_divStl="left:0px;bottom:0px";break;
		case "leftup":_divStl="left:0px;bottom:0px";break;}
	rp_standart(_ciid,_tid,_clkurl,_imgurl,_width,_height,"expandable",_wmode,_zindex,clkTg,_maxH,_maxW);
	var _cnt=rpget(rpid),rpflash=rpget(rpid+"Flash"),rpEmbed=rpget(rpid+"FlashEmbed");
	with(rpflash.style){overflow="hidden";position="absolute";}
	if(!_isIE){
		_cnt.style.height=_height+"px";
		with(rpflash){width=_maxW+"px";height=_maxH+"px";}
		with(rpEmbed){width=_maxW+"px";height=_maxH+"px";}
	}
	else{
		_d.write(rpf("<div id='{0}fix' style='width:{1}px;line-height:0;height:0px;z-index:0'></div>",rpid,_width));
		with(rpflash.style){height=_height+"px";width=_width+"px";}
	}
	_expmover(_cnt,false,_height,_maxH,_width,_maxW);
	_cnt.onmouseover=function(){_expmover(this,true,_height,_maxH,_width,_maxW)};
	_cnt.onmouseout=function(){_expmover(this,false,_height,_maxH,_width,_maxW)};
}
function _expmover(_div,_o,_height,_maxH,_width,_maxW){
	if(_isIE){
		with(rpget(_div.id+"Flash").style){height=(_o?_maxH:ie?_maxH:_height)+"px";width=(_o?_maxW:ie?_maxW:_width)+"px";}
		with(_div.style){height=(_o?_maxH:_height)+"px";width=(_o?_maxW:_width)+"px";}
		with(_div){height=(_o?_maxH:_height)+"px";width=(_o?_maxW:_width)+"px";}
	}else{
		with(rpget(_div.id+"Flash").style){offsetHeight=(_o?_maxH:_height)+"px";offsetWidth=(_o?_maxW:_width)+"px";}
		with(_div){offsetHeight=(_o?_maxH:_height)+"px";offsetWidth=(_o?_maxW:_width)+"px";}
		with(_div.style){offsetHeight=(_o?_maxH:_height)+"px";offsetWidth=(_o?_maxW:_width)+"px";overflow=_o?"visible":"hidden";}
	}
}
function rp_html(_ciid,_tid,_html){_d.write(_html);}
document.write('<sc'+'ript src=\"'+_rpdom+'scripts/rpdh.js\"></s'+'cript>');
