﻿var plateforme=navigator.appName.substring(0,2);
//script d'impression
function printPage() {
	if (plateforme=='Mi') {window.print();}
	if (plateforme=='Ne') {print();}
}

function ctrlSearch() {
	strfind = document.getElementById("keyword").value;
	if ( strfind != "" ) {
		//location.href="/default.asp?LINK=search&keyword="+strfind;
		return true;
	} 
	return false;
}


function getCookie( sc ) { 
var cn									;
var cv = ""								;
var ch = ""								;
var ac = document.cookie.split(";")		;

	for(var i=0;i<ac.length;i++){
		ch = ac[i].split("=")[0]		;
		if ( ch == sc )  {
			cv=ac[i].split("=")[1];
			break;
		}
	}
	return unescape(cv.replace(/tspSpace/g," "));
}



function SetCookie (name, value) {
	var argv=SetCookie.arguments;
	var argc=SetCookie.arguments.length;
	var expires=(argc > 2) ? argv[2] : null;
	var path=(argc > 3) ? argv[3] : null;
	var domain=(argc > 4) ? argv[4] : null;
	var secure=(argc > 5) ? argv[5] : false;
	document.cookie=name+"="+escape(value)+
		((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
		((path==null) ? "" : ("; path="+path))+
		((domain==null) ? "" : ("; domain="+domain))+
		((secure==true) ? "; secure" : "");
}

var popup;
function openPopup (url,largeur,hauteur){
	gauche=(screen.width-largeur)/2;haut=(screen.height-hauteur)/2;
	if (popup && !popup.closed) {popup.close();};
	popup = window.open(url,'geWindow','scrollbars=yes,status=no,width='+largeur+',height='+hauteur+',top='+haut+',left='+gauche);
}


var popup;
function openPopupAdvert (url,largeur,hauteur,pict){
	gauche=(screen.width-largeur)/2;haut=(screen.height-hauteur)/2;
	if (popup && !popup.closed) {popup.close();};
	popup = window.open(url+"?pict=" + escape ( pict ),'geWindow','scrollbars=yes,status=no,width='+largeur+',height='+hauteur+',top='+haut+',left='+gauche);
}

var FlashMode = 0;
if (navigator.plugins && navigator.plugins.length > 0)
{
        if (navigator.plugins["Shockwave Flash"])
        {
                var plugin_version = 0;
                var words = navigator.plugins["Shockwave Flash"].description.split(" ");

                for (var i = 0; i < words.length; ++i)
                {
                        if (isNaN(parseInt(words[i])))
                        continue;
                        plugin_version = words[i];
                }
                if (plugin_version >= 6)
                {
                        var plugin = navigator.plugins["Shockwave Flash"];
                        var numTypes = plugin.length;
                        for (j = 0; j < numTypes; j++) 
                        {
                                mimetype = plugin[j];
                                if (mimetype)
                                {
                                        if (mimetype.enabledPlugin && (mimetype.suffixes.indexOf("swf") != -1))
                                                FlashMode = 1;
                                        // Mac wierdness
                                        if (navigator.mimeTypes["application/x-shockwave-flash"] == null)
                                                FlashMode = 0;
                                }
                        }
                }
        }
}

var pSelMenu="";
var pPageMenu = 0      ;



var isIE = navigator.appName && navigator.appName.indexOf("Microsoft") != -1 
		&& navigator.userAgent.indexOf("Windows") != -1 
		&& navigator.userAgent.indexOf("Windows 3.1") == -1     ;

function addExplorerHook ( fNameVB, fNameJS ) {
	if ( isIE ) {
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('  On Error Resume Next \n');
		document.write('  Sub ' + fNameVB + '(ByVal command, ByVal paramValue)\n');
		document.write('    Call ' + fNameJS + '(command, paramValue)\n');
		document.write('  End Sub\n');
		document.write('</SCRIPT\> \n');
	}
}

addExplorerHook ( "flashIntro_FSCommand", "flashIntro_DoFSCommand" )	;
function flashIntro_DoFSCommand ( command, paramValue ) {
	if ( command == "fade" ) {
		 doTrans();
	}
}



function insertSWF( movieURL, strParams, width, height, name, embedParms ) {
	var strHTML	;
	var transparency = ""	;

	anime = getCookie( escape("AnimeFlash") );
//alert( anime );
	if ( anime == 1 ) {
		strHTML = '<img src="/maltisorb-maltitol-EN/images/topHomeNoFlash_pic.jpg" useMap="#TOPMAP" width="767" height="163" border="0"/>';
		strHTML+= '<map name="TOPMAP">';
		strHTML+= '<area shape="rect" coords="6,1,94,17" href="#">';
		strHTML+= '<area shape="rect" coords="97,1,161,18" href="#">';
		strHTML+= '<area shape="rect" coords="697,1,766,16" href="javascript:deliaLink(\'contact\');">';
		strHTML+= '</map>';
	}
	else {

	strHTML = '<OBJECT name='+name+' id='+name+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
			+ ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" '
			+ ' width="'+width+'" height="'+height+'">'
			+ '<param name="movie" value="'+movieURL+'">'
			+ '<param name="allowScriptAccess" value="sameDomain" />'
			+ '<param name="bgcolor" value="#ffffff" />'
			+ '<PARAM name="wmode" VALUE="transparent" />'
			+ '<param name="flashvars" value="'+strParams+'" />'	;
	strHTML+= '<param name="quality" value="high" />';

	if (FlashMode == 1) {
		strHTML += '<embed wmode="transparent" flashvars="'+strParams+'" name='+name+' id='+name+' src="'+movieURL+'?'+strParams+'" quality=high '
				+ '    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" '
				+ '    type="application/x-shockwave-flash" width="'+width+'" height="'+height+'">';
				if ( navigator.appName.substr(0,2)=="Mi") strHTML += embedParms;
				strHTML += '</embed>' 
				+ '<noembed>'
				+  embedParms 
				+ '</noembed>';
	} else {
		strHTML += embedParms;
	}
	strHTML += '</OBJECT>'		;
	}
		//alert ( strHTML );
	document.write ( strHTML )	;
}



function preloadimages( name ){
	myimages = new Image();
	myimages.src = name;
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
MM_preloadImages('/pharma-JP/images/search_bt_down.gif');

// JP ELEMENTS

function insertAbout()
{
	var str;
	str = 'ロケットファーマについて<br/>&nbsp;';
	document.write(str);
}

function insertProductsAndApplications()
{
	var str;
	str = '製品 &<br/>アプリケーション';
	document.write(str);
}

function insertFormulationAssistance()
{
	var str;
	str = '製剤サ<br/>ポート';
	document.write(str);
}

function insertServicesSupport()
{
	var str;
	str = 'サービス &<br/>サポート';
	document.write(str);
}

function insertInternationalPresence()
{
	var str;
	str = '国際的な<br/>拠点';
	document.write(str);
}

function insertNewsDocumentation()
{
	var str;
	str = 'ニュース &<br/>資料';
	document.write(str);
}

function insertDownloadFullPublication()
{
	var str;
	str = '資料のダウンロード';
	document.write(str);
}

function insertHome()
{
	var str;
	str = 'ホーム';
	document.write(str);
}


function insertContactUs()
{
	var str;
	str = 'ロケット社へのコンタクト';
	document.write(str);
}

function insertDisclaimer()
{
	var str;
	str = 'お断わり';
	document.write(str);
}

function insertSiteMap()
{
	var str;
	str = 'サイトマップ';
	document.write(str);
}

function insertTypicalFormulationTitle()
{
	var str;
	str = '典型的な製剤';
	document.write(str);
}

function insertTypicalFormulation()
{
	var str;
	str = '<p>現在、この製品の処方例は弊社のデータベースにございません。<br/><br/>しかしながら、ロケット社は製剤支援のための一体化したカスタマーサービスを行ってきました(<A href=\"http://roquettepharmajp.les-argonautes.net/pharmaceutical-cosmetics/1273-309-0-0/zoom-services/your-route-to-innovation-is-through-our-applications-laboratories.html\" target=\"_blank\"><B>アプリケーションラボ　サービスとサポート</B></A> をご覧下さい）.<br/><br/>ロケット社は、製品の最適な性能を発揮させるための基本ガイドラインを提供するために引き続き新処方を開発していきます。典型的な製剤処方について、 <a href=\"http://roquettepharmajp.les-argonautes.net/pharma-JP/asp/other-request/\" target=\"_blank\" ><b>ロケット社へのコンタクト</b></a> をクリックしていただき、 <a href=\"http://roquettepharmajp.les-argonautes.net/pharma-JP/asp/formulation-assistance.asp\" target=\"_blank\"><b>製剤支援リクエスト</b></a> にご記入ください。.</p><ul class=\"formulation\" style=\"margin-left: 20px;\">';
	return str;
}

function insertTypicalFormulation2(vParam)
{
	var str;
	str = '<p>ロケットは '+vParam+' 製品の最大の効能を得るために、基本ガイドラインを設け、数多くの標準的な服薬方法を開発いたしました。</p><ul class=\"formulation\" style=\"margin-left: 20px;\">'
	return str;
}

function insertTypicalFormulation3()
{
	var str;
	str = '<table style=\"margin-left:15px;\"><tr><td style=\"width:61%\" valign=\"top\"><h2 class=\"header\"><div>ラボラトリーサービス&サポートサービスのお申し込み</div></h2><p>ロケットではさらに、「服薬アシスタント」カスタマーサービスも長らく行っています（<A href=\"http://www.roquette-pharma.com/pharmaceutical-cosmetics/1273-309-0-0/zoom-services/your-route-to-innovation-is-through-our-applications-laboratories.html\" target=\"_blank\"><B>ラボラトリーサービス&サポート</B></A>の詳細についてはこちらをご覧下さい）</p></td><td style=\"width:42%\" valign=\"top\"><h2 class=\"header\"><div>服薬アシスタント</div></h2><p>特別な服薬方法については、こちらの<A href=\"http://www.roquette-pharma.com/pharma-JP/asp/formulation-assistance.asp\" target=\"_blank\"><B>服薬アシスタントフォーム</B></A>からお申し込みください。</p></td></tr></table><p><a href=\"#top\" class=\"print\"><img src=\"/pharma-JP/images/retour_haut.gif\" border=\"0\"></a></p>';
	return str;
}

function insertQualityNews()
{
	var str;
	str = '品質基準資料';
	document.write(str);
}

function insertSearch1()
{
	var str;
	str = '<p>以下に対応するウェブページを見つけることができませんでした。<br />この質疑用語の含有 :<i>';
	document.write(str);
}

function insertSearch0()
{
	var str;
	str = 'リサーチ結果';
	document.write(str);
}

function insertSearch2()
{
	var str;
	str = '提案：</p><ul><li>スペルをご確認ください。</li><li>般用語でトライしてください。</li><li>同様の意味をもつ別用語を使用してみて下さい。</li></ul>';
	document.write(str);
}

function insertSearchIn()
{
	var str;
	str = 'リサーチの結果';
	document.write(str);
}
function insertProductsOverview()
{
	var str;
	str = '製品概観';
	document.write(str);
}
function insertApplicationsOverview()
{
	var str;
	str = 'アプリケーション概観';
	document.write(str);
}
function insertproductsApplicationsSearchEngine()
{
	var str;
	str = '製品＆アプリケーション　サーチエンジン';
	document.write(str);
}
function insertQualityRelatedDocumentation()
{
	var str;
	str = '品質関連書類';
	document.write(str);
}
function insertAboutRoquettePharma()
{
	var str;
	str = 'ロケットファーマについて';
	document.write(str);
}
function insertOverview()
{
	var str;
	str = '概要';
	document.write(str);
}
function insertCommittedToInnovation()
{
	var str;
	str = '革新へのチャレンジ';
	document.write(str);
}
function insertDedicatedToQuality()
{
	var str;
	str = '品質へのこだわり';
	document.write(str);
}
function insertProductsOverview()
{
	var str;
	str = '製品概要';
	document.write(str);
}
function insertApplicationsOverview()
{
	var str;
	str = 'アプリケーション概要';
	document.write(str);
}
function insertApplicationsLaboratory()
{
	var str;
	str = '応用技術研究所';
	document.write(str);
}
function insertRegulatoryAssistance()
{
	var str;
	str = '法令遵守支援';
	document.write(str);
}
function insertCustomerEngineeringService()
{
	var str;
	str = '顧客技術サービス';
	document.write(str);
}
function insertPressReleases()
{
	var str;
	str = 'プレスリリース';
	document.write(str);
}
function insertPressRoundup()
{
	var str;
	str = 'プレス総まとめ';
	document.write(str);
}
function insertEvents()
{
	var str;
	str = 'イベント';
	document.write(str);
}
function insertAdvertisements()
{
	var str;
	str = '広告';
	document.write(str);
}
function insertPharmaLegislationUpdates()
{
	var str;
	str = '医薬品関連法規の改正';
	document.write(str);
}
function insertTechnicalBrochures()
{
	var str;
	str = '技術概要';
	document.write(str);
}
function insertQualityDocumentation()
{
	var str;
	str = '品質関連資料';
	document.write(str);
}
function insertFormulationRelated()
{
	var str;
	str = '製剤関連';
	document.write(str);
}
function insertGeneralRegulatory()
{
	var str;
	str = '法令規則遵守';
	document.write(str);
}
function insertPackagingAndStorageConditions()
{
	var str;
	str = '包装と保管条件';
	document.write(str);
}
function insertQualityStatus()
{
	var str;
	str = '品質状況';
	document.write(str);
}
function insertStabilityOrToxStudies()
{
	var str;
	str = '安定性または毒性試験';
	document.write(str);
}
function insertDocumentationRequest()
{
	var str;
	str = '資料請求';
	document.write(str);
}
function insertSampleRequest()
{
	var str;
	str = 'サンプルのご依頼';
	document.write(str);
}
function insertOtherRequest()
{
	var str;
	str = 'その他ご要望';
	document.write(str);
}
function insertFormulationAssistanceNoBr()
{
	var str;
	str = '製剤サポート';
	document.write(str);
}
function insertServicesSupportNoBr()
{
	var str;
	str = 'サービス & サポート';
	document.write(str);
}
function insertInternationalPresenceNoBr()
{
	var str;
	str = '国際的な拠点';
	document.write(str);
}
function insertNewsDocumentationNoBr()
{
	var str;
	str = 'ニュース & 資料';
	document.write(str);
}
function insertContactYourLocalRepresentative()
{
	var str;
	str = '貴社のコンタクト先';
	document.write(str);
}

function load() {
	if (document.images) {
		this.length=load.arguments.length;
		for (var i=0;i<this.length;i++) {
			this[i+1]=new Image();
			this[i+1].src=load.arguments[i];
		}
	}
}

function onMenuIntro()
{
document.getElementById('INTRODUCTION').style.display='';
document.getElementById('MONOGRAPH').style.display='none';
document.getElementById('FORMULATION_ASSISTANCE').style.display='none';
document.getElementById('PACKAGING').style.display='none';
document.getElementById('DOCUMENTATION').style.display='none';
document.getElementById('HELP_IN_FORMULATION').style.display='none';
document.getElementById('SAMPLE_REQUEST').style.display='none';
document.getElementById('menuIntro').className='on';
document.getElementById('menuMono').className='';
document.getElementById('menuForm').className='';
document.getElementById('menuSample').className='';
document.getElementById('menuPackaging').className='';
document.getElementById('menuDoc').className='';
}

function onMenuMono()
{
document.getElementById('INTRODUCTION').style.display='none';
document.getElementById('MONOGRAPH').style.display='';
document.getElementById('FORMULATION_ASSISTANCE').style.display='none';
document.getElementById('PACKAGING').style.display='none';
document.getElementById('DOCUMENTATION').style.display='none';
document.getElementById('HELP_IN_FORMULATION').style.display='none';
document.getElementById('SAMPLE_REQUEST').style.display='none';
document.getElementById('menuIntro').className='';
document.getElementById('menuMono').className='on';
document.getElementById('menuForm').className='';
document.getElementById('menuSample').className='';
document.getElementById('menuPackaging').className='';
document.getElementById('menuDoc').className='';
}

function onMenuForm()
{
document.getElementById('INTRODUCTION').style.display='none';
document.getElementById('MONOGRAPH').style.display='none';
document.getElementById('FORMULATION_ASSISTANCE').style.display='';
document.getElementById('PACKAGING').style.display='none';
document.getElementById('DOCUMENTATION').style.display='none';
document.getElementById('HELP_IN_FORMULATION').style.display='none';
document.getElementById('SAMPLE_REQUEST').style.display='none';
document.getElementById('menuIntro').className='';
document.getElementById('menuMono').className='';
document.getElementById('menuForm').className='on';
document.getElementById('menuSample').className='';
document.getElementById('menuPackaging').className='';
document.getElementById('menuDoc').className='';

}

function onMenuFormAss()
{
document.getElementById('INTRODUCTION').style.display='none';
document.getElementById('MONOGRAPH').style.display='none';
document.getElementById('FORMULATION_ASSISTANCE').style.display='';
document.getElementById('PACKAGING').style.display='none';
document.getElementById('DOCUMENTATION').style.display='none';
document.getElementById('HELP_IN_FORMULATION').style.display='none';
document.getElementById('SAMPLE_REQUEST').style.display='none';
document.getElementById('menuIntro').className='';
document.getElementById('menuMono').className='';
document.getElementById('menuForm').className='on';
document.getElementById('menuSample').className='';
document.getElementById('menuPackaging').className='';
document.getElementById('menuDoc').className='';
}

function onMenuFormSample()
{
document.getElementById('INTRODUCTION').style.display='none';
document.getElementById('MONOGRAPH').style.display='none';
document.getElementById('FORMULATION_ASSISTANCE').style.display='none';
document.getElementById('PACKAGING').style.display='none';
document.getElementById('DOCUMENTATION').style.display='none';
document.getElementById('HELP_IN_FORMULATION').style.display='none';
document.getElementById('SAMPLE_REQUEST').style.display='';
document.getElementById('menuIntro').className='';
document.getElementById('menuMono').className='';
document.getElementById('menuForm').className='';
document.getElementById('menuSample').className='on';
document.getElementById('menuPackaging').className='';
document.getElementById('menuDoc').className='';
}

function onMenuFormHelp()
{
document.getElementById('INTRODUCTION').style.display='none';
document.getElementById('MONOGRAPH').style.display='none';
document.getElementById('FORMULATION_ASSISTANCE').style.display='none';
document.getElementById('PACKAGING').style.display='none';
document.getElementById('DOCUMENTATION').style.display='none';
document.getElementById('HELP_IN_FORMULATION').style.display='';
document.getElementById('SAMPLE_REQUEST').style.display='none';
document.getElementById('menuIntro').className='';
document.getElementById('menuMono').className='';
document.getElementById('menuForm').className='';
document.getElementById('menuSample').className='on';
document.getElementById('menuPackaging').className='';
document.getElementById('menuDoc').className='';
}

function onMenuPack()
{
document.getElementById('INTRODUCTION').style.display='none';
document.getElementById('MONOGRAPH').style.display='none';
document.getElementById('FORMULATION_ASSISTANCE').style.display='none';
document.getElementById('PACKAGING').style.display='';
document.getElementById('DOCUMENTATION').style.display='none';
document.getElementById('HELP_IN_FORMULATION').style.display='none';
document.getElementById('SAMPLE_REQUEST').style.display='none';
document.getElementById('menuIntro').className='';
document.getElementById('menuMono').className='';
document.getElementById('menuForm').className='';
document.getElementById('menuSample').className='';
document.getElementById('menuPackaging').className='on';
document.getElementById('menuDoc').className='';
}

function onMenuDoc()
{
document.getElementById('INTRODUCTION').style.display='none';
document.getElementById('MONOGRAPH').style.display='none';
document.getElementById('FORMULATION_ASSISTANCE').style.display='none';
document.getElementById('PACKAGING').style.display='none';
document.getElementById('DOCUMENTATION').style.display='';
document.getElementById('HELP_IN_FORMULATION').style.display='none';
document.getElementById('SAMPLE_REQUEST').style.display='none';
document.getElementById('menuIntro').className='';
document.getElementById('menuMono').className='';
document.getElementById('menuForm').className='';
document.getElementById('menuSample').className='';
document.getElementById('menuPackaging').className='';
document.getElementById('menuDoc').className='on';
}
