



/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();



jx={getHTTPObject:function(){var A=false;if(typeof ActiveXObject!="undefined"){try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){A=false}}}else{if(window.XMLHttpRequest){try{A=new XMLHttpRequest()}catch(C){A=false}}}return A},load:function(url,callback,format){var http=this.init();if(!http||!url){return }if(http.overrideMimeType){http.overrideMimeType("text/xml")}if(!format){var format="text"}format=format.toLowerCase();var now="uid="+new Date().getTime();url+=(url.indexOf("?")+1)?"&":"?";url+=now;http.open("GET",url,true);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var result="";if(http.responseText){result=http.responseText}if(format.charAt(0)=="j"){result=result.replace(/[\n\r]/g,"");result=eval("("+result+")")}if(callback){callback(result)}}else{if(error){error(http.status)}}}};http.send(null)},init:function(){return this.getHTTPObject()}}



// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 28;
// -----------------------------------------------------------------------------

// Constants
var notessimoW = "100%";
var notessimoH = "100%";
var notessimoURL = "files/notessimo";
var notessimoURL2 = "http://notessimo.net/files/notessimo.swf";
var notessimoBG = "#505050";

var lastID = -1;
var rateWindow;
var url5 = '';

// Rollover Button
function hov(loc,cls){
	loc.className = cls;
}

// Share button !
function openShare(id)
{
	var d = document.getElementById('share'+id);
	d.innerHTML = '<!-- AddThis Button BEGIN --><div class="addthis_toolbox addthis_default_style"><a href="http://www.addthis.com/bookmark.php?v=250&amp;username=Starburst" class="addthis_button" style="float: left;" addthis:url="http://notessimo.net/song-'+id+'">Share</a><span class="addthis_separator">|</span><a class="addthis_button_facebook" addthis:url="http://notessimo.net/song-'+id+'"><img src="'+url5+'/social/facebook.png" width="16" height="16" alt="Facebook" /></a><a class="addthis_button_twitter" addthis:url="http://notessimo.net/song-'+id+'"><img src="'+url5+'/social/twitter.png" width="16" height="16" alt="Twitter" /></a><a class="addthis_button_digg" addthis:url="http://notessimo.net/song-'+id+'"><img src="'+url5+'/social/digg.png" width="16" height="16" alt="Digg" /></a><a class="addthis_button_reddit" addthis:url="http://notessimo.net/song-'+id+'"><img src="'+url5+'/social/reddit.png" width="16" height="16" alt="Reddit" /></a><a class="addthis_button_stumbleupon" addthis:url="http://notessimo.net/song-'+id+'"><img src="'+url5+'/social/stumble.png" width="16" height="16" alt="Stumble Upon" /></a><a class="addthis_button_email" addthis:url="http://notessimo.net/song-'+id+'"><img src="'+url5+'/social/email.png" width="16" height="16" alt="Email" /></a></div><!-- AddThis Button END --><div class="embed"><span>URL </span><input type="text" readonly="" onclick="javascript:this.focus();this.select();" value="http://notessimo.net/song-'+id+'" class="inputbox"/></div><div class="embed"><span>Flash HTML </span><input type="text" readonly="" onclick="javascript:this.focus();this.select();" value="&lt;object width=&quot;485&quot; height=&quot;500&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.notessimo.net/Notessimo2.swf&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;param name=&quot;FlashVars&quot; value=&quot;id='+id+'&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.notessimo.net/Notessimo2.swf&quot; type=&quot;application/x-shockwave-flash&quot; FlashVars=&quot;id='+id+'&quot; width=&quot;485&quot; height=&quot;500&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/embed&gt;&lt;/object&gt;" class="inputbox"/></div><div class="embed"><span>Widget HTML </span><input type="text" readonly="" onclick="javascript:this.focus();this.select();" value="&lt;script type=&quot;text/javascript&quot; src=&quot;http://notessimo.net/widget.js?id='+id+'&quot;&gt;&lt;/script&gt;" class="inputbox"/></div><div class="embed"><span>BBCode </span><input type="text" readonly="" onclick="javascript:this.focus();this.select();" value="[notessimo]'+id+'[/notessimo]" class="inputbox"/></div>';

	d.style.height = "120px";
	
	addthis.button(".addthis_button");
	addthis.toolbox(d);

	d = document.getElementById('ss'+id);
	var olddiv = d.parentNode;
	olddiv.removeChild(d);
}

