//  dealer 查询的跳转函数///
///////////////////////////////////dealer search 用于flash中弹出固定窗口的///////////////////


function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }

//////////////dealer search页面 flash 显示，去掉了wmode属性//////////////////
function transfer2(ur,w,h){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'"/> ');
	document.write('<param name="movie" value="' + ur + '"/>');
	document.write('<param name="quality" value="high"/> ');
   

	document.write('<param name="allowScriptAccess" value="sameDomain" />')
	document.write('<embed src="' + ur + '" quality="high"  pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" allowScriptAccess="sameDomain"  type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed> ');
	document.write('</object> ');
}

	//////////////flash全部显示//////////////////
function transfer3(ur,w,h){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'"> ');
	document.write('<param name="movie" value="' + ur + '">');
	document.write('<param name="quality" value="high"> ');
	document.write('<param name=quality value=transparent>')
	document.write('<param name=wmode value=transparent>')
	document.write('<param name="SCALE" value="exactfit" />')//多了个 exactfit
	document.write('<param name="allowScriptAccess" value="sameDomain" />')
	document.write('<embed src="' + ur + '" quality="high" quality="transparent" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" allowScriptAccess="sameDomain"  type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed> ');
	document.write('</object> ');
}

//////////////flash 普通显示//////////////////
function transfer(ur,w,h){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'"> ');
	document.write('<param name="movie" value="' + ur + '">');
	document.write('<param name="quality" value="high"> ');
	document.write('<param name=quality value=transparent>')
	document.write('<param name=wmode value=transparent>')
	document.write('<param name="allowScriptAccess" value="sameDomain" />')
	document.write('<embed src="' + ur + '" quality="high" quality="transparent" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" allowScriptAccess="sameDomain"  type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed> ');
	document.write('</object> ');
}
document.writeln("<SCRIPT language=JavaScript>");
document.writeln("<!--");
document.writeln(" \/\/***********************禁止右键***************************");
document.writeln("if (window.Event) ");
document.writeln("  document.captureEvents(Event.MOUSEUP); ");
document.writeln(" ");
document.writeln("function nocontextmenu() ");
document.writeln("{");
document.writeln(" event.cancelBubble = true");
document.writeln(" event.returnValue = false;");
document.writeln(" ");
document.writeln(" return false;");
document.writeln("}");
document.writeln(" ");
document.writeln("function norightclick(e) ");
document.writeln("{");
document.writeln(" if (window.Event) ");
document.writeln(" {");
document.writeln("  if (e.which == 2 || e.which == 3)");
document.writeln("   return false;");
document.writeln(" }");
document.writeln(" else");
document.writeln("  if (event.button == 2 || event.button == 3)");
document.writeln("  {");
document.writeln("   event.cancelBubble = true");
document.writeln("   event.returnValue = false;");
document.writeln("   return false;");
document.writeln("  }");
document.writeln("}");
document.writeln("");
document.writeln("\/\/************************禁止选择***************************");
document.writeln("function noSelect()");
document.writeln("{");
document.writeln("	return false;");
document.writeln("}");
document.writeln("");
document.writeln("\/\/************************禁止拖曳***************************");
document.writeln("function noDragstart()");
document.writeln("{");
document.writeln("  return false;	");
document.writeln("}");
document.writeln("");
document.writeln("\/\/************************清空剪切板*************************");
document.writeln(" function keyDown()");
document.writeln(" {");
document.writeln("  var iekey = event.keyCode; ");
document.writeln("  \/\/alert(iekey);");
document.writeln("    if(iekey == 42)");
document.writeln("    {");
document.writeln("    \/\/window.clipboardData.setData(\'img\',\'\')");
document.writeln("	");
document.writeln("	window.clipboardData.clearData();");
document.writeln("    }");
document.writeln(" } ");
document.writeln("");
document.writeln("\/\/-->");
document.writeln("<\/SCRIPT>");
document.writeln("<!--禁止网页另存为--><!--");
document.writeln("<noscript> <iframe src=\"*.htm\"><\/iframe> <\/noscript>");
document.writeln("\/\/--><NOSCRIPT> <iframe src=\"*.htm\"><\/iframe> <\/NOSCRIPT>");
document.writeln("<SCRIPT language=JavaScript>");
document.writeln("  document.oncontextmenu = nocontextmenu;");
document.writeln("  document.onmousedown = norightclick;");
document.writeln("  document.ondragstart = noDragstart;");
document.writeln("  document.onselectstart = noSelect;");
document.writeln("  document.onselect = document.selection.empty();");
document.writeln("  document.onkeydown = keyDown;");
document.writeln("<\/SCRIPT>");
document.writeln("")