			/*
				search url for a "&" and split by "=" into array
				THIS FUNCTION IS CALLED IN "titel_imgTutle le ricette|recipeselecting" on 
				seigrandeincucina.it BELOW HTML dropdown (getVars) because,
				take guarantee the option is loaded before this function is called! 
			*/
			function getVars()
                        {
                                 var vars = [], hash;
                                 var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
                                 for(var i = 0; i < hashes.length; i++)
                                 {
                                        hash = hashes[i].split('=');
                                        
                                        vars.push(hash[i]);
                                        
                                 }
                        
                                
                                var id = hash[1];
				
				/*

				select the correct option by id
				*/
                                  switch (id) {
    					case "2018": 
						document.dropdown_pr.dd_link.options[1].selected=true;
         			        break;
                                        case "2020":
						document.dropdown_pr.dd_link.options[2].selected=true;                                 
					break;

					case "2022":
						document.dropdown_pr.dd_link.options[3].selected=true; 
					break;

					case "2024":
						document.dropdown_pr.dd_link.options[4].selected=true; 
					break;

					default:
					

                                  }
                                 


                        }
                        /*
			getVars();
                        */
 

