(function(){

if(typeof(category) == "undefined" || category == ''){
	return;
}

if(typeof(expandtabs) == "undefined" || "false" != expandtabs){
	document.write("<script type='text/javascript' src='http://shenghuo.j.cn/js/frameCrossDomainHost.js'></script>");
}
var ifwidth = "100%";
if(typeof(width) != "undefined"){
	if(width < 600)
		ifwidth = 600;
	else if(width > 800)
		ifwidth = 800;
	else
		ifwidth = width;
}
if(typeof(page_size) == "undefined"){
	page_size = '2';
}
if(page_size == '1'){
	if(union_client == '2303' || union_client == '2304' || union_client == '2310' || union_client == '2325' 
	|| union_client == '2295' || union_client == '2312' || union_client == '2282'){
		page_size = '3';
	}
}
var ifheight = 0;
if(typeof(expandtabs) != "undefined" && "false" == expandtabs){
	var page_size_num = parseInt(page_size);
	if(!isNaN(page_size_num)){
		ifheight = 75 * page_size_num;
	}
}

document.write("<iframe onload='try{FrameManager.registerFrame(this);}catch(err){}' name='jcn_iframe' id='jcn_iframe' src='' scrolling='no' frameborder='0' width='"+ifwidth+"' height='"+ifheight+"'></iframe>");
document.write("<script type='text/javascript'>");

var srcurl='http://shenghuo.j.cn/index.htm?method=colist&function=fuwu&type=embed&border=none';
srcurl += '&category='+category+'&uc='+union_client;
srcurl += '&w=56&l=56&l2=40&o=no&right=0&page=1';
srcurl += '&pageSize='+page_size+'&ifFilter=0';
if(typeof(langtaojin_union_auto_city) == 'undefined'){
	if(typeof(city) != "undefined" && typeof(langtaojin_union_city) == 'undefined'){
		srcurl += "&cityId=" + city;
	}else if(typeof(langtaojin_union_city) != 'undefined'){
		srcurl += "&cityId=" + langtaojin_union_city;
	}
}
if(typeof(provider) != "undefined"){
	srcurl += "&provider=" + provider;
}else{
	srcurl += "&provider=0";
}
if(typeof(langtaojin_union_nav) != "undefined"){
	srcurl += "&nav=" + langtaojin_union_nav;
}
if(typeof(filter) != "undefined"){
	srcurl += "&filter=" + filter;
}
if(typeof(width) != "undefined"){
	srcurl += "&width=" + width;
}
if(typeof(expandtabs) != "undefined"){
	srcurl += "&expandtabs=" + expandtabs;
}
var referrer = encodeURIComponent(document.referrer);
srcurl += "&referrer=" + referrer;
srcurl += '&frameId=jcn_iframe&f=union&fromserver=union';
if(typeof(expandtabs) == "undefined" || "false" != expandtabs){
	srcurl += "#"+window.location.href.split('#')[0];
}
//srcurl += '&frameId=jcn_iframe&f=union&fromserver=union#'+window.location.href.split('#')[0];

document.write("document.getElementById('jcn_iframe').src='"+srcurl+"';");
document.write("</script>");

document.write("<script src='http://t.uctrac.com/js/t.js?category="+category+'&uc='+union_client+"&referrer="+referrer+"&rand="+Math.random()+"'></script>");

})();

