/*
Dijikent - Dijital Eğlence ve Yaşam Kültürü 
Digikent.com | Dijikent.com © 2008
*/
// ER : Editor Replacer
var ER	=	new Object;
ER	=	{
		KentSine: function (videolink,w,h,vid){
		CreateVideoHTMLCode= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"89\" style=\"background-image:url(http://dijikent.com/kentsine/flv_images/r02.gif); background-position:bottom; background-repeat:repeat-x\"><IMG height=\"49\" src=\"http://dijikent.com/kentsine/flv_images/r01.gif\" onclick=\"goster_gizle('kentsineid_"+vid+"');\" style=\"cursor:pointer;\" title=\"Göster/Gizle\" width=\"89\"></td><td><table width=\"100%\" height=\"49\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"21\"></td><td></td></tr><tr><td background=\"http://dijikent.com/kentsine/flv_images/r02.gif\">&nbsp;</td><td width=\"85\"><IMG src=\"http://dijikent.com/kentsine/flv_images/r03.gif\" width=\"85\" height=\"28\" align=\"right\"></td></tr></table></td></tr><tr><td colspan=\"2\"><div id=\"kentsineid_"+vid+"\"><script type=\"text/javascript\">var so = new SWFObject('http://dijikent.com/kentsine/flvplayer.swf','player','"+w+"','"+parseFloat(Number(h)+35)+"','7');so.addVariable(\"overstretch\",\"false\");so.addParam(\"allowfullscreen\",\"true\");so.addVariable(\"displayheight\",'"+Number(h)+"');so.addVariable(\"width\",'"+Number(w)+"');so.addVariable(\"height\",'"+parseFloat(Number(h)+35)+"');so.addVariable(\"file\",'"+videolink+ "');so.write(\"kentsineid_"+vid+"\");</script></div></td></tr></table>";		
		document.write(CreateVideoHTMLCode);
		},
		
		KentGaleri: function(first_img,first_img_alt,gid){
		CreateGaleryHTMLCode	=	"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr ><td width=\"85\"><img src=\"imgs/bt_viewhide.gif\" onclick=\"goster_gizle('"+gid+"');\" width=\"85\" height=\"20\" style=\"cursor:pointer;\" title=\"Göster/Gizle\"/></td><td background=\"imgs/bg_kentapp.gif\" width=\"100%\">&nbsp;</td></tr><tr id=\""+gid+"\"><td colspan=\"2\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"4\" bgcolor=\"#CCCCCC\" width=\"100%\"><tr><td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"30\"><img src=\"inc/Editor/images/geri_ok.gif\" width=\"30\" height=\"25\" onclick=\"slideshowBack('"+gid+"');\" style=\"cursor:pointer;\" /></td><td><div align=\"center\" class=\"ver11\" id=\""+gid+"_pageview\"><span onclick=\"write_pages('"+gid+"');\" onmouseover=\"this.style.background='#FFFFFF'\" style=\"cursor:pointer;\">&nbsp;Toplam <script>document.write(imgArray_"+gid+".length)</script> Resim&nbsp;</span></div></td><td width=\"30\"><img src=\"inc/Editor/images/ileri_ok.gif\" width=\"30\" height=\"25\" onclick=\"slideshowUp('"+gid+"');\" style=\"cursor:pointer;\" /></td></tr></table></td></tr><tr><td><div align=\"center\"><img src=\""+first_img+"\" id=\""+gid+"_img\" onload=\"ufalt(this);\" class=\"KFMsg_KentGaleriImg\"/></div><div class=\"tah10\" id=\""+gid+"_alt\" align=\"center\" style=\"background-color:#EFEFEF;\">"+first_img_alt+"</div></td></tr></table></td></tr></table>";
		document.write(CreateGaleryHTMLCode);	
		},
		
		YouTube: function (videocode,uid){
		video_link = "http://www.youtube.com/v/"
		video_stil = "&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=0"
		CreateVideoHTMLCode	=	"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"85\"><img src=\"imgs/bt_viewhide.gif\" onclick=\"goster_gizle('"+uid+"');\" width=\"85\" height=\"20\" style=\"cursor:pointer;\" title=\"Göster/Gizle\"/></td><td background=\"imgs/bg_kentapp.gif\">&nbsp;</td></tr><tr id=\""+uid+"\"><td colspan=\"2\"><object id=\"vd_youtube\" width=\"711\" height=\"428\"><param name=\"movie\" value=\""+ video_link + videocode + video_stil +"\"><param name=\"wmode\" value=\"transparent\"><embed src=\""+ video_link + videocode + video_stil +"\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"711\" height=\"428\"></object></td></tr></table>";
		document.write(CreateVideoHTMLCode);
		},
		
		DailyMotion: function (videocode,uid){
		video_link = "http://www.dailymotion.com/swf/video/"
		CreateVideoHTMLCode	=	"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"85\"><img src=\"imgs/bt_viewhide.gif\" onclick=\"goster_gizle('"+uid+"');\" width=\"85\" height=\"20\" style=\"cursor:pointer;\" title=\"Göster/Gizle\"/></td><td background=\"imgs/bg_kentapp.gif\">&nbsp;</td></tr><tr id=\""+uid+"\"><td colspan=\"2\"><object width=\"608\" height=\"344\"><param name=\"movie\" value=\""+ video_link + videocode + "\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowScriptAccess\" value=\"always\"></param><embed type=\"application/x-shockwave-flash\"  src=\""+ video_link + videocode +"\" width=\"608\" height=\"344\" allowfullscreen=\"true\" allowscriptaccess=\"always\"></embed></object></td></tr></table>";
		document.write(CreateVideoHTMLCode);
		},

		GameTrailers: function(videocode,videotype,uid){
			if(videotype	==	"n"){
			video_link = "http://www.gametrailers.com/remote_wrap.php?mid="	
			}else if(videotype	==	"u"){
			video_link = "http://www.gametrailers.com/remote_wrap.php?umid="
			}
		CreateGTVideoHTMLCode	=	"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"85\"><img src=\"imgs/bt_viewhide.gif\" onclick=\"goster_gizle('"+uid+"');\" width=\"85\" height=\"20\" style=\"cursor:pointer;\" title=\"Göster/Gizle\"/></td><td background=\"imgs/bg_kentapp.gif\">&nbsp;</td></tr><tr id=\""+uid+"\"><td colspan=\"2\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"  codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" id=\"gtembed\" width=\"480\" height=\"392\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"true\" /><param name=\"movie\" value=\"" + video_link + videocode + "\"/><param name=\"quality\" value=\"high\" /> <embed src=\"" + video_link + videocode + "\" swLiveConnect=\"true\" name=\"gtembed\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"480\" height=\"392\"></embed></object></td></tr></table>";
		document.write(CreateGTVideoHTMLCode);
		},
		
		
		HTMLVideo: function (videocode,uid){
		//video_link = "http://www.youtube.com/v/"
		CreateVideoHTMLCode	=	"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"85\"><img src=\"imgs/bt_viewhide.gif\" onclick=\"goster_gizle('"+uid+"');\" width=\"85\" height=\"20\" style=\"cursor:pointer;\" title=\"Göster/Gizle\"/></td><td background=\"imgs/bg_kentapp.gif\">&nbsp;</td></tr><tr id=\""+uid+"\"><td colspan=\"2\"><video src=\""+ videocode +"\" autobuffer=\"true\"></video></td></tr></table>";
		document.write(CreateVideoHTMLCode);
		}
		
}
function ER_KentSine(videolink,w,h,vid){
		CreateVideoHTMLCode= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"89\" style=\"background-image:url(http://dijikent.com/kentsine/flv_images/r02.gif); background-position:bottom; background-repeat:repeat-x\"><IMG height=\"49\" src=\"http://dijikent.com/kentsine/flv_images/r01.gif\" onclick=\"goster_gizle('kentsineid_"+vid+"');\" style=\"cursor:pointer;\" title=\"Göster/Gizle\" width=\"89\"></td><td><table width=\"100%\" height=\"49\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"21\"></td><td></td></tr><tr><td background=\"http://dijikent.com/kentsine/flv_images/r02.gif\">&nbsp;</td><td width=\"85\"><IMG src=\"http://dijikent.com/kentsine/flv_images/r03.gif\" width=\"85\" height=\"28\" align=\"right\"></td></tr></table></td></tr><tr><td colspan=\"2\"><div id=\"kentsineid_"+vid+"\"><script type=\"text/javascript\">var so = new SWFObject('http://dijikent.com/kentsine/flvplayer.swf','player','"+w+"','"+parseFloat(Number(h)+35)+"','7');so.addVariable(\"overstretch\",\"false\");so.addParam(\"allowfullscreen\",\"true\");so.addVariable(\"displayheight\",'"+Number(h)+"');so.addVariable(\"width\",'"+Number(w)+"');so.addVariable(\"height\",'"+parseFloat(Number(h)+35)+"');so.addVariable(\"file\",'"+videolink+ "');so.write(\"kentsineid_"+vid+"\");</script></div></td></tr></table>";		
		document.write(CreateVideoHTMLCode);
}

