jQuery(document).ready(function(){ 
	jQuery(".tx-jkpoll-pi1").click(function(){
		sendRequest4IVW(ivw_tag+'/Voting');
	});
	
	jQuery(".tx-rgsmoothgallery-pi1").click(function(){
		sendRequest4IVW(ivw_tag+'/Clicker');
	});

  jQuery(".news-image-gallery").click(function(){
		sendRequest4IVW(ivw_tag+'/Clicker');
	});
  
  jQuery(".clicker_link").click(function(){
		sendRequest4IVW(ivw_tag+'/Clicker');
	});
  
  
});

function sendRequest4IVW(art) {
	/*
	jQuery.get("http://www.energy.de/ajax4ivw.php", function (data) {
		jQuery('#ajaxframe').contents().find('#ajaxframeContent').html(jQuery(data).text());
	
	
	} ,"HTML");
	*/
	//jQuery('#ajaxframe').contents().find('#ajaxframeContent').load("http://www.energy.de/ajax4ivw.php");
	jQuery('#ivwscript').load("http://www.energy.de/ajax4ivw.php?account="+account+"&tag="+escape(art));
	
	
}