var fixedurl = "http://info.stockstar.com/info/100x100/syfb20160224.jpg"; var fixedoverurl = ""; var clickUrl = "http://same.stockstar.com/c?z=stockstar&la=0&si=1&cg=13&c=67&ci=1&or=1&l=179&bg=178&b=176&u=http://pub.stockstar.com/feedback/neican/3/?tgcode=syfb"; var target = "_blank"; var clicktag = 0; var subclicktag = 0; var fixedwmode = 2 ? (2 == 1 ? "opaque" : "window" ) : "transparent"; var fixedcreativetype_352da88bcca86ed1370f5805d08a6a54 = "picture"; var fixedovercreativetype_352da88bcca86ed1370f5805d08a6a54 = "picture"; var fixedwidth_352da88bcca86ed1370f5805d08a6a54 = 100; var fixedheight_352da88bcca86ed1370f5805d08a6a54 = 100; var fixedoverwidth_352da88bcca86ed1370f5805d08a6a54 = 150; var fixedoverheight_352da88bcca86ed1370f5805d08a6a54 = 150; var fixedidsuffix = "352da88bcca86ed1370f5805d08a6a54"; var fixedposition_352da88bcca86ed1370f5805d08a6a54 = "leftbottom"; var fixedcloseposition_352da88bcca86ed1370f5805d08a6a54 = "righttop"; var fixedaclose_352da88bcca86ed1370f5805d08a6a54 = "0"; if (fixedaclose_352da88bcca86ed1370f5805d08a6a54 == "0"||fixedaclose_352da88bcca86ed1370f5805d08a6a54 == "") { fixedaclose_352da88bcca86ed1370f5805d08a6a54 = "9999"; } var fixedpaddingx_352da88bcca86ed1370f5805d08a6a54 = 10; var fixedpaddingy_352da88bcca86ed1370f5805d08a6a54 = 10; var fixedhassubstitute_352da88bcca86ed1370f5805d08a6a54 = false; var fixedfollowscroll_352da88bcca86ed1370f5805d08a6a54 = true; var fixedid = "flow-ad-"+fixedidsuffix; var fixedoverid = "flow-detail-ad-"+fixedidsuffix; var bound_left_fixed = bound_top_fixed = 0; var bound_right_fixed_352da88bcca86ed1370f5805d08a6a54; var bound_bottom_fixed_352da88bcca86ed1370f5805d08a6a54; var step_x_fixed; var step_y_fixed; var x_flag_fixed; var y_flag_fixed; var current_x_fixed_352da88bcca86ed1370f5805d08a6a54; var current_y_fixed_352da88bcca86ed1370f5805d08a6a54; var fixed_html; var fixed_over_html; var custom_close_flag = ""; var main_content_width_352da88bcca86ed1370f5805d08a6a54 = "0"?"0":0; var close_icon_img = ""; var fixedswitchid = "flow-switch-image-"+fixedidsuffix; var fixedswitchwidth_352da88bcca86ed1370f5805d08a6a54 = ""; var fixedswitchheight_352da88bcca86ed1370f5805d08a6a54 = ""; var fixedhasswitch_352da88bcca86ed1370f5805d08a6a54 = "0"; fixedhasswitch_352da88bcca86ed1370f5805d08a6a54 = parseInt(fixedhasswitch_352da88bcca86ed1370f5805d08a6a54); var fixed_switch_html; var fixedswitchurl = ""; var flowfixed_switch_myturn_352da88bcca86ed1370f5805d08a6a54 = 0; var flowfixed_switch_replayed_352da88bcca86ed1370f5805d08a6a54 = 0; var flowfixed_switch_closed_352da88bcca86ed1370f5805d08a6a54 = 0; var flowfixed_switch_leftmargin_352da88bcca86ed1370f5805d08a6a54; var flowfixed_switch_topmargin_352da88bcca86ed1370f5805d08a6a54; var TS_352da88bcca86ed1370f5805d08a6a54; if (custom_close_flag == ""){ close_icon_img = "http://i.adsame.com/sammax/close3.png"; } else { close_icon_img = custom_close_flag; } if(fixedhasswitch_352da88bcca86ed1370f5805d08a6a54){ fixedhassubstitute_352da88bcca86ed1370f5805d08a6a54 = 0; } var getBrowserWidth_352da88bcca86ed1370f5805d08a6a54 = function(){ var de = document.documentElement; return ( de && de.clientWidth ) || document.body.clientWidth || window.innerWidth; }; var getBrowserHeight_352da88bcca86ed1370f5805d08a6a54 = function(){ var de = document.documentElement; return window.innerHeight || ( de && de.clientHeight ) || document.body.clientHeight; }; var init_fixedposition_352da88bcca86ed1370f5805d08a6a54 = function(){ bound_right_fixed_352da88bcca86ed1370f5805d08a6a54 = getBrowserWidth_352da88bcca86ed1370f5805d08a6a54(); bound_bottom_fixed_352da88bcca86ed1370f5805d08a6a54 = getBrowserHeight_352da88bcca86ed1370f5805d08a6a54(); var topmargin; topmargin = fixedswitchwidth_352da88bcca86ed1370f5805d08a6a54 >=70 ? 17 : 37; topmargin = parseInt(topmargin); if(fixedposition_352da88bcca86ed1370f5805d08a6a54 == "lefttop"){ current_x_fixed_352da88bcca86ed1370f5805d08a6a54 = fixedpaddingx_352da88bcca86ed1370f5805d08a6a54; current_y_fixed_352da88bcca86ed1370f5805d08a6a54 = fixedpaddingy_352da88bcca86ed1370f5805d08a6a54 + topmargin; } else if(fixedposition_352da88bcca86ed1370f5805d08a6a54 == "leftbottom"){ current_x_fixed_352da88bcca86ed1370f5805d08a6a54 = fixedpaddingx_352da88bcca86ed1370f5805d08a6a54; current_y_fixed_352da88bcca86ed1370f5805d08a6a54 = bound_bottom_fixed_352da88bcca86ed1370f5805d08a6a54 - fixedheight_352da88bcca86ed1370f5805d08a6a54 - fixedpaddingy_352da88bcca86ed1370f5805d08a6a54 - 20; if ( fixedcloseposition_352da88bcca86ed1370f5805d08a6a54 == "leftbottom" || fixedcloseposition_352da88bcca86ed1370f5805d08a6a54 == "rightbottom") { current_y_fixed_352da88bcca86ed1370f5805d08a6a54 = current_y_fixed_352da88bcca86ed1370f5805d08a6a54 - 10; } } else if(fixedposition_352da88bcca86ed1370f5805d08a6a54 == "righttop"){ current_x_fixed_352da88bcca86ed1370f5805d08a6a54 = bound_right_fixed_352da88bcca86ed1370f5805d08a6a54 - fixedwidth_352da88bcca86ed1370f5805d08a6a54 - fixedpaddingx_352da88bcca86ed1370f5805d08a6a54; current_y_fixed_352da88bcca86ed1370f5805d08a6a54 = fixedpaddingy_352da88bcca86ed1370f5805d08a6a54 + topmargin; } else if(fixedposition_352da88bcca86ed1370f5805d08a6a54 == "rightbottom"){ current_x_fixed_352da88bcca86ed1370f5805d08a6a54 = bound_right_fixed_352da88bcca86ed1370f5805d08a6a54 - fixedwidth_352da88bcca86ed1370f5805d08a6a54 - fixedpaddingx_352da88bcca86ed1370f5805d08a6a54 - 0; current_y_fixed_352da88bcca86ed1370f5805d08a6a54 = bound_bottom_fixed_352da88bcca86ed1370f5805d08a6a54 - fixedheight_352da88bcca86ed1370f5805d08a6a54 - fixedpaddingy_352da88bcca86ed1370f5805d08a6a54 - 20; if ( fixedcloseposition_352da88bcca86ed1370f5805d08a6a54 == "leftbottom" || fixedcloseposition_352da88bcca86ed1370f5805d08a6a54 == "rightbottom") { current_y_fixed_352da88bcca86ed1370f5805d08a6a54 = current_y_fixed_352da88bcca86ed1370f5805d08a6a54 - 10; } } }; var init_switch_position_352da88bcca86ed1370f5805d08a6a54 = function(){ if (fixedposition_352da88bcca86ed1370f5805d08a6a54 == "lefttop"){ flowfixed_switch_leftmargin_352da88bcca86ed1370f5805d08a6a54 = 0; flowfixed_switch_topmargin_352da88bcca86ed1370f5805d08a6a54 = 0; } else if(fixedposition_352da88bcca86ed1370f5805d08a6a54 == "leftbottom"){ flowfixed_switch_leftmargin_352da88bcca86ed1370f5805d08a6a54 = 0; flowfixed_switch_topmargin_352da88bcca86ed1370f5805d08a6a54 = fixedheight_352da88bcca86ed1370f5805d08a6a54 - fixedswitchheight_352da88bcca86ed1370f5805d08a6a54; } else if(fixedposition_352da88bcca86ed1370f5805d08a6a54 == "righttop"){ flowfixed_switch_leftmargin_352da88bcca86ed1370f5805d08a6a54 = fixedwidth_352da88bcca86ed1370f5805d08a6a54 - fixedswitchwidth_352da88bcca86ed1370f5805d08a6a54; flowfixed_switch_topmargin_352da88bcca86ed1370f5805d08a6a54 = 0; } else if(fixedposition_352da88bcca86ed1370f5805d08a6a54 == "rightbottom"){ flowfixed_switch_leftmargin_352da88bcca86ed1370f5805d08a6a54 = fixedwidth_352da88bcca86ed1370f5805d08a6a54 - fixedswitchwidth_352da88bcca86ed1370f5805d08a6a54; flowfixed_switch_topmargin_352da88bcca86ed1370f5805d08a6a54 = fixedheight_352da88bcca86ed1370f5805d08a6a54 - fixedswitchheight_352da88bcca86ed1370f5805d08a6a54; } }; init_fixedposition_352da88bcca86ed1370f5805d08a6a54(); init_switch_position_352da88bcca86ed1370f5805d08a6a54(); var render_fixed_flash_html = function(width, height, url, clicktag){ var html; html = "