function ER_KentGaleri(first_img,first_img_alt,gid){
		CreateGaleryHTMLCode	=	"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr ><td width=\"85\"><img src=\"imgs/bt_viewhide.gif\" onclick=\"goster_gizle('"+gid+"');\" width=\"85\" height=\"20\" style=\"cursor:pointer;\" title=\"Göster/Gizle\"/></td><td background=\"imgs/bg_kentapp.gif\" width=\"100%\">&nbsp;</td></tr><tr id=\""+gid+"\"><td colspan=\"2\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"4\" bgcolor=\"#CCCCCC\" width=\"100%\"><tr><td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"30\"><img src=\"inc/Editor/images/geri_ok.gif\" width=\"30\" height=\"25\" onclick=\"slideshowBack('"+gid+"');\" style=\"cursor:pointer;\" /></td><td><div align=\"center\" class=\"ver11\" id=\""+gid+"_pageview\"><span onclick=\"write_pages('"+gid+"');\" onmouseover=\"this.style.background='#FFFFFF'\" style=\"cursor:pointer;\">&nbsp;Toplam <script>document.write(imgArray_"+gid+".length)</script> Resim&nbsp;</span></div></td><td width=\"30\"><img src=\"inc/Editor/images/ileri_ok.gif\" width=\"30\" height=\"25\" onclick=\"slideshowUp('"+gid+"');\" style=\"cursor:pointer;\" /></td></tr></table></td></tr><tr><td><div align=\"center\"><img src=\""+first_img+"\" id=\""+gid+"_img\" onload=\"ufalt(this);\" class=\"KFMsg_KentGaleriImg\"/></div><div class=\"tah10\" id=\""+gid+"_alt\" align=\"center\" style=\"background-color:#EFEFEF;\">"+first_img_alt+"</div></td></tr></table></td></tr></table>";
		document.write(CreateGaleryHTMLCode);
}

