	function resetPods(){
		document.getElementById('podbtn1').className = "podbtn1";
		document.getElementById('podbtn2').className = "podbtn2";
		document.getElementById('podbtn3').className = "podbtn3";
		document.getElementById('podbtn4').className = "podbtn4";
		document.getElementById('podbtn5').className = "podbtn5";
		if(document.getElementById('podbodyText'))document.getElementById('podbodyText').style.display = 'none';
		if(document.getElementById('podbodyPrice'))document.getElementById('podbodyPrice').style.display = 'none';
		if(document.getElementById('podbodyPic'))document.getElementById('podbodyPic').style.display = 'none';
		if(document.getElementById('podbodyAudio'))document.getElementById('podbodyAudio').style.display = 'none';
		if(document.getElementById('podbodyMap'))document.getElementById('podbodyMap').style.display = 'none';
		if(document.getElementById('podbodyVideo'))document.getElementById('podbodyVideo').style.display = 'none';
	}


	function prevTextPod(){			
			
			if(tpCI > 0){
				document.getElementById('tpPage'+tpCI).style.display = 'none';
				tpCI--;				
				document.getElementById('tpPage'+tpCI).style.display = '';
				document.getElementById('tpPrev').className = "podprev";				
			}else{
				document.getElementById('tpPrev').className = "podprev-off";				
			}
			
			if(tpCI < tpCnt-2){
				document.getElementById('tpNext').className = "podnext";
			}else{
				document.getElementById('tpNext').className = "podnext-off";
			}
			
	}
	
	
	function nextTextPod(){			
			
			if(tpCI < tpCnt-2){
				document.getElementById('tpPage'+tpCI).style.display = 'none';
				tpCI++;
				document.getElementById('tpPage'+tpCI).style.display = '';
				document.getElementById('tpNext').className = "podnext";				
			} else{
				document.getElementById('tpNext').className = "podnext-off";							
			}
			
			if(tpCI > 0){
				document.getElementById('tpPrev').className = "podprev";
			}else{
				document.getElementById('tpPrev').className = "podprev-off";
			}
			
	}



	function prevPicPod(){			
			
			if(picpCI > 0){
				document.getElementById('picpPage'+picpCI).style.display = 'none';
				picpCI--;				
				document.getElementById('picpPage'+picpCI).style.display = '';
				document.getElementById('picpPrev').className = "podprev";				
			}else{
				document.getElementById('picpPrev').className = "podprev-off";				
			}
			
			if(picpCI < picpCnt-1){
				document.getElementById('picpNext').className = "podnext";
			}else{
				document.getElementById('picpNext').className = "podnext-off";
			}
			
	}
	
	
	function nextPicPod(){			
			
			if(picpCI < picpCnt-1){
				document.getElementById('picpPage'+picpCI).style.display = 'none';
				picpCI++;
				document.getElementById('picpPage'+picpCI).style.display = '';
				document.getElementById('picpNext').className = "podnext";				
			} else{
				document.getElementById('picpNext').className = "podnext-off";							
			}
			
			if(picpCI > 0){
				document.getElementById('picpPrev').className = "podprev";
			}else{
				document.getElementById('picpPrev').className = "podprev-off";
			}
			
	}


	function prevAudioPod(){			
			
			if(apCI > 0){
				document.getElementById('apPage'+apCI).style.display = 'none';
				apCI--;				
				document.getElementById('apPage'+apCI).style.display = '';
				document.getElementById('apPrev').className = "podprev";				
			}else{
				document.getElementById('apPrev').className = "podprev-off";				
			}
			
			if(apCI < apCnt-2){
				document.getElementById('apNext').className = "podnext";
			}else{
				document.getElementById('apNext').className = "podnext-off";
			}
			
	}
	
	
	function nextAudioPod(){			
			
			if(apCI < apCnt-2){
				document.getElementById('apPage'+apCI).style.display = 'none';
				apCI++;
				document.getElementById('apPage'+apCI).style.display = '';
				document.getElementById('apNext').className = "podnext";				
			} else{
				document.getElementById('apNext').className = "podnext-off";							
			}
			
			if(apCI > 0){
				document.getElementById('apPrev').className = "podprev";
			}else{
				document.getElementById('apPrev').className = "podprev-off";
			}
			
	}



	function prevVideoPod(){			
			
			if(vpCI > 0){
				document.getElementById('vpPage'+vpCI).style.display = 'none';
				apCI--;				
				document.getElementById('vpPage'+vpCI).style.display = '';
				document.getElementById('vpPrev').className = "podprev";				
			}else{
				document.getElementById('vpPrev').className = "podprev-off";				
			}
			
			if(vpCI < vpCnt-2){
				document.getElementById('vpNext').className = "podnext";
			}else{
				document.getElementById('vpNext').className = "podnext-off";
			}
			
	}
	
	
	function nextVideoPod(){			
			
			if(vpCI < vpCnt-2){
				document.getElementById('vpPage'+vpCI).style.display = 'none';
				vpCI++;
				document.getElementById('vpPage'+vpCI).style.display = '';
				document.getElementById('vpNext').className = "podnext";				
			} else{
				document.getElementById('vpNext').className = "podnext-off";							
			}
			
			if(vpCI > 0){
				document.getElementById('vpPrev').className = "podprev";
			}else{
				document.getElementById('vpPrev').className = "podprev-off";
			}
			
	}
	

