function changecountry(fs) {
if (fs && fs.selectedIndex>=0 && fs.options) document.location = fs.options[fs.selectedIndex].value ;
}

function showprices(){
	p=document.getElementById("divprices");
	if(p){p.style.left=-4;}
}

function opengetit(pid,id){
	mamobpopupwin = window.open('http://www.mamob.com/scripts/getitall.html?pid='+pid+'&id='+id, 'mamobpopupwin','width=620,height=750,left=145,top=35,toolbar=0,menubar=0,location=0,scrollbars=0');
	mamobpopupwin.focus();
}
var bookmarkurl='http://www.mamob.com/';

function addbookmark(){
	if (document.all) window.external.AddFavorite(bookmarkurl,document.title)
}

function showphone(name,file){
	if (document && document.images && document.images['img_'+name]) {
		document.images['img_'+name].src = '/images/models/big/' + file;
		document.images['img_'+name].width = 125;
		document.images['img_'+name].height = 124;
	}
}


function castvote(pid,iid,val){
	if(document && document.images) (new Image()).src='/scripts/vote.html?pid='+pid+'&iid='+iid+'&val=' + val;
	if (document && document.getElementById) document.getElementById("votecontent").innerHTML = '<CENTER>Thank you!<BR>'+
		'<A HREF=\"/best_rated.html\">Go to the best rated tunes</A></CENTER>';
	return true;
}


var prev_phone_idx=-1;
function showphones(i)
{
	if (i == prev_phone_idx)
	{
		return;
	}

	if (prev_phone_idx != -1)
	{
		var el = document.getElementById('gamephone'+prev_phone_idx);
		el.style.left = '-1500px';
	}
	else
	{
		/* First click */
		var el = document.getElementById('gamephonespace');
		if (el)
		{
			el.innerHTML = '<BR><BR><BR><BR><BR><BR><BR>';
		}
	}

	var el = document.getElementById('gamephone'+i);
	el.style.left = '200px';
	prev_phone_idx = i;
}

