﻿<!--
function removeText(x){x.value=""}
function evaluateText(x){var strSearchString;strSearchString=x.value;if(strSearchString==""){strSearchString="Look for.."
x.value=strSearchString}}
function addDictionaryLink(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anchor=anchors[i];if(anchor.getAttribute("href")&&(anchor.getAttribute("rel")=="dictionaryLink"))
{anchor.setAttribute("onclick","openDictionaryWindow('"+anchor.getAttribute("href")+"');return false;");}}};function addBookmarkLink(){var i=0;var newP=document.createElement('p');newP.innerHTML='Add to Favourites';var s=document.getElementById('bookmark_subscribe');var oldT=document.getElementById('bookmark_subscribe').childNodes[i];if(document.all){s.replaceChild(newP,oldT);s.style.color='#9a1212';s.style.cursor='pointer';s.onclick=function(){window.external.AddFavorite(self.location,document.title)};}
else if(window.sidebar){s.replaceChild(newP,oldT);s.style.color='#9a1212';s.style.cursor='pointer';s.onclick=function(){window.sidebar.addPanel(document.title,self.location,'')};}else if(window.external){s.replaceChild(newP,oldT);s.style.color='#9a1212';s.style.cursor='pointer';s.onclick=function(){window.external.AddFavorite(self.location,document.title)};}else if(window.opera){s.replaceChild(newP,oldT);s.style.color='#9a1212';s.style.cursor='pointer';s.onclick=function(){var e=document.createElement('a');e.setAttribute('href',self.location);e.setAttribute('title',document.title);e.setAttribute('rel','sidebar');e.click();}}}
function openDictionaryWindow(myBookmark)
{var myTarget=myBookmark;var dictionaryURL="http://www.chilliandchocolate.com/"+myBookmark;var width=300;var height=300;var left=(screen.width-width)/2;var top=(screen.height-height)/2;var params='width='+width+', height='+height;params+=', top='+top+', left='+left;params+=', directories=no';params+=', location=no';params+=', menubar=no';params+=', resizable=no';params+=', scrollbars=no';params+=', status=no';params+=', toolbar=no';var dictionaryWindow=window.open(dictionaryURL,"dictionaryWindow",params);if(window.focus){dictionaryWindow.focus()}
return false;};function externalLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anchor=anchors[i];if(anchor.getAttribute("href")&&((anchor.getAttribute("rel")=="external")||(anchor.getAttribute("rel")=="pdf_link")||(anchor.getAttribute("rel")=="newsletter")))
anchor.target="_blank";}}
function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){if(oldonload){oldonload();}
func();}}}
addLoadEvent(externalLinks);addLoadEvent(addDictionaryLink);addLoadEvent(addBookmarkLink);

$(document).ready(function(){
    $('#show_movie').flash(
        { 
          src: 'http://www.youtube.com/v/KAQS6xkmrfk&hl=en_GB&fs=1&rel=0',
          width: 480,
          height: 295,
	      wmode: 'transparent',
          allowscriptaccess: 'always'
        },
        { version: 8 }
    );
});