function ER_YouTube(videocode,uid){
		video_link = "http://www.youtube.com/v/"
		video_stil = "&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=0"
		CreateVideoHTMLCode	=	"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"85\"><img src=\"imgs/bt_viewhide.gif\" onclick=\"goster_gizle('"+uid+"');\" width=\"85\" height=\"20\" style=\"cursor:pointer;\" title=\"Göster/Gizle\"/></td><td background=\"imgs/bg_kentapp.gif\">&nbsp;</td></tr><tr id=\""+uid+"\"><td colspan=\"2\"><object id=\"vd_youtube\" width=\"530\" height=\"428\"><param name=\"movie\" value=\""+ video_link + videocode + video_stil +"\"><param name=\"wmode\" value=\"transparent\"><embed src=\""+ video_link + videocode + video_stil +"\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"530\" height=\"428\"></object></td></tr></table>";
		document.write(CreateVideoHTMLCode);
}

function ER_GameTrailers(videocode,videotype,uid){
		if(videotype	==	"n"){
		video_link = "http://www.gametrailers.com/remote_wrap.php?mid="	
		}else if(videotype	==	"u"){
		video_link = "http://www.gametrailers.com/remote_wrap.php?umid="
		}
		CreateGTVideoHTMLCode	=	"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"85\"><img src=\"imgs/bt_viewhide.gif\" onclick=\"goster_gizle('"+uid+"');\" width=\"85\" height=\"20\" style=\"cursor:pointer;\" title=\"Göster/Gizle\"/></td><td background=\"imgs/bg_kentapp.gif\">&nbsp;</td></tr><tr id=\""+uid+"\"><td colspan=\"2\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"  codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" id=\"gtembed\" width=\"480\" height=\"392\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"allowFullScreen\" value=\"true\" /><param name=\"movie\" value=\"" + video_link + videocode + "\"/><param name=\"quality\" value=\"high\" /> <embed src=\"" + video_link + videocode + "\" swLiveConnect=\"true\" name=\"gtembed\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"true\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"480\" height=\"392\"></embed></object></td></tr></table>";
		document.write(CreateGTVideoHTMLCode);
}




