
/*----------------------------------
MAIN
-----------------------------------*/
Event.observe(window, 'load', init);


/*----------------------------------
FONCTIONS
-----------------------------------*/
//chargement des actions de départ
function init() {
	//if_ordi_goto('http://www.byblos.com');
}


//dispatch selon type de support
function if_ordi_goto(url) {

	var user_agent = navigator.userAgent;
	
   	var device = new Array(
                  "Android",
                  "Blackberry",
                  "Blazer",
                  "Handspring",
                  "iPhone",
                  "iPod",
                  "Kyocera",
                  "LG",
                  "Motorola",
                  "Nokia",
                  "Palm",
                  "PlayStation Portable",
                  "Samsung",
                  "Smartphone",
                  "SonyEricsson",
                  "Symbian",
                  "WAP",
                  "Windows CE"
                );

   var max_device = device.length;

   for(i=0 ; i<max_device ; i++)  {
      if(user_agent.indexOf(device[i]) != -1) {
         return;
      }
   }
   window.open(url, '_parent');
}
