﻿// JScript File

// GWR deep footer
function writeJS_footer()
{	
    var str= '';
	/*if (kf_cookie == "true")        
	{
	    str+='<div class="clear"><\/div>';
        str+='<div id="footer">';
		str+='    <div id="genlinks">';
        str+='	  <ul>';
        str+='	    <li><a href="http:\/\/gamers.guinnessworldrecords.com\/default.aspx">Home<\/a><\/li>';
        str+='	    <li>|<\/li>';
        str+='	    <li><a href="http:\/\/gamers.guinnessworldrecords.com\/setarecord.aspx">Set a Record<\/a><\/li>';
        str+='	    <li >|<\/li>';
        str+='	    <li><a href="http:\/\/gamers.guinnessworldrecords.com\/book.aspx">Book<\/a><\/li>';
        str+='	    <li>|<\/li>';
        str+='	    <li><a href="http:\/\/gamers.guinnessworldrecords.com\/records.aspx">Records<\/a><\/li>';
        str+='	    <li>|<\/li>';
        str+='	   <li><a href="http:\/\/gamers.guinnessworldrecords.com\/competitionzone.aspx">Competition Zone<\/a><\/li>';
        str+='	    <li>|<\/li>';
        str+='	   <li><a href="http:\/\/community.guinnessworldrecords.com\/_Gamers\/group\/35975\/7691.html" target="_blank">Community<\/a><\/li>';
        str+='	    <li>|<\/li>';
        str+='	   <li><a href="\/aboutus.aspx">About Us<\/a><\/li>';
        str+='	  <\/ul><div class="clear"><\/div>';
        str+='	  <div><p>© Guinness World Records Limited 2009<\/p><\/div>';
        str+='    <\/div>';
		str+='  <\/div>';	 
	}        	
	else	
	{*/
        str+='<div id="clear"> <\/div>';
        str+='      <div id="footer_home">';
        str+='<table width="955" border="0" align="center" cellpadding="0" cellspacing="0">';
        str+='  <tr>';
		str+='  	<td>';
        str+='  		<table cellpadding="2" cellspacing="2" width="900" align="center">';
        str+='  			<tr>';
        str+='  				<td colspan="3" border="1"><strong>EXPLORE GUINNESS WORLD RECORDS<\/strong><\/td>';
        str+='  			<\/tr>';
		str+='  			<tr>';
        str+='  				<td width="296" valign="top">';
        str+='  					<strong>> Get your record verified<\/strong><br \/>';
        str+='  					   <a href="http:\/\/www.guinnessworldrecords.com\/member\/how_to_become_a_record_breaker.aspx">The application process<\/a><br \/>';
        str+='  					   <a href="http:\/\/www.guinnessworldrecords.com\/member\/">Submit your application<\/a><br \/>';
        str+='  					   <a href="http:\/\/www.guinnessworldrecords.com\/member\/services_fast_track.aspx">Fast Track your application<\/a><br \/>';
        str+='  					   <a href="http:\/\/www.guinnessworldrecords.com\/adj_application\/apply.aspx?lang=">Invite a Judge to your event<\/a><br \/>  ';
        str+='  					   <a href="http:\/\/www.guinnessworldrecords.com\/member\/">Login to track your claims<\/a>					';
        str+='  				<\/td>';
		str+='  				<td width="296" valign="top">';
        str+='  					<strong>> Records<\/strong><br \/>';
        str+='  					   <a href="http:\/\/www.guinnessworldrecords.com\/records\/">Browse records by Category<\/a><br \/>';
        str+='  					   <a href="http:\/\/community.guinnessworldrecords.com\/service\/searchEverything.kickAction?keywords=adj_blog&includeBlog=on&as=7691">Read about latest records set<\/a><br \/>';
        str+='  					   <a href="http:\/\/community.guinnessworldrecords.com\/service\/searchEverything.kickAction?keywords=gwr_news&includeBlog=on&as=7691">General News<\/a><br \/>';
        str+='  					   <a href="http:\/\/community.guinnessworldrecords.com\/service\/displayDiscussionThreads.kickAction?as=7691&w=195789&d=155703">Chain Letter \/ Social Media Records<\/a>';
        str+='  				<\/td>';
		str+='  				<td width="296" valign="top">';
        str+='  					<strong>> GWR community<\/strong><br \/>';
        str+='  					   <a href="http:\/\/community.guinnessworldrecords.com\/service\/searchEverything.kickAction?as=7691&mediaType=video&sortType=recent&tab=yes&includeVideo=on&d-7095067-p=1">Browse user videos<\/a><br \/>';
        str+='  					   <a href="http:\/\/community.guinnessworldrecords.com\/user\/displayUserRegisterPage.kickAction?as=7691&STATUS=MAIN">Register to upload content<\/a><br \/>';
        str+='  					   <a href="http:\/\/community.guinnessworldrecords.com\/service\/displayMessageBoard.kickAction?as=7691&mediaType=messageBoards&sortType=recent&includeMessages=on">Join our discussion groups<\/a>';
        str+='  				<\/td>';
		str+='  			<\/tr>';
		str+='  			<tr>  				';
        str+='  				<td width="296" valign="top">';
        str+='  					<strong>> GWR websites<\/strong><br \/>';
        str+='  					   <a href="http:\/\/www.guinnessworldrecords.com\/gamers\/">Gamer\'s Edition<\/a><br \/>';
        str+='  					   <a href="http:\/\/www.guinnessworldrecordsgame.com\/" target="_new">Guinness World Records: The Videogame<\/a><br \/>';
        str+='  					<!--   <a href="#">GWR on your mobile<\/a>-->';
        str+='  				<\/td>';
		str+='  				<td width="296" valign="top">';
        str+='  					<strong>> GWR on other sites<\/strong><br \/>';
        str+='  					<table cellpadding="0" cellspacing="0">';
        str+='  						<tr>';
		str+='  							<td>';
        str+='  								   <a href="http:\/\/uk.youtube.com\/guinnessworldrecords" target="_new">YouTube<\/a><br \/>';
        str+='  								   <a href="http:\/\/www.facebook.com\/pages\/Guinness-World-Records\/6732359031" target="_new">Facebook<\/a><br \/>';
        str+='  								   <a href="http:\/\/twitter.com\/gwrnews" target="_new">Twitter<\/a><br \/>';
        str+='  							<\/td>';
		str+='  							<td>';
        str+='  								      <a href="http:\/\/www.joost.com\/055000l\/t\/Guinness-World-Records-TV" target="_new">Joost<\/a><br \/>';
        str+='  								      <a href="http:\/\/www.metacafe.com\/gwr\/" target="_new">Metacafe<\/a><br \/>';
        str+='  								      <a href="http:\/\/www.dailymotion.com\/guinnessworldrecords" target="_new">DailyMotion<\/a><br \/>';
        str+='  							<\/td>';
		str+='  						<\/tr>';
        str+='  					<\/table';
		str+='  				<\/td>';
        str+='  				<td width="296" valign="top">';
        str+='  					<strong>> Information for Media Partners<\/strong><br \/>';
        str+='  					   <a href="http:\/\/www.guinnessworldrecords.com\/mediazone\/">Latest Press Releases<\/a><br \/>';
        str+='  					   <a href="http:\/\/www.guinnessworldrecords.com\/mzregister\/mzregister.aspx">Register for Updates<\/a><br \/>';
        str+='  					   <a href="http:\/\/www.guinnessworldrecords.com\/mediazone\/">Login to view the Press Kit<\/a>';
        str+='  				<\/td>';
		str+='  			<\/tr>';
		str+='  			<\/table>';
        str+='  <\/tr>';
		str+='  <tr> ';
        str+='	<td height="5" align="center"><br \/>© Copyright Guinness World Records 2009<br \/><br \/><\/td>';
        str+='  <\/tr>';
		str+='  <tr>';
		str+='	<td align="center">';
        str+='	<a href="http:\/\/www.guinnessworldrecords.com\/corporate\/" target="_new">Corporate Site<\/a>';
        str+='	 | ';
        str+='	<a href="http:\/\/www.guinnessworldrecords.com\/corporate\/privacy.aspx" target="_new">PRIVACY<\/a>';
        str+='	 | ';
        str+='	<a href="http:\/\/www.guinnessworldrecords.com\/corporate\/terms_of_use.aspx" target="_new">Terms of Use<\/a>';
        str+='	<\/td>';
		str+='  <\/tr>	';
		str+='<\/table>';
        str+='<\/div>';
    //}		
    document.write(str);
}
    
    
//Write the footer
writeJS_footer();   
           
 
function handlePageDisplay()
{
//Handles the display of blog posts
var searchterm1 = 'press_int';
var searchterm2 = 'adj_blog';
var searchterm3 = 'gwr_news';
var searchterm4 = 'press_ext';
var searchterm5 = 'gamers_blog';
var searchterm6 = 'adj_blog_it';
var searchterm7 = 'adj_blog_fr';
var searchterm8 = 'adj_blog_ja';
var searchterm9 = 'adj_blog_ru';
var searchterm10 = 'adj_blog_es';
var searchterm11 = 'adj_blog_tr';
var searchterm12 = 'adj_blog_ar';
var searchterm13 = 'xgames15';
var searchterm14 = 'gwr_poll';
var searchterm15 = 'adj_blog_de';
if(Ka.Info.MEDIAADMINTAGS != undefined)
{
    var mediaadmintags = Ka.Info.MEDIAADMINTAGS;
    var match1 = mediaadmintags.search(searchterm1);
	var match2 = mediaadmintags.search(searchterm2);
    var match3 = mediaadmintags.search(searchterm3);
	var match4 = mediaadmintags.search(searchterm4);
	var match5 = mediaadmintags.search(searchterm5);
	var match6 = mediaadmintags.search(searchterm6);
	var match7 = mediaadmintags.search(searchterm7);
	var match8 = mediaadmintags.search(searchterm8);
	var match9 = mediaadmintags.search(searchterm9);
	var match10 = mediaadmintags.search(searchterm10);
	var match11 = mediaadmintags.search(searchterm11);
	var match12 = mediaadmintags.search(searchterm12);
	var match13 = mediaadmintags.search(searchterm13);
	var match14 = mediaadmintags.search(searchterm14);
	var match15 = mediaadmintags.search(searchterm15);
	//INTERNAL PRESS RELEASE
	if (match1 != -1)
	{  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
        str+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0" type="application\/x-shockwave-flash" width="315" height="570" id="kickWidget_7691_187412" align="middle"><param name="movie" value="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction"\/><param name="FlashVars" value="affiliateSiteId=7691&widgetId=187412&width=315&height=570&revision=5"\/><param name="wmode" value="transparent"\/><param name="allowFullScreen" value="true"\/><param name="menu" value="false"\/><param name="allowScriptAccess" value="always"\/><embed src="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction" name="kickWidget_7691_187412" width="315" height="570" menu="false" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" wmode="transparent" align="middle" allowScriptAccess="always" alt="KickApps Widget" allowFullScreen="true" FlashVars="affiliateSiteId=7691&widgetId=187412&width=315&height=570&revision=5"\/><\/object>';    
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
	//ADJUDICATION ARTICLE
    if (match2 != -1) 
	{  
	    //GERMAN ADJUDICATION STORIES
       if (match15 != -1)
       {  //remove border from blog
            document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		    var str = '';
            str+='<a href=\"http:\/\/www.guinnessworldrecords.com\/adj_application\/apply.aspx?lang=de-DE\" ><img src=\"http:\/\/www.guinnessworldrecords.com\/images\/ads\/house_ads\/270w_invite_judge_german.jpg\" alt=\"Bestellen Sie einen GWR Rekordrichter!\" border=\"0\" class=\"border\" \/><\/a>';
            str+='<p>&nbsp;<\/p>';
		    str+='<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0\" width=\"320\" height=\"315\" id=\"kickWidget_7691_285594\" ><param name=\"movie\" value=\"http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction\"><\/param><param name=\"FlashVars\" value=\"affiliateSiteId=7691&amp;widgetId=285594&amp;width=320&amp;height=315&amp;revision=18\" ><\/param><param name=\"wmode\" value=\"transparent\" ><\/param><param name=\"allowFullScreen\" value=\"true\" ><\/param><param name=\"allowScriptAccess\" value=\"always\" ><\/param><embed src=\"http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction\" name=\"kickWidget_7691_285594\" width=\"320\" height=\"315\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" wmode=\"transparent\" allowScriptAccess=\"always\" allowFullScreen=\"true\" FlashVars=\"affiliateSiteId=7691&amp;widgetId=285594&amp;width=320&amp;height=315&amp;revision=18\"><\/embed><\/object>';
		    document.getElementById("ka_relatedWrap").innerHTML = str;
		    document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		    document.getElementById("ka_playPageDetails").style.height = "0px";
       }
	   else
	   {
	    //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
        //show last 10 adjduications widgets
		var str = '';
        str+='<a href="http:\/\/www.guinnessworldrecords.com\/adj_application\/apply.aspx?lang=" target="_self"><img src="http:\/\/www.guinnessworldrecords.com\/images\/ads\/house_ads\/300x250_invite_a_judge.jpg" width="300" height="250" alt="Invite a Judge to your event" class="border" \/><br \/><a href="http:\/\/www.guinnessworldrecords.com\/adj_application\/apply.aspx?lang=" target="_self">Invite a Judge - Language Options available<\/a><p>&nbsp;<\/p>';
        str+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0" type="application\/x-shockwave-flash" width="315" height="570" id="kickWidget_7691_119518" align="middle"><param name="movie" value="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction"\/><param name="FlashVars" value="affiliateSiteId=7691&widgetId=119518&width=315&height=570&revision=5"\/><param name="wmode" value="transparent"\/><param name="allowFullScreen" value="true"\/><param name="menu" value="false"\/><param name="allowScriptAccess" value="always"\/><embed src="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction" name="kickWidget_7691_119518" width="315" height="570" menu="false" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" wmode="transparent" align="middle" allowScriptAccess="always" alt="KickApps Widget" allowFullScreen="true" FlashVars="affiliateSiteId=7691&widgetId=119518&width=315&height=570&revision=5"\/><\/object>';   
		document.getElementById("ka_relatedWrap").innerHTML = str;
        document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		}
   } 
   //NEWS ARTICLE
   if (match3 != -1)
   {  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
        str+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0" type="application\/x-shockwave-flash" width="315" height="570" id="kickWidget_7691_187412" align="middle"><param name="movie" value="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction"\/><param name="FlashVars" value="affiliateSiteId=7691&widgetId=187412&width=315&height=570&revision=5"\/><param name="wmode" value="transparent"\/><param name="allowFullScreen" value="true"\/><param name="menu" value="false"\/><param name="allowScriptAccess" value="always"\/><embed src="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction" name="kickWidget_7691_187412" width="315" height="570" menu="false" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" wmode="transparent" align="middle" allowScriptAccess="always" alt="KickApps Widget" allowFullScreen="true" FlashVars="affiliateSiteId=7691&widgetId=187412&width=315&height=570&revision=5"\/><\/object>';    
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
   //EXTERNAL PRESS RELEASE
   if (match4 != -1)
   {  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
        str+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0" type="application\/x-shockwave-flash" width="315" height="570" id="kickWidget_7691_187412" align="middle"><param name="movie" value="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction"\/><param name="FlashVars" value="affiliateSiteId=7691&widgetId=187412&width=315&height=570&revision=5"\/><param name="wmode" value="transparent"\/><param name="allowFullScreen" value="true"\/><param name="menu" value="false"\/><param name="allowScriptAccess" value="always"\/><embed src="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction" name="kickWidget_7691_187412" width="315" height="570" menu="false" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" wmode="transparent" align="middle" allowScriptAccess="always" alt="KickApps Widget" allowFullScreen="true" FlashVars="affiliateSiteId=7691&widgetId=187412&width=315&height=570&revision=5"\/><\/object>';    
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
   //GAMERS ARTICLE
   if (match5 != -1)
   {  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
   //ITALIAN ADJUDICATION STORIES
   if (match6 != -1)
   {  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
        str+='<a href="http:\/\/www.guinnessworldrecords.com\/adj_application\/apply.aspx?lang=it-IT"><img src="http:\/\/www.guinnessworldrecords.com\/images\/ads\/house_ads\/270w_invite_judge_italian.jpg" alt="Invita un guidice" class="border" \/><\/a>';
        str+='<p>&nbsp;<\/p>';
        str+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0" width="320" height="315" id="kickWidget_7691_229900" ><param name="movie" value="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction"><\/param><param name="FlashVars" value="affiliateSiteId=7691&widgetId=229900&width=320&height=315&revision=4" ><\/param><param name="wmode" value="transparent" ><\/param><param name="allowFullScreen" value="true" ><\/param><param name="allowScriptAccess" value="always" ><\/param><embed src="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction" name="kickWidget_7691_229900" width="320" height="315" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" FlashVars="affiliateSiteId=7691&widgetId=229900&width=320&height=315&revision=4"><\/embed><\/object>';
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
   //FRENCH ADJUDICATION STORIES
   if (match7 != -1)
   {  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
        str+='<a href="http:\/\/www.guinnessworldrecords.com\/adj_application\/apply.aspx?lang=fr-FR"><img src="http:\/\/www.guinnessworldrecords.com\/images\/ads\/house_ads\/270w_invite_judge_french.jpg" alt="Invitez un juge" class="border" \/><\/a>';
		str+='<p>&nbsp;<\/p>';
		str+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0" width="320" height="315" id="kickWidget_7691_230641" ><param name="movie" value="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction"><\/param><param name="FlashVars" value="affiliateSiteId=7691&widgetId=230641&width=320&height=315&revision=10" ><\/param><param name="wmode" value="transparent" ><\/param><param name="allowFullScreen" value="true" ><\/param><param name="allowScriptAccess" value="always" ><\/param><embed src="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction" name="kickWidget_7691_230641" width="320" height="315" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" FlashVars="affiliateSiteId=7691&widgetId=230641&width=320&height=315&revision=10"><\/embed><\/object>';
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
   //JAPANESE ADJUDICATION STORIES
   if (match8 != -1)
   {  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
        str+='<a href="http:\/\/www.guinnessworldrecords.com\/adj_application\/apply.aspx?lang=ja-JP" ><img src="http:\/\/www.guinnessworldrecords.com\/images\/ads\/house_ads\/270w_invite_judge_japan.jpg" alt="Invite a Judge" border="0" class="border" \/><\/a>';
		str+='<p>&nbsp;<\/p>';
        str+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0" width="320" height="315" id="kickWidget_7691_233789" ><param name="movie" value="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction"><\/param><param name="FlashVars" value="affiliateSiteId=7691&widgetId=233789&width=320&height=315&revision=14" ><\/param><param name="wmode" value="transparent" ><\/param><param name="allowFullScreen" value="true" ><\/param><param name="allowScriptAccess" value="always" ><\/param><embed src="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction" name="kickWidget_7691_233789" width="320" height="315" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" FlashVars="affiliateSiteId=7691&widgetId=233789&width=320&height=315&revision=14"><\/embed><\/object>';
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
   //RUSSIAN ADJUDICATION STORIES
   if (match9 != -1)
   {  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
        str+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0" width="320" height="167" id="kickWidget_7691_235426" ><param name="movie" value="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction"><\/param><param name="FlashVars" value="affiliateSiteId=7691&widgetId=235426&width=320&height=167&revision=16" ><\/param><param name="wmode" value="transparent" ><\/param><param name="allowFullScreen" value="true" ><\/param><param name="allowScriptAccess" value="always" ><\/param><embed src="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction" name="kickWidget_7691_235426" width="320" height="167" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" FlashVars="affiliateSiteId=7691&widgetId=235426&width=320&height=167&revision=16"><\/embed><\/object>';
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
   //SPANISH ADJUDICATION STORIES
   if (match10 != -1)
   {  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
        str+='<a href="http:\/\/www.guinnessworldrecords.com\/adj_application\/apply.aspx?lang=es-ES"><img src="http:\/\/www.guinnessworldrecords.com\/images\/ads\/house_ads\/260w_invite_judge_spanish.jpg" alt="Invite a un juez de GWR" class="border" \/><\/a>';
		str+='<p>&nbsp;<\/p>';
		str+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0" width="320" height="315" id="kickWidget_7691_238417" ><param name="movie" value="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction"><\/param><param name="FlashVars" value="affiliateSiteId=7691&widgetId=238417&width=320&height=315&revision=12" ><\/param><param name="wmode" value="transparent" ><\/param><param name="allowFullScreen" value="true" ><\/param><param name="allowScriptAccess" value="always" ><\/param><embed src="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction" name="kickWidget_7691_238417" width="320" height="315" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" FlashVars="affiliateSiteId=7691&widgetId=238417&width=320&height=315&revision=12"><\/embed><\/object>';
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
   //TURKISH ADJUDICATION STORIES
   if (match11 != -1)
   {  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
        str+='<a href="http:\/\/www.guinnessworldrecords.com\/adj_application\/apply.aspx?lang=" target="_self"><img src="http:\/\/www.guinnessworldrecords.com\/images\/ads\/house_ads\/300x250_invite_a_judge.jpg" width="300" height="250" alt="Invite a Judge to your event" class="border" \/><br \/><a href="http:\/\/www.guinnessworldrecords.com\/adj_application\/apply.aspx?lang=" target="_self">Invite a Judge - Language Options available<\/a><p>&nbsp;<\/p>';
		str+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0" width="320" height="315" id="kickWidget_7691_238417" ><param name="movie" value="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction"><\/param><param name="FlashVars" value="affiliateSiteId=7691&amp;widgetId=248138&amp;width=320&amp;height=315&amp;revision=13" ><\/param><param name="wmode" value="transparent" ><\/param><param name="allowFullScreen" value="true" ><\/param><param name="allowScriptAccess" value="always" ><\/param><embed src="http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction" name="kickWidget_7691_248138" width="320" height="315" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" FlashVars="affiliateSiteId=7691&amp;widgetId=248138&amp;width=320&amp;height=315&amp;revision=13"><\/embed><\/object>';
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
   //ARABIC ADJUDICATION STORIES
   if (match12 != -1)
   {  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
        str+='<a href="http:\/\/www.guinnessworldrecords.com\/ar\/apply.aspx?lang=ar-AE"><img src="http:\/\/www.guinnessworldrecords.com\/images\/ads\/house_ads\/260w_invite_judge_arabic.jpg" alt="" class="border" \/><\/a>';
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
   //X-GAMES BLOGS
   if (match13 != -1)
   {  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
        str += '<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0\" width=\"320\" height=\"300\" id=\"kickWidget_7691_256506\" ><param name=\"movie\" value=\"http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction\"><\/param><param name=\"FlashVars\" value=\"affiliateSiteId=7691&amp;widgetId=256506&amp;width=320&amp;height=300&amp;revision=22\" ><\/param><param name=\"wmode\" value=\"transparent\" ><\/param><param name=\"allowFullScreen\" value=\"true\" ><\/param><param name=\"allowScriptAccess\" value=\"always\" ><\/param><embed src=\"http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction\" name=\"kickWidget_7691_256506\" width=\"320\" height=\"300\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" wmode=\"transparent\" allowScriptAccess=\"always\" allowFullScreen=\"true\" FlashVars=\"affiliateSiteId=7691&amp;widgetId=256506&amp;width=320&amp;height=300&amp;revision=22\"><\/embed><\/object>';
        str += '<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,0,0\" width=\"320\" height=\"230\" id=\"kickWidget_7691_256127\" ><param name=\"movie\" value=\"http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction\"><\/param><param name=\"FlashVars\" value=\"affiliateSiteId=7691&amp;widgetId=256127&amp;width=320&amp;height=230&amp;revision=19\" ><\/param><param name=\"wmode\" value=\"transparent\" ><\/param><param name=\"allowFullScreen\" value=\"true\" ><\/param><param name=\"allowScriptAccess\" value=\"always\" ><\/param><embed src=\"http:\/\/serve.a-widget.com\/service\/getWidgetSwf.kickAction\" name=\"kickWidget_7691_256127\" width=\"320\" height=\"230\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" wmode=\"transparent\" allowScriptAccess=\"always\" allowFullScreen=\"true\" FlashVars=\"affiliateSiteId=7691&amp;widgetId=256127&amp;width=320&amp;height=230&amp;revision=19\"><\/embed><\/object>';
        str+= '<a href=\"http:\/\/community.guinnessworldrecords.com\/_X-Games-15\/group\/100777\/7691.html\" target=\"_self\"><img src=\"http:\/\/www.guinnessworldrecords.com\/images\/ads\/house_ads\/x_games_15.jpg\" alt=\"GWR at X Games 15\" class=\"border\" \/><\/a>';
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
   //HOMEPAGE POLL
   if (match14 != -1)
   {  //remove border from blog
        document.getElementById("ka_playPagePlayer_blog").style.border= "0px none";
		document.getElementById("ka_playPageDetails").style.visibility = "hidden";
		document.getElementById("ka_playPageDetails").style.height = "0px";
		var str = '';
		document.getElementById("ka_relatedWrap").innerHTML = str;
   }
   
}
}//end function handlePageDisplay

handlePageDisplay();
   
   

//Navigation Bar Changes
function changeLinkName()
{ 
	if ($('ka_blogTab_nav'))
	{ 
		var blogLink = $('ka_blogTab_nav').getElementsByTagName('span')[0] 
		blogLink.innerHTML = 'News'; 
	}	 
	$j('<li id="adj_blog"><a href="http://www.guinnessworldrecords.com/adjudications/"><span>Adjudications</span></a></li>').insertAfter('#ka_blogTab_nav');
} 


//changeLinkName();




//Add a link to download original video
function downloadVideoDisplay()
{
if (Ka.Info.PAGE === "pages/mediaPlayPage.jsp" && Ka.Info.MEDIATYPE === "VIDEO" && (Ka.Info.USERROLE === 'WEBMASTER' || Ka.Info.USERROLE == 'EDITOR')) 
	{ 
		var $links = $j('<strong style="color: green;">Download Options</strong><br /><a href="http://media2.kickapps.com/videos/' + Ka.Info.MEDIAID + '.flv">FLV format</a><br /><a href="http://static.kickapps.com/kickapps/images/videos/' + Ka.Info.MEDIAID + Ka.Info.ORIGVIDEOFORMAT + '">Original upload</a><br />');
	$links.appendTo('#ka_adminControlWrap');
} 

/*if (document.getElementById('videoOrigFormat') != null && document.getElementById('videoOrigFormat') != '') 
{
    if (DWRUtil.getValue('userRole') == 'WEBMASTER' || DWRUtil.getValue('userRole') == 'EDITOR') 
	{
        var links = '<br><a href="http://media2.kickapps.com/videos/' + DWRUtil.getValue("mediaId") + '.flv">FLV format</a><br>';links += '<a href="http://static.kickapps.com/kickapps/images/videos/' + DWRUtil.getValue("mediaId") + DWRUtil.getValue("videoOrigFormat") + '">Original upload</a><br>';
		document.getElementById("ka_playPageDetails").innerHTML + links;             
	} 
}*/
}// End function

downloadVideoDisplay();

// replace related stuff
/*
$j(document).ready(function() {
 if (Ka.Info.PAGE == 'pages/mediaPlayPage.jsp'){ 
	 if (Ka.Info.MEDIACATEGORIES == 'Soccer Sensations'){ 
		$j('#ka_playPageDetails').after('<br /><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="295" height="587" id="kickWidget_56194_248245" ><param name="movie" value="http://serve.a-widget.com/service/getWidgetSwf.kickAction"></param><param name="FlashVars" value="affiliateSiteId=56194&amp;widgetId=248245&amp;width=295&amp;height=587&amp;revision=4" ></param><param name="wmode" value="transparent" ></param><param name="allowFullScreen" value="true" ></param><param name="allowScriptAccess" value="always" ></param><embed src="http://serve.a-widget.com/service/getWidgetSwf.kickAction" name="kickWidget_56194_248245" width="295" height="587" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" FlashVars="affiliateSiteId=56194&amp;widgetId=248245&amp;width=295&amp;height=587&amp;revision=4"></embed></object>');
		}
	if (Ka.Info.MEDIACATEGORIES == 'Pet Pandemonium'){ 
		$j('#ka_playPageDetails').after('<br /><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" type="application/x-shockwave-flash" width="295px" height="600px" id="kickWidget_56194_19403" align="middle"><param name="movie" value="http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction"/><param name="FlashVars" value="affiliateSiteId=56194&amp;widgetId=19403&amp;width=295&amp;height=600"/><param name="quality" value="high"/><param name="wmode" value="transparent"/><param name="allowFullScreen" value="true"/><param name="menu" value="false"/><param name="allowNetworking" value="all"/><param name="allowScriptAccess" value="always"/><embed src="http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction" name="kickWidget_56194_19403" width="295px" height="600px" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" align="middle" allowScriptAccess="always" alt="KickApps Widget" allowFullScreen="true" FlashVars="affiliateSiteId=56194&amp;widgetId=19403&amp;width=295&amp;height=600"/></object>');
		}
	if (Ka.Info.MEDIACATEGORIES == 'Spinning Superstars'){ 
		$j('#ka_playPageDetails').after('<br /><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" type="application/x-shockwave-flash" width="295px" height="600px" id="kickWidget_56194_19405" align="middle"><param name="movie" value="http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction"/><param name="FlashVars" value="affiliateSiteId=56194&amp;widgetId=19405&amp;width=295&amp;height=600"/><param name="quality" value="high"/><param name="wmode" value="transparent"/><param name="allowFullScreen" value="true"/><param name="menu" value="false"/><param name="allowNetworking" value="all"/><param name="allowScriptAccess" value="always"/><embed src="http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction" name="kickWidget_56194_19405" width="295px" height="600px" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" align="middle" allowScriptAccess="always" alt="KickApps Widget" allowFullScreen="true" FlashVars="affiliateSiteId=56194&amp;widgetId=19405&amp;width=295&amp;height=600"/></object>');
		}		
	if (Ka.Info.MEDIACATEGORIES == 'Dance Revolution'){ 
		$j('#ka_playPageDetails').after('<br /><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" type="application/x-shockwave-flash" width="295px" height="600px" id="kickWidget_56194_19409" align="middle"><param name="movie" value="http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction"/><param name="FlashVars" value="affiliateSiteId=56194&amp;widgetId=19409&amp;width=295&amp;height=600"/><param name="quality" value="high"/><param name="wmode" value="transparent"/><param name="allowFullScreen" value="true"/><param name="menu" value="false"/><param name="allowNetworking" value="all"/><param name="allowScriptAccess" value="always"/><embed src="http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction" name="kickWidget_56194_19409" width="295px" height="600px" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" align="middle" allowScriptAccess="always" alt="KickApps Widget" allowFullScreen="true" FlashVars="affiliateSiteId=56194&amp;widgetId=19409&amp;width=295&amp;height=600"/></object>');
		}
	if (Ka.Info.MEDIACATEGORIES == 'Wacky Wonders'){ 
		$j('#ka_playPageDetails').after('<br /><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="295" height="587" id="kickWidget_56194_248285" ><param name="movie" value="http://serve.a-widget.com/service/getWidgetSwf.kickAction"></param><param name="FlashVars" value="affiliateSiteId=56194&amp;widgetId=248285&amp;width=295&amp;height=587&amp;revision=7" ></param><param name="wmode" value="transparent" ></param><param name="allowFullScreen" value="true" ></param><param name="allowScriptAccess" value="always" ></param><embed src="http://serve.a-widget.com/service/getWidgetSwf.kickAction" name="kickWidget_56194_248285" width="295" height="587" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" FlashVars="affiliateSiteId=56194&amp;widgetId=248285&amp;width=295&amp;height=587&amp;revision=7"></embed></object>');
		}
	} 	
});
*/

//VibrantMedia Tags
function addVibrantTags()
{
    var category1 = 'human_body';
    var category2 = 'amazing_feats';
    var category3 = 'natural_world';
    var category4 = 'science_tech';
    var category5 = 'arts_media';
    var category6 = 'modern_society';
    var category7 = 'travel_transport';
    var category8 = 'sports_games';
    if(Ka.Info.MEDIAADMINTAGS != undefined)
    {
        var mediaadmintags = Ka.Info.MEDIAADMINTAGS;
        var match1 = mediaadmintags.search(category1);
	    var match2 = mediaadmintags.search(category2);
        var match3 = mediaadmintags.search(category3);
	    var match4 = mediaadmintags.search(category4);
	    var match5 = mediaadmintags.search(category5);
	    var match6 = mediaadmintags.search(category6);
	    var match7 = mediaadmintags.search(category7);
	    var match8 = mediaadmintags.search(category8);
	    var str = '';
	    if (match1 != -1)
	    {
    	    str+='<!-- start Vibrant Media IntelliTXT script section -->';
            str+='<script type="text\/javascript" src="http:\/\/guinnessworldrecords.us.intellitxt.com\/intellitxt\/front.asp?ipid=18838"><\/script>';
            str+='<!-- end Vibrant Media IntelliTXT script section -->';

	    }
	    else if (match2 != -1)
	    {
    	    str+='<!-- start Vibrant Media IntelliTXT script section -->';
            str+='<script type="text\/javascript" src="http:\/\/guinnessworldrecords.us.intellitxt.com\/intellitxt\/front.asp?ipid=18842"><\/script>';
            str+='<!-- end Vibrant Media IntelliTXT script section -->';

	    }
	    else if (match3 != -1)
	    {
    	    str+='<!-- start Vibrant Media IntelliTXT script section -->';
            str+='<script type="text\/javascript" src="http:\/\/guinnessworldrecords.us.intellitxt.com\/intellitxt\/front.asp?ipid=18842"><\/script>';
            str+='<!-- end Vibrant Media IntelliTXT script section -->';

	    }
	    else if (match4 != -1)
	    {
    	    str+='<!-- start Vibrant Media IntelliTXT script section -->';
            str+='<script type="text\/javascript" src="http:\/\/guinnessworldrecords.us.intellitxt.com\/intellitxt\/front.asp?ipid=18839"><\/script>';
            str+='<!-- end Vibrant Media IntelliTXT script section -->';

	    }
	    else if (match5 != -1)
	    {
    	    str+='<!-- start Vibrant Media IntelliTXT script section -->';
            str+='<script type="text\/javascript" src="http:\/\/guinnessworldrecords.us.intellitxt.com\/intellitxt\/front.asp?ipid=18842"><\/script>';
            str+='<!-- end Vibrant Media IntelliTXT script section -->';

	    }
	    else if (match6 != -1)
	    {
    	    str+='<!-- start Vibrant Media IntelliTXT script section -->';
            str+='<script type="text\/javascript" src="http:\/\/guinnessworldrecords.us.intellitxt.com\/intellitxt\/front.asp?ipid=18842"><\/script>';
            str+='<!-- end Vibrant Media IntelliTXT script section -->';

	    }
	    else if (match7 != -1)
	    {
    	    str+='<!-- start Vibrant Media IntelliTXT script section -->';
            str+='<script type="text\/javascript" src="http:\/\/guinnessworldrecords.us.intellitxt.com\/intellitxt\/front.asp?ipid=18841"><\/script>';
            str+='<!-- end Vibrant Media IntelliTXT script section -->';

	    }
	    else if (match8 != -1)
	    {
    	    str+='<!-- start Vibrant Media IntelliTXT script section -->';
            str+='<script type="text\/javascript" src="http:\/\/guinnessworldrecords.us.intellitxt.com\/intellitxt\/front.asp?ipid=18840"><\/script>';
            str+='<!-- end Vibrant Media IntelliTXT script section -->';

	    }
	    else 
	    {
			str+='<!-- start Vibrant Media IntelliTXT script section -->';
	        str+='<script type="text\/javascript" src="http:\/\/guinnessworldrecords.us.intellitxt.com\/intellitxt\/front.asp?ipid=18842"><\/script>';
	        str+='<!-- end Vibrant Media IntelliTXT script section -->';
		}
		document.write(str);
	}
}//End function

    
addVibrantTags();