// Open in a new Window
function openNotessimo(id)
{
	if ( lastID != -1 )
	{
		var d = document.getElementById('notessimo'+lastID);
	  	var olddiv = d.parentNode;
	  	olddiv.removeChild(d);
		
		olddiv.innerHTML = '<div id="n'+lastID+'"><a href="javascript: playNotessimo('+lastID+')">Play</a></div><div class="notessimoOr">or</div><div><a href="javascript: openNotessimo('+lastID+')">Play in a new window</a></div>';
	}
	
	lastID = -1;

	html = url5+'/misc/window.php?id='+id;
	
	w = 650;
	h = 500;
	w += 32;
	h += 96;

	wleft = (screen.width - w) / 2;
	wtop = (screen.height - h) / 2;

	if (wleft < 0) {
		w = screen.width;
		wleft = 0;
	}
	if (wtop < 0) {
		h = screen.height;
		wtop = 0;
	}

	win = window.open(html,'Notessimo','width='+w+',height='+h+',left='+wleft+',top='+wtop+',directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0,resizable=1');
	win.resizeTo(w, h);
	win.moveTo(wleft, wtop);
	win.focus();
}

// Play Notessimo
function writeNotessimo(id){
	var flashvars = {};
	if (id != 0) {
		flashvars.id = id;
	}
	var params = {};
	var attributes = {};
		attributes.id = "notessimo";
		attributes.name = "notessimo";
	swfobject.embedSWF("/files/notessimo.swf", "notessimoSWF", "100%", "100%", "9.0.0", "/files/expressInstall.swf", flashvars, params, attributes);
}

// Play Notessimo
function playNotessimo(id){
	// Kill all other SWF
	if ( lastID != -1 )
	{
		var d = document.getElementById('notessimo'+lastID);
	  	var olddiv = d.parentNode;
	  	olddiv.removeChild(d);
		
		olddiv.innerHTML = '<div id="n'+lastID+'"><a href="javascript: playNotessimo('+lastID+')">Play</a></div><div class="notessimoOr">or</div><div><a href="javascript: openNotessimo('+lastID+')">Play in a new window</a></div>';
	}
	lastID = id;
	
	// Add the new SWF
	var flashvars = {};
	if (id != 0) {
		flashvars.id = id;
		flashvars.autoPlay = true;
	}
	var params = {};
	var attributes = {};
		attributes.id = "notessimo" + id;
		attributes.name = "notessimo" + id;
	swfobject.embedSWF(url5+"/files/notessimo.swf", "n" + id, "485", "500", "9.0.0", url5+"/files/expressInstall.swf", flashvars, params, attributes);
}

// Rate a song !
function updateRating(type, power){
	switch(type) {
		case 1:
			vote = parseInt(document.getElementById("rate").value);
			nrating = parseInt(document.getElementById("nrating").innerHTML);
			document.getElementById("nrating").innerHTML = nrating+1;
			document.getElementById("ratingf").innerHTML = ((p_rating+vote)/((n_rating+power)*5)*5).toPrecision(3);
			alert(voted_1+" "+vote+", "+voted_2+" !");
			break;
		default:
			alert(vote_once+" !");
			break;
	}
}

function rate(id) {
	rateWindow = window.open("update/rate.php?rate="+document.getElementById("rate").value+"&id="+id, "", "width=1,height=1");
}

function getkey(e)
{
	if (window.event)
		return window.event.keyCode;
	else if (e)
		return e.which;
	else
		return null;
}

