if (!Array.prototype.inArray) {
   Array.prototype.inArray=function(val) {
      for (key in this) {
         if (this[key]===val) {
            return true;
         }
      }
      return false;
   }
}

function jsMoreOption(ida) 
{
	var option_value=new Array('_trilulilu','_dailymotion','_gametrailers','_gamevideos');
	
	if (option_value.inArray(ida)) {
	
		var n = option_value.length;
		for (i=0; i<n; i++ ) {
			optionid = 'more'+option_value[i].toLowerCase();
			document.getElementById(optionid).style.display = 'none';
		}
		optionid = 'more'+ida.toLowerCase();
		document.getElementById('more_option').style.display = 'block';
		document.getElementById(optionid).style.display = 'block';	
	} else {
		document.getElementById('more_option').style.display = 'none';
	}
}

function buttonalert(event)
{
    var button;
    if (event.which == null)
       button= (event.button < 2) ? "LEFT" :
                 ((event.button == 4) ? "MIDDLE" : "RIGHT");
    else
       button= (event.which < 2) ? "LEFT" :
                 ((event.which == 2) ? "MIDDLE" : "RIGHT");
   
    if (button == "LEFT") { dont(event); }
}

function dont(event)
{
    if (event.preventDefault)
        event.preventDefault();
    else
        event.returnValue= false;
    alert("Please Copy LINK from YELLOW BOX and paste in your address bar. \n\r -------------- \n\r DIRECT LINK NOT WORKING! \n\r -------------- \n\r HAVE FUN ...");
    return false;
}

function dummy() {
	return true;
}
