var f=1;
// Triggered when dom is ready.
// updated the hit id,  loads banner data onto each div.........

$(document).ready(function(){

		$('.powerpro').each( function (){

			$(this).load('powerProRotator.php');
			$(this).show();
		});


	});
$(document).ready(function(){

	$('.bannerad,.bav1').each( function (){

		$(this).html("<iframe src='banrotator.php?r="+Math.random()+"' scrolling='no' frameborder='0' height='60' width='488'></iframe>");
		$(this).show();
	});


});
$(document).ready(function(){

	$('.textad,.tav1').each( function (){

		$(this).load("links.php?type=1&html");
		$(this).show("drop", { direction: "down" }, 1000);
	});

	$('.alertmessage').each( function (){
		$(this).effect("highlight",{color:'#FF6600'}, 1500);
	});

});


$(document).ready(function(){
	$('.sub').each( function(){
		idd = $(this).attr('id');

		if(idd != "#container" && idd != '_firebugConsole')			// confirmation
		{
			input_id = idd.split("d");
			div_input_id=input_id[1];
			hrids = div_input_id;

			$.get("htmlrotator.php", { id: div_input_id, hrid: hrids },
			function(result_data){

				$("#d"+div_input_id).html(result_data);
				//$("#"+divsId).html(content);
			});
		}

	});
});
// Trigger when clicked on a div... (to update the click id)
function chkstatus(div_id)
{
	id_split = div_id.split('d');
	id = id_split[1];

	$.get("htmlrotator.php", { clickid: id },
		function(return_value){
			// -- //

		}
	);
}

function registerClick(pwr_pro_id)
{
	$.get("powerProRotator.php", { clickid: pwr_pro_id },
		function(return_value){
		// -- //

		}
	);
}