function goodchars(e, goods)
{
	var key, keychar;
	key = getkey(e);
	if (key == null) return true;

	// get character
	keychar = String.fromCharCode(key);
	keychar = keychar.toLowerCase();
	goods = goods.toLowerCase();

	// check goodkeys
	if (goods.indexOf(keychar) != -1)
		return true;

	// control keys
	if ( key==null || key==0 || key==8 || key==9 || key==13 || key==27 )
   		return true;

	// else return false
	return false;
}

function num(e) {
	return goodchars(e, '0123456789');
}

function changeEmbed(id) {
	document.getElementById("embed_code").value = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="Notessimo'+id+'" width="'+document.getElementById("embed_w").value+'" height="'+document.getElementById("embed_h").value+'" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"><param name="movie" value="'+notessimoURL2+'" /><param name="quality" value="high" /><param name="bgcolor" value="'+notessimoBG+'" /><param name="allowScriptAccess" value="sameDomain" /><param name="FlashVars" value="id='+id+'"><embed src="'+notessimoURL2+'" quality="high" bgcolor="'+notessimoBG+'" width="'+document.getElementById("embed_w").value+'" height="'+document.getElementById("embed_h").value+'" name="Notessimo'+id+'" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" FlashVars="id='+id+'" pluginspage="http://www.adobe.com/go/getflashplayer"></embed></object>';
}

function changeWH(id) {
	switch (document.getElementById("scale").value) {
		case "Huge":
			document.getElementById("embed_w").value = 800;
			document.getElementById("embed_h").value = 600;
			break;
		case "Big":
			document.getElementById("embed_w").value = 586;
			document.getElementById("embed_h").value = 530;
			break;
		case "Normal":
			document.getElementById("embed_w").value = 485;
			document.getElementById("embed_h").value = 500;
			break;
		case "Small":
			document.getElementById("embed_w").value = 468;
			document.getElementById("embed_h").value = 450;
			break;
		case "Tiny":
			document.getElementById("embed_w").value = 300;
			document.getElementById("embed_h").value = 350;
			break;
	}
	changeEmbed(id);
}

function changePlayWH() {
	switch (document.getElementById("play_scale").value) {
		case "Huge":
			document.getElementById("play_w").value = 1300;
			document.getElementById("play_h").value = 850;
		break;
		case "Big":
			document.getElementById("play_w").value = 1000;
			document.getElementById("play_h").value = 720;
		break;
		case "Normal":
			document.getElementById("play_w").value = 724;
			document.getElementById("play_h").value = 530;
		break;
		case "Small":
			document.getElementById("play_w").value = 586;
			document.getElementById("play_h").value = 530;
		break;
		case "Tiny":
			document.getElementById("play_w").value = 468;
			document.getElementById("play_h").value = 450;
		break;
	}
}

function add_ad(name) {
	var ad_hidden = document.getElementById("ad_"+name+"_hidden");
	var ad_show = document.getElementById("ad_"+name);
	ad_show.innerHTML = "";
	ad_show.appendChild(ad_hidden);
	ad_hidden.className = "show";
}

function loadNotessimo() {
	window.onbeforeunload = confirmExit;
}	

function confirmExit() {
	return str_exit+".";
}

function $(v,o) { return((typeof(o)=='object'?o:document).getElementById(v)); }
function $S(o) { return((typeof(o)=='object'?o:$(o)).style); }
function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
function abPos(o) { var o=(typeof(o)=='object'?o:$(o)), z={X:0,Y:0}; while(o!=null) { z.X+=o.offsetLeft; z.Y+=o.offsetTop; o=o.offsetParent; }; return(z); }
function XY(e,v) { var o=agent('msie')?{'X':event.clientX+document.body.scrollLeft,'Y':event.clientY+document.body.scrollTop}:{'X':e.pageX,'Y':e.pageY}; return(v?o[v]:o); }

if (!Array.prototype.indexOf)
{
  Array.prototype.indexOf = function(elt /*, from*/)
  {
    var len = this.length;

    var from = Number(arguments[1]) || 0;
    from = (from < 0)
         ? Math.ceil(from)
         : Math.floor(from);
    if (from < 0)
      from += len;

    for (; from < len; from++)
    {
      if (from in this &&
          this[from] === elt)
        return from;
    }
    return -1;
  };
}

