// JavaScript Document
$(document).ready(function(){ 	
		if(typeof ban=="undefined")
			ban="315Ö®´°×ÓÆµµÀ"
		$("body").append("<div id='fluxifrem'/>");
		$("*[dis]:not(a)").each(function(){
			var vars = $(this).attr("dis");
			$(this).find("a").click(function(){
				if(typeof($(this).attr("dis"))=='undefined')
				postflux(vars,$(this));	
			});
		});
		$("a[dis],img[dis]").click(function(){
				postflux($(this).attr("dis"),$(this));	
		});
		var v="";
		if(typeof($("body").attr("dis"))=="undefined" || $("body").attr("dis")=="")
			v= window.document.title.substring(0,7);
		else
			v = $("body").attr("dis");
		postflux(v,0);
});
var postflux = function(vars,o){
	var text;
	if(o==0){
		text=window.location.href.split("com/")[1];
	}else{
		text = o.attr('href');
		if(text =='' || typeof(text)=='undefined' || text == null)
		text = o.attr('src');
	}	
	if(text !='' && typeof(text)!='undefined' && text != null)
	var url = "pname="+encodeURIComponent(ban)+"&varban="+encodeURIComponent(vars)+"&linktxt="+encodeURIComponent(text);
	//alert(url);
	$("#fluxifrem").html("<iframe  scrolling='no' marginheight='0'\
						 src='http://www.315win.com/flux/index/index_flux.ashx?"+url+"'\
						 frameborder='0' width='0' height='0'></iframe>");
	$("#fluxifrem").html("");//http://www.315win.com/flux/index/index_flux.ashx
}