function stoggle(val){
    
	switch(val){
		case 'step1':
			document.getElementById('step2').style.display = "none";
			document.getElementById('step1').style.display = "";
			document.getElementById('step').value = 1; 
			if(lang == 'eng'){
				document.getElementById('keySel').value = '(type keyword here)';
			}else {
				document.getElementById('keySel').value = '(tik sleutelwoord hier)';
			}
			document.getElementById('catSel').selectedIndex = 0;
		break;
		case 'step2':
			document.getElementById('step1').style.display = "none";
			document.getElementById('step2').style.display = "";
			document.getElementById('step').value = 2;				
			if(lang == 'eng'){
				document.getElementById('keySel').value = '(type keyword here)';
			}else {
				document.getElementById('keySel').value = '(tik sleutelwoord hier)';
			}

			document.getElementById('catSel').selectedIndex = 0;
		break;

	}
}
	
function Set_Cookie( name, value, expires, path, domain, secure )
{

	var val = value.split('|');


	
	expires = '';
	path = '/';
	domain = '';
	secure = '';
	// set time, it's in milliseconds
	var today = new Date();
	today.setTime( today.getTime() );

	/*
	if the expires variable is set, make the correct
	expires time, the current script below will set
	it for x number of days, to make it for hours,
	delete * 24, for minutes, delete * 60 * 24
	*/
	if ( expires )
	{
	expires = expires * 1000 * 60 * 60 * 24;
	}
	var expires_date = new Date( today.getTime() + (expires) );

	document.cookie = name + "=" +escape( value ) +
	( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
	( ( path ) ? ";path=" + path : "" ) +
	( ( domain ) ? ";domain=" + domain : "" ) +
	( ( secure ) ? ";secure" : "" );
	}
		
		
		
function addPKBasket(val,title){


	var cookieData = get_cookie('pkbasket');
   
   	Set_Cookie('pkbasket',cookieData+'|'+val);

	if(lang == 'eng')
		alert(title + ' has been added to your basket.');
	else
		alert(title + ' is by jou mandjie gevoeg.');


}


function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split('=');  
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return urldecode(c.substring(nameEQ.length,c.length));
	}
	return "";
}


var dbug = 0; function d_a(ary) {var beg = next_entry(ary) - 1; for (var i = beg ; i > -1; i--) {ary[i] = null;}} function init_array() {if (dbug) alert('init_cookie');  var ary = new Array(null); return ary;} function set_cookie(name,value,expires) {if (dbug) alert('set_cookie'); if (!expires) expires = new Date();
document.cookie = name + '=' + escape(value) + '; expires=' + expires.toGMTString() + '; path=/';} function get_cookie(name) {if (dbug) alert('get_cookie'); var dcookie = document.cookie; var cname = name + "="; var clen = dcookie.length; var cbegin = 0; while (cbegin < clen) {var vbegin = cbegin + cname.length;
if (dcookie.substring(cbegin, vbegin) == cname) {var vend = dcookie.indexOf (";", vbegin); if (vend == -1) vend = clen; return unescape(dcookie.substring(vbegin, vend));} cbegin = dcookie.indexOf(" ", cbegin) + 1; if (cbegin == 0) break;} return null;} function del_cookie(name) {if (dbug) alert('del_cookie');
document.cookie = name + '=' + '; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/';} function get_array(name, ary) {if (dbug) alert('get_array'); d_a(ary); var ent = get_cookie(name); if (ent) {i = 1; while (ent.indexOf('^') != '-1') {ary[i] = ent.substring(0,ent.indexOf('^')); i++;
ent = ent.substring(ent.indexOf('^')+1, ent.length);}}} function set_array(name, ary, expires) {if (dbug) alert('set_array'); var value = ''; for (var i = 1; ary[i]; i++) {value += ary[i] + '^';} set_cookie(name, value, expires);} function del_entry(name, ary, pos, expires) {if (dbug) alert('del_entry');
var value = ''; get_array(name, ary); for (var i = 1; i < pos; i++) {value += ary[i] + '^';} for (var j = pos + 1; ary[j]; j++) {value += ary[j] + '^';} set_cookie(name, value, expires);} function next_entry(ary) {if (dbug) alert('next_entry'); var j = 0; for (var i = 1; ary[i]; i++) {j = i} return j + 1;}
function debug_on() {dbug = 1;} function debug_off() {dbug = 0;} function dump_cookies() {if (document.cookie == '') document.write('No Cookies Found'); else {thisCookie = document.cookie.split('; '); for (i=0; i<thisCookie.length; i++) {document.write(thisCookie[i] + '<br \/>');}}}