star={};
var stat;

star.mouse = function(e,o) 
{ 
	if ( star.stop || isNaN(star.stop) ) 
	{ 
		star.num=o.id.substr(4);
		
		if ( star.lock.indexOf( star.num ) == -1 && star.num != -1 )
		{
			star.stop=0;
		
			document.onmousemove = function( e ) 
			{ 
				var n=star.num;
			
				if ( star.lock.indexOf( n ) == -1 && star.num != -1 )
				{
					var p=abPos($('star'+n)), x=XY(e), oX=x.X-p.X, oY=x.Y-p.Y;
					
					if ( oX<1 || oX>star.maxW || oY<0 || oY>star.maxH ) 
					{ 
						star.stop=1; star.revert(); 
					}
					else 
					{
						// Round to 20%
						oX = Math.ceil(oX / star.maxW * 5) * (star.maxW / 5);
						
						$S('starCur'+n).width=oX+'px';
					}
				}
				else
				{
					star.stop=1;
					document.onmousemove='';
				}
			};
		}
	} 
};

star.update=function(e,o) 
{ 
	var n=star.num;
	
	if ( star.lock.indexOf( n ) == -1 && star.num != -1 )
	{
		var p=abPos($('star'+n)), x=XY(e), oX=x.X-p.X, oY=x.Y-p.Y; star.num=o.id.substr(4);
		
		if ( oX<1 || oX>star.maxW || oY<0 || oY>star.maxH ) 
		{ 
			// Nothing...
		}
		else 
		{
			var power = 1;
			var p_rating = Math.ceil(oX / star.maxW * 5);
		
			// Round to 20%
			star.lock.push( n );
			jx.load( url5+'/update/rate.php?id=' + star.num + '&rate=' + p_rating, function( data )
			{
				// Do nothing :P
			});
			
			// Update HTML
			$('starCur'+n).className = "curr2";
			
			nPoints = parseInt(document.getElementById("rate"+n).title.split("|")[0]);
			nPower = parseInt(document.getElementById("rate"+n).title.split("|")[1]);
			nrating = parseInt(document.getElementById("vote"+n).innerHTML);
			
			if ( nrating+1 > 1 )
			{
				document.getElementById("vote"+n).innerHTML = nrating+1 + " votes";
			}
			else
			{
				document.getElementById("vote"+n).innerHTML = nrating+1 + " vote";
			}
			
			document.getElementById("rate"+n).innerHTML = ((nPoints+p_rating)/((nPower+power)*5)*5).toPrecision(3);
		}
	}
};

star.revert=function() 
{ 
	var n=star.num, v=parseInt($('starCur'+n).title);
	
	$S('starCur'+n).width=Math.round(v*star.maxW/100)+'px';

	document.onmousemove='';
};



star.num = 0;
	star.maxW = 25*5;
	star.maxH = 25;
	star.lock = [];
	url5 = 'http://notessimo.net';



