﻿

var sps = [
    ["http://www.espew.com/cgi-bin/search?searchstring=",null,null,null,null
    ],
        ["http://www.seeqpod.com/search/?q=", null,null,null,null
        ],
  ["http://www.skreemr.com/results.jsp?q=", null,null,null,null
  ],
    
         ];
var acc=["", "", "", ""];
var cur_sp=1;
function search(ev){
	var e = ev || window.event;
	if(e){
		var key = window.event ? e.keyCode : e.which;
		if(key == 13) 
			do_s();
	}
}
function do_s(){
var orig = $("keyword").value, key = encodeURIComponent(orig), gb = sps[cur_sp-1][0].indexOf("UTF-8") > 0 || cur_sp==4;
if(!orig.length) 
$('if_result').src = "";
else{
var url = sps[cur_sp-1][0] + (gb?UTF-8(orig):key) + acc[cur_sp-1];
$('if_result').src = url;

}
}
function select_tag(oid){
cur_sp = oid;

do_s();
}
if(document.all) var location = null;
var s = document.location.search.substr(1).split("&");
function val(key){ 
for(var i=0; i<s.length; i++){
var kv = s[i].split("=");
if(kv.length != 2) 
continue;
if(kv[0] == key) 
return kv[1];
} 
return null;
}
var kw = val("kw"), sp = val("sp"), f = val("from");
if(sp) 
try{
cur_sp = parseInt(sp);
if(cur_sp<5 && cur_sp>0)
select_tag(cur_sp);else cur_sp=1
}catch(e)
{}
if(kw) 
$('keyword').value = decodeURIComponent(kw);

do_s();







function check(select){
key11 = document.form_search.keyword.value;
key =  encodeURIComponent(key11);

switch(select){
case 1: window.open('http://audio.search.yahoo.com/search/audio?p='+key);break;
case 2: window.open('http://www.altavista.com/audio/results?itag=ody&q='+key);break;
case 3: window.open('http://www.alltheweb.com/search?cat=mp3&cs=utf8&q='+key);break;
case 4: window.open('http://www.seeqpod.com/search/?q='+key);break;
case 5: window.open('http://www.skreemr.com/results.jsp?q='+key);break;

case 8: window.open('http://www.mp3000.net/mp3_0/'+key);break;
case 9: window.open('http://www.mp3search.us/search.php?find='+key);break;
case 10: window.open('http://www.ijigg.com/search?s='+key);break;
case 11: window.open('http://www.espew.com/cgi-bin/search?searchstring='+key);break;
case 12: window.open('http://www.mp3realm.org/search?q='+key);break;
case 13: window.open('http://www.google.com/search?hl=en&q="'+key+'"%20-inurl:(htm|html|php|pls|txt)%20intitle:index.of%20+%20"last%20modified"%20+%20(wma|mp3)%20%20-index-of-mp3%20-game-freaks%20-pickbrains%20-kaboodle%20-mp3gle%20-ihackr%20-indexofmp3%20-blogspot%20-franceradio%20-insanbilimleri%20-english-4-free%20-audiozen%20-hyooge%20-vmp3&btng=google+search');break;
case 14: window.open('http://www.downloads.nl/results/mp3/1/'+key);break;



case 100: window.open('http://www.absolutelyrics.com/lyrics/search/?q='+key);break;
case 101: window.open('http://www.chizmax.com/?title='+key);break;
case 102: window.open('http://findmeatune.com/songsearch.php?query='+key);break;
case 103: window.open('http://www.redzee.com/revolution.php?query='+key);break;
case 104: window.open('http://www.google.com/cse?cx=partner-pub-2327621889968059%3Arhnpqa-oqsd&q='+key);break;
case 105: window.open('http://www.mldb.org/search?mq='+key);break;
case 106: window.open('http://www.mybesh.com/mlfinder/mlfinder.cgi?q='+key);break;





case 200: window.open('http://www.podcastdirectory.com/search/keyword.php?search='+key);break;
case 201: window.open('http://www.podscope.com/search.php?s=&q='+key);break;
case 202: window.open('http://podcast.com/_service/search_sphinx1.php?q='+key);break;
case 203: window.open('http://www.podanza.com/search.php?keywords='+key);break;
case 204: window.open('http://www.alltheweb.com/search?cat=mp3&cs=utf8&q='+key);break;
}

}