/* Counts a pageview */
function countPageView(token){
	$.get('/backend/countpageview.php?token='+token, function(response){});
}


/* Go when ready */
$(document).ready(function(){

	/* Prevent Framing */
	if (top.location != self.location) {
		top.location = self.location;
	}

	/* Count Pageview */
	if (typeof token != 'undefined') {
		setTimeout ('countPageView(\''+token+'\')', 2000);
	}

	$("ul.tabs").tabs("div.panes > div.pane", {
		initialIndex:'1',
		onBeforeClick: function(event, tabIndex) { 
			this.getCurrentPane().addClass("current"); 
		} 
	});
	
	$("#show_links a").click(function(){
		$("#show_links").hide();
		$("#hide_links").show();
		$("#image_links").show();
		return false;
	})		
});