document.write('<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=Starburst"></script><style type="text/css" media="screen">object { outline:none; }  	 .notessimoWidget h3 { 	margin-top: 0px; 	margin-bottom: 3px; 	padding-bottom: 0px; 	padding-bottom: 0px; 	font-size: 0.75em; 	line-height: 0.75em; 	text-align: left; 	position: static; 	padding-left: 5px; 	font-weight: bold; 	font-family: Arial,Helvetica,sans-serif; 	text-transform: uppercase; }  .notessimoWidget { 	text-align: center; 	width: 485px; 	margin-left: auto; 	margin-right: auto; 	line-height: 1em; 	margin-top: 8px; }  .notessimoOr { 	font-size: 0.9em; 	text-transform: lowercase; 	margin-top: 4px; 	margin-bottom: 4px; }  .notessimoWidget a { 	display: block; 	text-align: center; 	margin: 6px; }  .notessimoBox { 	width: 485px; 	text-align: center; 	border: 1px solid #666666; 	font-weight: bold; 	font-family: Arial,Helvetica,sans-serif; 	text-transform: uppercase; 	-moz-border-radius: 5px; 	-webkit-border-radius: 5px; }  blockquote .notessimoWidget { 	display: none; }  .notessimoQuote { 	display: none; 	text-align:center; 	text-transform: uppercase; 	font-weight: bold; 	font-family: Arial,Helvetica,sans-serif; 	font-size: 0.9em; 	border: 1px solid #666666; 	-moz-border-radius: 5px; 	-webkit-border-radius: 5px; }  blockquote { 	-moz-border-radius: 5px; 	-webkit-border-radius: 5px; }  blockquote .notessimoQuote { 	display: block; }  .notessimoDesc { 	text-align: left; 	font-size: 0.8em; 	padding: 4px; 	padding-bottom: 0px; 	margin-bottom: 10px; 	text-transform: none; }  .nEmpty { 	height: 15px; }  .sharing { 	clear: both; 	text-align: left; 	font-size: 0.85em; 	padding: 6px; 	text-transform: none; }  .sharing a { 	display: inline; 	margin: 0px; 	margin-left: 0px; 	margin-right: 4px; } .sharing a.addthis_button { 	margin-top: 2px; }  .notessimoPlay { 	display:table-cell; 	vertical-align: middle; 	height: 100%; 	width: 485px; 	height: 80px; 	clear:both; 	line-height: 0.8em; }  .notessimoDesc i { }  .notessimoDesc p { 	margin-bottom: 0px; 	margin-left: 5px; 	font-style:italic; }  .songPost .notessimoLink { 	display: none; }  .songPost .notessimoBy { 	display: none; }  .songPost .notessimoWidget h3 { 	display: none; }  .notessimoDesc span { 	font-weight: bold; 	font-family: Arial,Helvetica,sans-serif; 	text-transform: uppercase; 	font-size: 0.9em; }  .notessimoListen { 	font-family: Arial,Helvetica,sans-serif; 	font-weight: bold; 	text-align: right; 	padding-bottom: 2px; 	padding-right: 5px; 	font-size: 0.8em; 	text-transform: none; 	float: right; }  .notessimoComment { 	clear: both; }  .notessimoShare a { 	display: inline; }  .songPost .notessimoShare { 	display: none; }  .notessimoShare { 	font-family: Arial,Helvetica,sans-serif; 	font-weight: bold; 	text-align: left; 	padding-bottom: 2px; 	padding-right: 5px; 	clear:both; 	float: left; 	font-size: 0.8em; 	text-transform: none; }  .notessimoHead { 	height: 15px; 	font-weight: bold; 	font-family: Arial,Helvetica,sans-serif; 	text-transform: none; 	font-size: 0.8em; 	padding: 2px 5px; }  .notessimoGenre { 	float: left; 	text-transform: uppercase; 	text-align: left; }  .notessimoGenre a { 	text-transform: none; 	display: inline; 	margin-left: 4px; }  .notessimoRate { 	float: right; }  .noteRate { 	margin-bottom: 3px; 	text-align: right; 	margin-right: 2px; }  .notessimoLink { 	text-transform: none; 	font-weight: bold; 	font-family: Arial,Helvetica,sans-serif; 	font-size: 0.9em; 	float: left; }  .notessimoBy { 	text-transform: uppercase; 	float: right; 	font-weight: bold; 	font-family: Arial,Helvetica,sans-serif; 	font-size: 0.7em; 	margin: 2px; 	margin-top: 0px; }  .notessimoLink { 	margin: 2px !important; }  object { outline:none; }  .addthis_toolbox .custom_images a {     width: 16px;     height: 16px;     margin: 0;     padding: 0; }  .addthis_toolbox .custom_images a:hover img {     opacity: 1; }  .addthis_toolbox .custom_images a img {     opacity: 0.75; }  .content input.inputbox, .notessimoWidget input.inputbox { 	width: 340px; 	font-size: 0.9em; 	float: left; 	margin-top: 4px; } div.embed { 	clear: left; }  div.embed span { 	position: relative; 	top: 2px; 	display: block; 	width: 110px; 	float: left; 	 	margin-top: 4px; 	margin-bottom: 4px; } 			 /* Rating stars ---------------------------------------- */  /* the whole class for text - div */ .star  { 	/* start edit */ 	font-size: 12px; 	font-family: Arial, Helvetica, sans-serif; 	color: #888; 	float: right; 	margin-top: 4px; 	/* end edit */ } /* The text under the stars, like You can re-rate this article or Not Yet rated, Poor, Good etc. */ .star div.user { 	/* start edit */ 	font-size: 10px; 	font-family: Arial, Helvetica, sans-serif; 	color: #888; 	/* end edit */ 	position: relative; 	float: left; } /* when user already rated, config full */ .star ul.star2_full { 	list-style: none; 	margin: 0; 	padding: 0; 	width: 169px; 	height: 25px; 	top: -5px; 	position: relative; 	float: left; 	background: url("http://notessimo.net/styles/nightmare/theme/images/stars.gif") repeat-x; 	cursor: default; } /* when user already rated, config half */ .star ul.star2_half { 	list-style: none; 	margin: 0; 	padding: 0; 	width: 125px; 	height: 25px; 	top: -5px; 	position: relative; 	float: left; 	background: url("http://notessimo.net/styles/nightmare/theme/images/stars.gif") repeat-x; 	cursor: default; }  /* DO NOT EDIT */  /* the image */ .star ul { 	list-style: none; 	margin: 0; 	padding: 0; 	top: -5px; 	position: relative; 	float: left; 	background: url("http://notessimo.net/styles/nightmare/theme/images/stars.gif") repeat-x; 	cursor: pointer; } /* the image */ .star li { 	padding: 0; 	margin: 0; 	float: left; 	display: block; 	width: 125px; 	height: 25px; 	text-decoration: none; 	text-indent: -9000px; 	z-index: 20; 	position: absolute; } /* */ .star li.curr { 	background: url("http://notessimo.net/styles/nightmare/theme/images/stars.gif") left 25px; 	font-size: 1px; 	margin-left: 0px; } .star li.curr2 { 	background: url("http://notessimo.net/styles/nightmare/theme/images/stars.gif") left 50px; 	font-size: 1px; 	margin-left: 0px; } .clear{ clear:both;} 			</style><div class="notessimoWidget"><h3>Final Fantasy VII-Opening Bombing Mission by  Clonefan841</h3><div class="notessimoBox"><div class="notessimoHead"><div class="notessimoGenre">Genre: <a href="http://notessimo.net">Unspecified</a><br/><a href="http://notessimo.net/convert.php">Download MP3 / WAV / MP4 / OGG</a></div><div class="notessimoRate"><div class="noteRate">Rating: <span id="rate41900" title="154|33">4.67</span> (<span id="vote41900">33 votes</span>)</div><div class="clear"> </div><div name="star" class="star"><ul id="star41900" class="star2_half" onmousedown="javascript:star.update(event,this)" onmousemove="javascript:star.mouse(event,this)" title="Rate This!"><li id="starCur41900" class="curr" title="93" style="width: 116.25px;"></li></ul></div></div></div><div class="clear"> </div><div class="notessimoPlay"><div id="n41900"><a href="javascript: playNotessimo(41900)">Play</a></div><div class="notessimoOr">or</div><div><a href="javascript: openNotessimo(41900)">Play in a new window</a></div></div><div class="notessimoDesc"><span>Description:</span><p><i>No description</i></p></div><div id="share41900" class="sharing"></div><div class="notessimoShare" id="ss41900"><a href="javascript: openShare(41900)">Share [+]</a></div><div class="notessimoListen">Listens: 393</div><div class="nEmpty"><!-- --></div></div><div class="notessimoComment"><a href="http://notessimo.net/song-41900" class="notessimoLink">Post comments on the song\'s page !</a></div><div class="notessimoBy">Submitted by <a href="http://notessimo.net/memberlist.php?mode=viewprofile&u=949" style="color:#00AA00; display: inline; margin: 0px;">Clonefan841</a></div></div> <div class="clear" style="margin-bottom: 4px;"><!-- --> </div> ')