function urldecode (str) {
    // Decodes URL-encoded string  
    // 
    // version: 908.1617
    // discuss at: http://phpjs.org/functions/urldecode
    // +   original by: Philip Peterson
    // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +      input by: AJ
    // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: Brett Zamir (http://brett-zamir.me)
    // +      input by: travc
    // +      input by: Brett Zamir (http://brett-zamir.me)
    // +   bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: Lars Fischer
    // +      input by: Ratheous
    // +   improved by: Orlando
    // %        note 1: info on what encoding functions to use from: http://xkr.us/articles/javascript/encode-compare/
    // *     example 1: urldecode('Kevin+van+Zonneveld%21');
    // *     returns 1: 'Kevin van Zonneveld!'
    // *     example 2: urldecode('http%3A%2F%2Fkevin.vanzonneveld.net%2F');
    // *     returns 2: 'http://kevin.vanzonneveld.net/'
    // *     example 3: urldecode('http%3A%2F%2Fwww.google.nl%2Fsearch%3Fq%3Dphp.js%26ie%3Dutf-8%26oe%3Dutf-8%26aq%3Dt%26rls%3Dcom.ubuntu%3Aen-US%3Aunofficial%26client%3Dfirefox-a');
    // *     returns 3: 'http://www.google.nl/search?q=php.js&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a'
    
    var hash_map = {}, ret = str.toString(), unicodeStr='', hexEscStr='';
    
    var replacer = function (search, replace, str) {
        var tmp_arr = [];
        tmp_arr = str.split(search);
        return tmp_arr.join(replace);
    };
    
    // The hash_map is identical to the one in urlencode.
    hash_map["'"]   = '%27';
    hash_map['(']   = '%28';
    hash_map[')']   = '%29';
    hash_map['*']   = '%2A';
    hash_map['~']   = '%7E';
    hash_map['!']   = '%21';
    hash_map['!']   = '%21';
    hash_map['%20'] = '+';
    hash_map['\u00DC'] = '%DC';
    hash_map['\u00FC'] = '%FC';
    hash_map['\u00C4'] = '%D4';
    hash_map['\u00E4'] = '%E4';
    hash_map['\u00D6'] = '%D6';
    hash_map['\u00F6'] = '%F6';
    hash_map['\u00DF'] = '%DF';
    hash_map['\u20AC'] = '%80';
    hash_map['\u0081'] = '%81';
    hash_map['\u201A'] = '%82';
    hash_map['\u0192'] = '%83';
    hash_map['\u201E'] = '%84';
    hash_map['\u2026'] = '%85';
    hash_map['\u2020'] = '%86';
    hash_map['\u2021'] = '%87';
    hash_map['\u02C6'] = '%88';
    hash_map['\u2030'] = '%89';
    hash_map['\u0160'] = '%8A';
    hash_map['\u2039'] = '%8B';
    hash_map['\u0152'] = '%8C';
    hash_map['\u008D'] = '%8D';
    hash_map['\u017D'] = '%8E';
    hash_map['\u008F'] = '%8F';
    hash_map['\u0090'] = '%90';
    hash_map['\u2018'] = '%91';
    hash_map['\u2019'] = '%92';
    hash_map['\u201C'] = '%93';
    hash_map['\u201D'] = '%94';
    hash_map['\u2022'] = '%95';
    hash_map['\u2013'] = '%96';
    hash_map['\u2014'] = '%97';
    hash_map['\u02DC'] = '%98';
    hash_map['\u2122'] = '%99';
    hash_map['\u0161'] = '%9A';
    hash_map['\u203A'] = '%9B';
    hash_map['\u0153'] = '%9C';
    hash_map['\u009D'] = '%9D';
    hash_map['\u017E'] = '%9E';
    hash_map['\u0178'] = '%9F';
    hash_map['\u00C6'] = '%C3%86';
    hash_map['\u00D8'] = '%C3%98';
    hash_map['\u00C5'] = '%C3%85';

    for (unicodeStr in hash_map) {
        hexEscStr = hash_map[unicodeStr]; // Switch order when decoding
        ret = replacer(hexEscStr, unicodeStr, ret); // Custom replace. No regexing
    }
    
    // End with decodeURIComponent, which most resembles PHP's encoding functions
    ret = decodeURIComponent(ret);

    return ret;
}

