﻿// JavaScript Document INTEL吃屎啦

function showIntelPage(cpuStyle , _mode){
	
	switch (cpuStyle) { 
	case "centrino2" : 
		var _url = "http://syndication.intel.com/DistributeModule.aspx?ppc_cid=WTM_10438076003&contentType=0";
	break; 
	case "core2duo" : 
		var _url = "http://syndication.intel.com/DistributeModule.aspx?ppc_cid=WTM_10438078703&contentType=0";
	break;   
	}
	var div_intelBox = document.getElementById('intelBox');
	var iframe_useIntel = document.getElementById('useIntel');
	var head = '<iframe src="';
	var end = '" class="iframe' + _mode + '" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" id="useIntel" name="useIntel"></iframe>';
	var code = head + _url + end;
	if(cpuStyle == 'none'){
		
		div_intelBox.innerHTML = '';
		div_intelBox.style.display = 'none';
		//iframe_useIntel.style.top = '-1000px';
		//iframe_useIntel.src = 'about:blank';
	} else if(cpuStyle != 'none'){
		div_intelBox.innerHTML = code;
		div_intelBox.style.display = '';
		//iframe_useIntel.style.top = '190px';
		//iframe_useIntel.src = _url;
	}
	//alert('code = ' + code)//  + ' / iframe_useIntel.style.top = ' + iframe_useIntel.style.top
}