
// Variables
var site_url = "http://www.2012euro.org";
var ratings_ajax_url = "/wp-content/plugins/postratings/postratings.php";
var ratings_text_wait = "Please rate only 1 post at a time.";
var ratings_image = "stars";
var ratings_max = "5";
var ratings_mouseover_image = new Image();
ratings_mouseover_image.src = site_url + "/wp-content/plugins/postratings/images/" + ratings_image + "/rating_over.gif";
var ratings = new sack(ratings_ajax_url);
var post_id = 0;
var post_rating = 0;
var rate_fadein_opacity = 0;
var rate_fadeout_opacity = 100;
var is_ie = (document.all && document.getElementById);
var is_moz = (!document.all && document.getElementById);
var is_opera = (navigator.userAgent.indexOf("Opera") > -1);
var is_being_rated = false;


// Post Ratings Fade In Text
function rade_fadein_text() {
	if(rate_fadein_opacity < 100) {
		rate_fadein_opacity += 10;
		if(is_opera)  {
			rate_fadein_opacity = 100;
		} else	 if(is_ie) {
			document.getElementById('post-ratings-' + post_id).filters.alpha.opacity = rate_fadein_opacity;
		} else	 if(is_moz) {
			document.getElementById('post-ratings-' + post_id).style.MozOpacity = (rate_fadein_opacity/100);
		}
		setTimeout("rade_fadein_text()", 100); 
	} else {
		rate_fadein_opacity = 100;
		rate_unloading_text();
		is_being_rated = false;
	}
}


// When User Mouse Over Ratings
function current_rating(id, rating, rating_text) {
	if(!is_being_rated) {
		post_id = id;
		post_rating = rating;
		for(i = 1; i <= rating; i++) {
			document.images['rating_' + post_id + '_' + i].src = eval("ratings_mouseover_image.src");
		}
		if(document.getElementById('ratings_' + post_id + '_text')) {
			document.getElementById('ratings_' + post_id + '_text').style.display = 'inline';
			document.getElementById('ratings_' + post_id + '_text').innerHTML = rating_text;
		}
	}
}


// When User Mouse Out Ratings
function ratings_off(rating_score, insert_half) {
	if(!is_being_rated) {
		for(i = 1; i <= ratings_max; i++) {
			if(i <= rating_score) {
				document.images['rating_' + post_id + '_' + i].src = site_url + '/wp-content/plugins/postratings/images/' + ratings_image + '/rating_on.gif';
			} else if(i == insert_half) {
				document.images['rating_' + post_id + '_' + i].src = site_url + '/wp-content/plugins/postratings/images/' + ratings_image + '/rating_half.gif';
			} else {
				document.images['rating_' + post_id + '_' + i].src = site_url + '/wp-content/plugins/postratings/images/' + ratings_image + '/rating_off.gif';
			}
		}
		if(document.getElementById('ratings_' + post_id + '_text')) {
			document.getElementById('ratings_' + post_id + '_text').style.display = 'none';
			document.getElementById('ratings_' + post_id + '_text').innerHTML = '';
		}
	}
}


// Post Ratings Loading Text
function rate_loading_text() {
	document.getElementById('post-ratings-' + post_id + '-loading').style.display = 'block';
}


// Post Ratings Finish Loading Text
function rate_unloading_text() {
	document.getElementById('post-ratings-' + post_id + '-loading').style.display = 'none';
}


// Process Post Ratings
function rate_post() {	
	if(!is_being_rated) {
		is_being_rated = true;
		rate_loading_text();
		rate_process();		
	} else {		
		alert(ratings_text_wait);
	}
}


// Process Post Ratings
function rate_process() {
	if(rate_fadeout_opacity > 0) {
		rate_fadeout_opacity -= 10;
		if(is_opera) {
			rate_fadein_opacity = 0;
		} else if(is_ie) {
			document.getElementById('post-ratings-' + post_id).filters.alpha.opacity = rate_fadeout_opacity;
		} else if(is_moz) {
			document.getElementById('post-ratings-' + post_id).style.MozOpacity = (rate_fadeout_opacity/100);
		}
		setTimeout("rate_process()", 100); 
	} else {
		rate_fadeout_opacity = 0;
		ratings.reset();
		ratings.setVar("pid", post_id);
		ratings.setVar("rate", post_rating);
		ratings.method = 'GET';
		ratings.element = 'post-ratings-' + post_id;
		ratings.onCompletion = rade_fadein_text;
		ratings.runAJAX();
		rate_fadein_opacity = 0;
		rate_fadeout_opacity = 100;
	}
}<div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Lech negacja logiczna mógł wylosować lepiej!&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Ebi wraca aż do biuro kadr. Negacja logiczna wewnątrz wcześnie?&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Vlog. Początek gwiazdy: Maksym Kujon&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Fabio Capello odejdzie na emeryturę po Euro 2012&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Polscy piłkarze po meczu spośród Australią&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Grzegorzewski rozwiązał kontrakt spośród Cracovią&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Rekordowe wpływy Realu Madryt&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Instruktor Legii Maciej Skorża spotkał się spośród kibicami&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Cała Republika francuska świętuje \&quot;zmartwychwstanie\&quot;&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Podarunek na odkrywczy pora roku Ligi Mistrzów&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Piotr Brożek poszkodowany&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Mertesacker negacja logiczna zagra spośród Tottenhamem&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Lech Poznań został członkiem ECA&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Globisz: Podoba mi się ofensywna uciecha biuro kadr&#039;</code></p>
			</div><div id='error'>
			<p class='wpdberror'><strong>WordPress database error:</strong> [Illegal mix of collations (latin2_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation &#039;=&#039;]<br />
			<code>SELECT ID FROM wp_posts WHERE post_title = &#039;Nerlinger: Schweinsteiger również Lahm negacja logiczna są na sprzedaż&#039;</code></p>
			</div><br />
<b>Fatal error</b>:  Allowed memory size of 94371840 bytes exhausted (tried to allocate 71 bytes) in <b>/home/euro2012/2012euro.org/wp-content/plugins/google-sitemap-generator/sitemap.php</b> on line <b>1134</b><br />
